Shaka Packager SDK
Public Member Functions | List of all members
shaka::MockRepresentation Class Reference
Inheritance diagram for shaka::MockRepresentation:
shaka::Representation

Public Member Functions

 MockRepresentation (uint32_t representation_id)
 
 MOCK_METHOD1 (AddContentProtectionElement, void(const ContentProtectionElement &element))
 
 MOCK_METHOD2 (UpdateContentProtectionPssh, void(const std::string &drm_uuid, const std::string &pssh))
 
 MOCK_METHOD4 (AddNewSegment, void(int64_t start_time, int64_t duration, uint64_t size, int64_t segment_number))
 
 MOCK_METHOD0 (SetSegmentDuration, void())
 
 MOCK_METHOD0 (SetAvailabilityTimeOffset, void())
 
 MOCK_METHOD1 (SetSampleDuration, void(int32_t sample_duration))
 
 MOCK_CONST_METHOD0 (GetMediaInfo, const MediaInfo &())
 
- Public Member Functions inherited from shaka::Representation
bool Init ()
 
virtual void AddContentProtectionElement (const ContentProtectionElement &element)
 
virtual void UpdateContentProtectionPssh (const std::string &drm_uuid, const std::string &pssh)
 
virtual void AddNewSegment (int64_t start_time, int64_t duration, uint64_t size, int64_t segment_number)
 
virtual void UpdateCompletedSegment (int64_t duration, uint64_t size)
 
virtual void SetSampleDuration (int32_t sample_duration)
 
virtual const MediaInfo & GetMediaInfo () const
 
std::optional< xml::XmlNodeGetXml ()
 
void SuppressOnce (SuppressFlag flag)
 
void SetPresentationTimeOffset (double presentation_time_offset)
 Set @presentationTimeOffset in SegmentBase / SegmentTemplate.
 
void SetAvailabilityTimeOffset ()
 
void SetSegmentDuration ()
 
bool GetStartAndEndTimestamps (double *start_timestamp_seconds, double *end_timestamp_seconds) const
 
uint32_t id () const
 
void set_media_info (const MediaInfo &media_info)
 

Additional Inherited Members

- Public Types inherited from shaka::Representation
enum  SuppressFlag { kSuppressWidth = 1 , kSuppressHeight = 2 , kSuppressFrameRate = 4 }
 
- Protected Member Functions inherited from shaka::Representation
 Representation (const MediaInfo &media_info, const MpdOptions &mpd_options, uint32_t representation_id, std::unique_ptr< RepresentationStateChangeListener > state_change_listener)
 
 Representation (const Representation &representation, std::unique_ptr< RepresentationStateChangeListener > state_change_listener)
 

Detailed Description

Definition at line 68 of file mock_mpd_builder.h.


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