Interface for source object that can provide multiple media types at same time This interface can be used to implement different media sources that can provide multiple types of media (e.g. mp4 file reader that can provide both audio and video frames)
More...
#include <red5pro.h>
|
virtual int | Init (std::vector< MediaDesc > &descs)=0 |
| Method called before getting data to define media types. More...
|
|
virtual int | GetData (int idx, MediaSample &outSample)=0 |
| Method to get next media sample (e.g. audio or video frame) for specific media stream. More...
|
|
virtual int | Release ()=0 |
| Method called before deleting object to release internal memory. More...
|
|
Interface for source object that can provide multiple media types at same time This interface can be used to implement different media sources that can provide multiple types of media (e.g. mp4 file reader that can provide both audio and video frames)
◆ GetData()
virtual int r5::core::IDemuxingSource::GetData |
( |
int |
idx, |
|
|
MediaSample & |
outSample |
|
) |
| |
|
pure virtual |
Method to get next media sample (e.g. audio or video frame) for specific media stream.
- Parameters
-
idx | index of media stream. Value coresponds to index in descs from Init |
outSample | output media sample |
- Returns
- 0 on success, negative on fail
◆ Init()
virtual int r5::core::IDemuxingSource::Init |
( |
std::vector< MediaDesc > & |
descs | ) |
|
|
pure virtual |
Method called before getting data to define media types.
- Parameters
-
descs | set of output descriptions of media types that object will provide |
- Returns
- 0 on success, negative on fail
◆ Release()
virtual int r5::core::IDemuxingSource::Release |
( |
| ) |
|
|
pure virtual |
Method called before deleting object to release internal memory.
- Returns
- 0 on success, negative on fail
The documentation for this class was generated from the following file: