| 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 |
| 11 #ifndef WEBRTC_API_MEDIASTREAMPROVIDER_H_ | 11 #ifndef WEBRTC_API_MEDIASTREAMPROVIDER_H_ |
| 12 #define WEBRTC_API_MEDIASTREAMPROVIDER_H_ | 12 #define WEBRTC_API_MEDIASTREAMPROVIDER_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/basictypes.h" | 14 #include "webrtc/base/basictypes.h" |
| 15 #include "webrtc/base/scoped_ptr.h" | 15 #include "webrtc/base/scoped_ptr.h" |
| 16 #include "webrtc/media/base/videosinkinterface.h" | 16 #include "webrtc/media/base/videosinkinterface.h" |
| 17 | 17 |
| 18 namespace cricket { | 18 namespace cricket { |
| 19 | 19 |
| 20 class AudioRenderer; | 20 class AudioSource; |
| 21 class VideoCapturer; | 21 class VideoCapturer; |
| 22 class VideoFrame; | 22 class VideoFrame; |
| 23 class VideoRenderer; | 23 class VideoRenderer; |
| 24 struct AudioOptions; | 24 struct AudioOptions; |
| 25 struct VideoOptions; | 25 struct VideoOptions; |
| 26 | 26 |
| 27 } // namespace cricket | 27 } // namespace cricket |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 | 30 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 42 // of an audio track connected to certain PeerConnection. | 42 // of an audio track connected to certain PeerConnection. |
| 43 class AudioProviderInterface { | 43 class AudioProviderInterface { |
| 44 public: | 44 public: |
| 45 // Enable/disable the audio playout of a remote audio track with |ssrc|. | 45 // Enable/disable the audio playout of a remote audio track with |ssrc|. |
| 46 virtual void SetAudioPlayout(uint32_t ssrc, bool enable) = 0; | 46 virtual void SetAudioPlayout(uint32_t ssrc, bool enable) = 0; |
| 47 // Enable/disable sending audio on the local audio track with |ssrc|. | 47 // Enable/disable sending audio on the local audio track with |ssrc|. |
| 48 // When |enable| is true |options| should be applied to the audio track. | 48 // When |enable| is true |options| should be applied to the audio track. |
| 49 virtual void SetAudioSend(uint32_t ssrc, | 49 virtual void SetAudioSend(uint32_t ssrc, |
| 50 bool enable, | 50 bool enable, |
| 51 const cricket::AudioOptions& options, | 51 const cricket::AudioOptions& options, |
| 52 cricket::AudioRenderer* renderer) = 0; | 52 cricket::AudioSource* source) = 0; |
| 53 | 53 |
| 54 // Sets the audio playout volume of a remote audio track with |ssrc|. | 54 // Sets the audio playout volume of a remote audio track with |ssrc|. |
| 55 // |volume| is in the range of [0, 10]. | 55 // |volume| is in the range of [0, 10]. |
| 56 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; | 56 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; |
| 57 | 57 |
| 58 // Allows for setting a direct audio sink for an incoming audio source. | 58 // Allows for setting a direct audio sink for an incoming audio source. |
| 59 // Only one audio sink is supported per ssrc and ownership of the sink is | 59 // Only one audio sink is supported per ssrc and ownership of the sink is |
| 60 // passed to the provider. | 60 // passed to the provider. |
| 61 virtual void SetRawAudioSink( | 61 virtual void SetRawAudioSink( |
| 62 uint32_t ssrc, | 62 uint32_t ssrc, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 82 bool enable, | 82 bool enable, |
| 83 const cricket::VideoOptions* options) = 0; | 83 const cricket::VideoOptions* options) = 0; |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 virtual ~VideoProviderInterface() {} | 86 virtual ~VideoProviderInterface() {} |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace webrtc | 89 } // namespace webrtc |
| 90 | 90 |
| 91 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_ | 91 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_ |
| OLD | NEW |