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