Interface to setup media stream created by client This interface should be used only before client is connected.
More...
#include <red5pro.h>
|
virtual DataType | GetType ()=0 |
| Get data type of the stream. Depending on method of creation stream it can be undefined. More...
|
|
virtual int | SetEncoderSettings (EncoderSettings set)=0 |
| Assign encoding parameters for the stream Note that these parameters will be used only if stream contains encoder. More...
|
|
virtual int | AddTransform (ITransformPtr tfm)=0 |
| Add encoder/decoder or other transform implementation to dataflow graph Note that order of adding transform is critical, each next transform will try to connect to output of previous. More...
|
|
virtual int | AddSink (IMediaSinkPtr sink)=0 |
| Add implementation of media sink to the stream. More...
|
|
Interface to setup media stream created by client This interface should be used only before client is connected.
◆ AddSink()
virtual int r5::core::IMediaStream::AddSink |
( |
IMediaSinkPtr |
sink | ) |
|
|
pure virtual |
Add implementation of media sink to the stream.
- Parameters
-
sink | implementation of media sink |
- Returns
- 0 on success, negative on fail
◆ AddTransform()
virtual int r5::core::IMediaStream::AddTransform |
( |
ITransformPtr |
tfm | ) |
|
|
pure virtual |
Add encoder/decoder or other transform implementation to dataflow graph Note that order of adding transform is critical, each next transform will try to connect to output of previous.
- Parameters
-
tfm | transform filter implementation |
- Returns
- 0 on success, negative on fail
◆ GetType()
virtual DataType r5::core::IMediaStream::GetType |
( |
| ) |
|
|
pure virtual |
Get data type of the stream. Depending on method of creation stream it can be undefined.
- Returns
- type of stream
◆ SetEncoderSettings()
virtual int r5::core::IMediaStream::SetEncoderSettings |
( |
EncoderSettings |
set | ) |
|
|
pure virtual |
Assign encoding parameters for the stream Note that these parameters will be used only if stream contains encoder.
- Parameters
-
set | encoder settings for the stream |
- Returns
- 0 on success, negative on fail
The documentation for this class was generated from the following file: