DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | List of all members
shaka::media::MediaStream Class Reference

#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).
 
Demuxerdemuxer ()
 
Muxermuxer ()
 
const scoped_refptr< StreamInfoinfo () const
 
std::string ToString () const
 

Detailed Description

MediaStream connects Demuxer to Muxer. It is an abstraction for a media elementary stream.

Definition at line 26 of file media_stream.h.

Constructor & Destructor Documentation

shaka::media::MediaStream::MediaStream ( scoped_refptr< StreamInfo info,
Demuxer demuxer 
)

Create MediaStream from StreamInfo and Demuxer.

Parameters
demuxercannot be NULL.

Definition at line 19 of file media_stream.cc.

Member Function Documentation

void shaka::media::MediaStream::Connect ( Muxer muxer)

Connect the stream to Muxer.

Parameters
muxercannot be NULL.

Definition at line 55 of file media_stream.cc.

std::string shaka::media::MediaStream::ToString ( ) const
Returns
a human-readable string describing |*this|.

Definition at line 103 of file media_stream.cc.


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