CoreSDK  v1.0.0.b1304
All Classes Functions Variables Pages
Public Member Functions | List of all members
r5::core::IMediaSink Class Referenceabstract

Interface that can be used to receive media samples from different points of dataflow graph Implementation of this interface can be assigned to one or multiple streams and will receive samples that pass through each of them Note that implementation will receive all possible samples from every point of processing, so make sure to check if media sample has acceptable format. More...

#include <red5pro.h>

Public Member Functions

virtual int SinkSample (const MediaSample &outSample)=0
 Method called for every sample in processing graph If stream contains encoders, decoders or other transforms and sources this method will be called for every output of each of them If method return negative value it will not receive samples from this point of graph. More...
 

Detailed Description

Interface that can be used to receive media samples from different points of dataflow graph Implementation of this interface can be assigned to one or multiple streams and will receive samples that pass through each of them Note that implementation will receive all possible samples from every point of processing, so make sure to check if media sample has acceptable format.

Member Function Documentation

◆ SinkSample()

virtual int r5::core::IMediaSink::SinkSample ( const MediaSample outSample)
pure virtual

Method called for every sample in processing graph If stream contains encoders, decoders or other transforms and sources this method will be called for every output of each of them If method return negative value it will not receive samples from this point of graph.

Parameters
outSamplemedia sample from output of graph member. Make sure to check description of sample to validate sample format
Returns
0 on success, negative if media sample is not acceptable

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