Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: webrtc/api/mediastreamprovider.h

Issue 1741933002: Prevent a voice channel from sending data before a renderer is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Modifying copyright header to satisfy presubmit bot. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/remoteaudiosource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/remoteaudiosource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698