Shaka Player Embedded
Public Member Functions | List of all members
shaka::media::ffmpeg::FFmpegDemuxerFactory Class Reference

#include <ffmpeg_demuxer.h>

Inheritance diagram for shaka::media::ffmpeg::FFmpegDemuxerFactory:
shaka::media::DemuxerFactory

Public Member Functions

bool IsTypeSupported (const std::string &mime_type) const override
 
bool IsCodecVideo (const std::string &codec) const override
 
std::unique_ptr< DemuxerCreate (const std::string &mime_type, Demuxer::Client *client) const override
 
- Public Member Functions inherited from shaka::media::DemuxerFactory
 DemuxerFactory ()
 
virtual ~ DemuxerFactory ()
 
 DemuxerFactory (const DemuxerFactory &)=delete
 
DemuxerFactoryoperator= (const DemuxerFactory &)=delete
 
 DemuxerFactory (DemuxerFactory &&)=delete
 
DemuxerFactoryoperator= (DemuxerFactory &&)=delete
 
virtual bool CanSwitchType (const std::string &old_mime_type, const std::string &new_mime_type) const
 

Additional Inherited Members

- Static Public Member Functions inherited from shaka::media::DemuxerFactory
static const DemuxerFactoryGetFactory ()
 
static void SetFactory (const DemuxerFactory *factory)
 

Detailed Description

Definition at line 103 of file ffmpeg_demuxer.h.

Member Function Documentation

§ Create()

std::unique_ptr< Demuxer > shaka::media::ffmpeg::FFmpegDemuxerFactory::Create ( const std::string &  mime_type,
Demuxer::Client client 
) const
overridevirtual

Creates a new Demuxer instance to initially read the given type of content.

Parameters
mime_typeThe full MIME type of the content being parsed.
clientA client object to raise events to; this will live as long as the resulting Demuxer instance.
Returns
The resulting Demuxer instance, or nullptr on error.

Implements shaka::media::DemuxerFactory.

Definition at line 711 of file ffmpeg_demuxer.cc.

§ IsCodecVideo()

bool shaka::media::ffmpeg::FFmpegDemuxerFactory::IsCodecVideo ( const std::string &  codec) const
overridevirtual

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.

Parameters
codecThe codec to check.
Returns
True if the codec is for video, false for audio.

Implements shaka::media::DemuxerFactory.

Definition at line 703 of file ffmpeg_demuxer.cc.

§ IsTypeSupported()

bool shaka::media::ffmpeg::FFmpegDemuxerFactory::IsTypeSupported ( const std::string &  mime_type) const
overridevirtual

Determines whether the given MIME type can be demuxed.

Parameters
mime_typeThe full MIME type to check.
Returns
True if the content can be demuxed, false otherwise.

Implements shaka::media::DemuxerFactory.

Definition at line 698 of file ffmpeg_demuxer.cc.


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