Shaka Packager SDK
|
Public Member Functions | |
MockMediaPlaylist (const std::string &file_name, const std::string &name, const std::string &group_id) | |
MOCK_METHOD1 (SetMediaInfo, bool(const MediaInfo &media_info)) | |
MOCK_METHOD5 (AddSegment, void(const std::string &file_name, int64_t start_time, int64_t duration, uint64_t start_byte_offset, uint64_t size)) | |
MOCK_METHOD3 (AddKeyFrame, void(int64_t timestamp, uint64_t start_byte_offset, uint64_t size)) | |
MOCK_METHOD6 (AddEncryptionInfo, void(EncryptionMethod method, const std::string &url, const std::string &key_id, const std::string &iv, const std::string &key_format, const std::string &key_format_versions)) | |
MOCK_METHOD0 (AddPlacementOpportunity, void()) | |
MOCK_METHOD1 (WriteToFile, bool(const std::filesystem::path &file_path)) | |
MOCK_CONST_METHOD0 (MaxBitrate, uint64_t()) | |
MOCK_CONST_METHOD0 (AvgBitrate, uint64_t()) | |
MOCK_CONST_METHOD0 (GetLongestSegmentDuration, double()) | |
MOCK_METHOD1 (SetTargetDuration, void(int32_t target_duration)) | |
MOCK_CONST_METHOD0 (GetNumChannels, int()) | |
MOCK_CONST_METHOD0 (GetEC3JocComplexity, int()) | |
MOCK_CONST_METHOD0 (GetAC4ImsFlag, bool()) | |
MOCK_CONST_METHOD0 (GetAC4CbiFlag, bool()) | |
MOCK_CONST_METHOD2 (GetDisplayResolution, bool(uint32_t *width, uint32_t *height)) | |
MOCK_CONST_METHOD0 (GetFrameRate, double()) | |
Public Member Functions inherited from shaka::hls::MediaPlaylist | |
MediaPlaylist (const HlsParams &hls_params, const std::string &file_name, const std::string &name, const std::string &group_id) | |
const std::string & | file_name () const |
const std::string & | name () const |
const std::string & | group_id () const |
MediaPlaylistStreamType | stream_type () const |
const std::string & | codec () const |
const std::string & | supplemental_codec () const |
const media::FourCC & | compatible_brand () const |
const std::list< std::unique_ptr< HlsEntry > > & | entries () const |
void | SetStreamTypeForTesting (MediaPlaylistStreamType stream_type) |
For testing only. | |
void | SetCodecForTesting (const std::string &codec) |
For testing only. | |
void | SetLanguageForTesting (const std::string &language) |
For testing only. | |
void | SetForcedSubtitleForTesting (const bool forced_subtitle) |
For testing only. | |
void | SetCharacteristicsForTesting (const std::vector< std::string > &characteristics) |
For testing only. | |
void | AddEncryptionInfoForTesting (MediaPlaylist::EncryptionMethod method, const std::string &url, const std::string &key_id, const std::string &iv, const std::string &key_format, const std::string &key_format_versions) |
For testing only. | |
virtual bool | SetMediaInfo (const MediaInfo &media_info) |
MediaInfo | GetMediaInfo () const |
virtual void | SetSampleDuration (int32_t sample_duration) |
virtual void | AddSegment (const std::string &file_name, int64_t start_time, int64_t duration, uint64_t start_byte_offset, uint64_t size) |
virtual void | AddKeyFrame (int64_t timestamp, uint64_t start_byte_offset, uint64_t size) |
virtual void | AddEncryptionInfo (EncryptionMethod method, const std::string &url, const std::string &key_id, const std::string &iv, const std::string &key_format, const std::string &key_format_versions) |
virtual void | AddPlacementOpportunity () |
virtual bool | WriteToFile (const std::filesystem::path &file_path) |
virtual uint64_t | MaxBitrate () const |
virtual uint64_t | AvgBitrate () const |
virtual double | GetLongestSegmentDuration () const |
virtual void | SetTargetDuration (int32_t target_duration) |
virtual int | GetNumChannels () const |
virtual int | GetEC3JocComplexity () const |
virtual bool | GetAC4ImsFlag () const |
virtual bool | GetAC4CbiFlag () const |
virtual bool | GetDisplayResolution (uint32_t *width, uint32_t *height) const |
virtual std::string | GetVideoRange () const |
virtual double | GetFrameRate () const |
const std::string & | language () const |
const std::vector< std::string > & | characteristics () const |
bool | forced_subtitle () const |
bool | is_dvs () const |
Additional Inherited Members | |
Public Types inherited from shaka::hls::MediaPlaylist | |
enum class | MediaPlaylistStreamType { kUnknown , kAudio , kVideo , kVideoIFramesOnly , kSubtitle } |
enum class | EncryptionMethod { kNone , kAes128 , kSampleAes , kSampleAesCenc } |
Definition at line 17 of file mock_media_playlist.h.