CoreSDK  v1.0.0.b1304
Public Member Functions | List of all members
r5::core::IMediaStream Class Referenceabstract

Interface to setup media stream created by client This interface should be used only before client is connected. More...

#include <red5pro.h>

Public Member Functions

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...
 

Detailed Description

Interface to setup media stream created by client This interface should be used only before client is connected.

Member Function Documentation

◆ AddSink()

virtual int r5::core::IMediaStream::AddSink ( IMediaSinkPtr  sink)
pure virtual

Add implementation of media sink to the stream.

Parameters
sinkimplementation 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
tfmtransform 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
setencoder settings for the stream
Returns
0 on success, negative on fail

The documentation for this class was generated from the following file: