DASH Media Packaging SDK
|
#include <media_stream.h>
Public Types | |
enum | MediaStreamOperation { kPush, kPull } |
Public Member Functions | |
MediaStream (std::shared_ptr< StreamInfo > info, Demuxer *demuxer) | |
void | Connect (Muxer *muxer) |
Status | Start (MediaStreamOperation operation) |
Start the stream for pushing or pulling. | |
Status | PushSample (const std::shared_ptr< MediaSample > &sample) |
Push sample to Muxer (triggered by Demuxer). | |
Status | PullSample (std::shared_ptr< MediaSample > *sample) |
Pull sample from Demuxer (triggered by Muxer). | |
Demuxer * | demuxer () |
Muxer * | muxer () |
const std::shared_ptr< StreamInfo > | info () const |
std::string | ToString () const |
MediaStream connects Demuxer to Muxer. It is an abstraction for a media elementary stream.
Definition at line 25 of file media_stream.h.
shaka::media::MediaStream::MediaStream | ( | std::shared_ptr< StreamInfo > | info, |
Demuxer * | demuxer | ||
) |
Create MediaStream from StreamInfo and Demuxer.
demuxer | cannot be NULL. |
Definition at line 19 of file media_stream.cc.
void shaka::media::MediaStream::Connect | ( | Muxer * | muxer | ) |
Connect the stream to Muxer.
muxer | cannot be NULL. |
Definition at line 55 of file media_stream.cc.
std::string shaka::media::MediaStream::ToString | ( | ) | const |
Definition at line 105 of file media_stream.cc.