![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
|
Base class of all streams with media stream. More...
#include <owt/base/stream.h>
Public Member Functions | |
Stream (MediaStreamInterface *media_stream, StreamSourceInfo source) | |
virtual std::string | Id () const |
Get the ID of the stream. More... | |
virtual void | DisableAudio () |
Disable all audio tracks of the stream. | |
virtual void | DisableVideo () |
Disable all video tracks of the stream. | |
virtual void | EnableAudio () |
Enable all audio tracks of the stream. | |
virtual void | EnableVideo () |
Enable all video tracks of the stream. | |
virtual const std::unordered_map< std::string, std::string > | Attributes () const |
Returns a user-defined attribute map. More... | |
virtual StreamSourceInfo | Source () const |
Returns the audio/video source info of the stream. More... | |
virtual void | AttachVideoRenderer (VideoRendererInterface &renderer) |
virtual void | AttachVideoRenderer (VideoRenderWindow &render_window) |
virtual void | AttachAudioPlayer (AudioPlayerInterface &player) |
virtual void | DetachVideoRenderer () |
Detach the stream from its renderer. | |
virtual void | DetachAudioPlayer () |
Detach the stream from the audio player. | |
void | AddObserver (StreamObserver &observer) |
Register an observer on the stream. | |
void | RemoveObserver (StreamObserver &observer) |
De-Register an observer on the stream. | |
Base class of all streams with media stream.
|
virtual |
Attach the stream to an audio player that receives PCM data besides sending to audio output device.
|
virtual |
Attach the stream to a renderer to receive ARGB/I420 frames for local or remote stream. Be noted if you turned hardware acceleration on, calling this API on remote stream will have no effect.
|
virtual |
Attach the stream to a renderer to receive frames from decoder. Both I420 frame and native surface is supported.
|
inlinevirtual |
Returns a user-defined attribute map.
These attributes are defined by publisher. P2P mode always return empty map because it is not supported yet.
|
virtual |
Get the ID of the stream.
|
virtual |
Returns the audio/video source info of the stream.
The source info of video/audio indicates the device source type of video/audio track source. For conference mode, if the video/audio track is from mixed stream, it will be set as kMixed.