Shaka Player Embedded
|
#include <demuxer.h>
Public Member Functions | |
DemuxerFactory () | |
virtual | ~ DemuxerFactory () |
DemuxerFactory (const DemuxerFactory &)=delete | |
DemuxerFactory & | operator= (const DemuxerFactory &)=delete |
DemuxerFactory (DemuxerFactory &&)=delete | |
DemuxerFactory & | operator= (DemuxerFactory &&)=delete |
virtual bool | IsTypeSupported (const std::string &mime_type) const =0 |
virtual bool | IsCodecVideo (const std::string &codec) const =0 |
virtual bool | CanSwitchType (const std::string &old_mime_type, const std::string &new_mime_type) const |
virtual std::unique_ptr< Demuxer > | Create (const std::string &mime_type, Demuxer::Client *client) const =0 |
Static Public Member Functions | |
static const DemuxerFactory * | GetFactory () |
static void | SetFactory (const DemuxerFactory *factory) |
Defines a factory used to create Demuxer instances and to query supported content types.
shaka::media::DemuxerFactory::DemuxerFactory | ( | ) |
|
virtual |
|
delete |
|
delete |
|
virtual |
Determines whether you can call Demuxer::SwitchType to switch between the given MIME types.
old_mime_type | The full MIME type the Demuxer was using before. |
new_mime_type | The full MIME type we are switching to. |
Definition at line 71 of file demuxer.cc.
|
pure virtual |
Creates a new Demuxer instance to initially read the given type of content.
mime_type | The full MIME type of the content being parsed. |
client | A client object to raise events to; this will live as long as the resulting Demuxer instance. |
Implemented in shaka::media::ffmpeg::FFmpegDemuxerFactory.
|
static |
Definition at line 53 of file demuxer.cc.
|
pure virtual |
Determines if the given codec string represents a video codec. This is only given a single codec, not a MIME type. This is only called when IsTypeSupported returns true.
codec | The codec to check. |
Implemented in shaka::media::ffmpeg::FFmpegDemuxerFactory.
|
pure virtual |
Determines whether the given MIME type can be demuxed.
mime_type | The full MIME type to check. |
Implemented in shaka::media::ffmpeg::FFmpegDemuxerFactory.
|
delete |
|
delete |
|
static |
Sets the current DemuxerFactory instance. This is used to query and create all future Demuxer instances. This can be changed at any time, but will only affect new Demuxer instances. Passing nullptr will reset to the default factory.
factory | The new DemuxerFactory instance to use. |
Definition at line 67 of file demuxer.cc.