| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 virtual RtpParameters GetAudioRtpSendParameters(uint32_t ssrc) const = 0; | 66 virtual RtpParameters GetAudioRtpSendParameters(uint32_t ssrc) const = 0; |
| 67 virtual bool SetAudioRtpSendParameters(uint32_t ssrc, | 67 virtual bool SetAudioRtpSendParameters(uint32_t ssrc, |
| 68 const RtpParameters& parameters) = 0; | 68 const RtpParameters& parameters) = 0; |
| 69 | 69 |
| 70 virtual RtpParameters GetAudioRtpReceiveParameters(uint32_t ssrc) const = 0; | 70 virtual RtpParameters GetAudioRtpReceiveParameters(uint32_t ssrc) const = 0; |
| 71 virtual bool SetAudioRtpReceiveParameters( | 71 virtual bool SetAudioRtpReceiveParameters( |
| 72 uint32_t ssrc, | 72 uint32_t ssrc, |
| 73 const RtpParameters& parameters) = 0; | 73 const RtpParameters& parameters) = 0; |
| 74 | 74 |
| 75 // Called when the first audio packet is received. |
| 76 sigslot::signal0<> SignalFirstAudioPacketReceived; |
| 77 |
| 75 protected: | 78 protected: |
| 76 virtual ~AudioProviderInterface() {} | 79 virtual ~AudioProviderInterface() {} |
| 77 }; | 80 }; |
| 78 | 81 |
| 79 // This interface is called by VideoRtpSender/Receivers to change the settings | 82 // This interface is called by VideoRtpSender/Receivers to change the settings |
| 80 // of a video track connected to a certain PeerConnection. | 83 // of a video track connected to a certain PeerConnection. |
| 81 class VideoProviderInterface { | 84 class VideoProviderInterface { |
| 82 public: | 85 public: |
| 83 virtual bool SetSource( | 86 virtual bool SetSource( |
| 84 uint32_t ssrc, | 87 uint32_t ssrc, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 95 | 98 |
| 96 virtual RtpParameters GetVideoRtpSendParameters(uint32_t ssrc) const = 0; | 99 virtual RtpParameters GetVideoRtpSendParameters(uint32_t ssrc) const = 0; |
| 97 virtual bool SetVideoRtpSendParameters(uint32_t ssrc, | 100 virtual bool SetVideoRtpSendParameters(uint32_t ssrc, |
| 98 const RtpParameters& parameters) = 0; | 101 const RtpParameters& parameters) = 0; |
| 99 | 102 |
| 100 virtual RtpParameters GetVideoRtpReceiveParameters(uint32_t ssrc) const = 0; | 103 virtual RtpParameters GetVideoRtpReceiveParameters(uint32_t ssrc) const = 0; |
| 101 virtual bool SetVideoRtpReceiveParameters( | 104 virtual bool SetVideoRtpReceiveParameters( |
| 102 uint32_t ssrc, | 105 uint32_t ssrc, |
| 103 const RtpParameters& parameters) = 0; | 106 const RtpParameters& parameters) = 0; |
| 104 | 107 |
| 108 // Called when the first video packet is received. |
| 109 sigslot::signal0<> SignalFirstVideoPacketReceived; |
| 110 |
| 105 protected: | 111 protected: |
| 106 virtual ~VideoProviderInterface() {} | 112 virtual ~VideoProviderInterface() {} |
| 107 }; | 113 }; |
| 108 | 114 |
| 109 } // namespace webrtc | 115 } // namespace webrtc |
| 110 | 116 |
| 111 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_ | 117 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_ |
| OLD | NEW |