@@ -75,13 +75,6 @@ class Stream {
75
75
virtual void EnableAudio ();
76
76
// / Enable all video tracks of the stream.
77
77
virtual void EnableVideo ();
78
- // / Attach the stream to a renderer to receive ARGB/I420 frames for local or
79
- // / remote stream. Be noted if you turned hardware acceleration on, calling
80
- // / this API on remote stream will have no effect.
81
- virtual void AttachVideoRenderer (VideoRendererInterface& renderer);
82
- // / Attach the stream to an audio player that receives PCM data besides sending to
83
- // / audio output device.
84
- virtual void AttachAudioPlayer (AudioPlayerInterface& player);
85
78
/* *
86
79
@brief Returns a user-defined attribute map.
87
80
@details These attributes are defined by publisher. P2P mode always return
@@ -98,10 +91,17 @@ class Stream {
98
91
from mixed stream, it will be set as kMixed.
99
92
*/
100
93
virtual StreamSourceInfo Source () const ;
101
- #if defined(WEBRTC_WIN)
94
+ #if defined(WEBRTC_WIN) || defined(WEBRTC_LINUX)
95
+ // / Attach the stream to a renderer to receive ARGB/I420 frames for local or
96
+ // / remote stream. Be noted if you turned hardware acceleration on, calling
97
+ // / this API on remote stream will have no effect.
98
+ virtual void AttachVideoRenderer (VideoRendererInterface& renderer);
102
99
// / Attach the stream to a renderer to receive frames from decoder.
103
100
// / Both I420 frame and native surface is supported.
104
101
virtual void AttachVideoRenderer (VideoRenderWindow& render_window);
102
+ // / Attach the stream to an audio player that receives PCM data besides sending to
103
+ // / audio output device.
104
+ virtual void AttachAudioPlayer (AudioPlayerInterface& player);
105
105
#endif
106
106
// / Detach the stream from its renderer.
107
107
virtual void DetachVideoRenderer ();
0 commit comments