Shaka Packager SDK
|
#include <period.h>
Public Member Functions | |
virtual AdaptationSet * | GetOrCreateAdaptationSet (const MediaInfo &media_info, bool content_protection_in_adaptation_set) |
base::Optional< xml::XmlNode > | GetXml (bool output_period_duration) |
const std::list< AdaptationSet * > | GetAdaptationSets () const |
double | start_time_in_seconds () const |
double | duration_seconds () const |
void | set_duration_seconds (double duration_seconds) |
Set period duration. | |
const std::map< std::string, std::list< AdaptationSet * > > & | trickplay_cache () const |
Protected Member Functions | |
Period (uint32_t period_id, double start_time_in_seconds, const MpdOptions &mpd_options, uint32_t *representation_counter) | |
Friends | |
class | MpdBuilder |
class | PeriodTest |
Period class maps to <Period> element and provides methods to add AdaptationSets.
|
protected |
period_id | is an ID number for this Period. |
start_time_in_seconds | is the start time for this Period. |
mpd_options | is the options for this MPD. |
representation_counter | is a counter for assigning ID numbers to Representation. It can not be NULL. |
|
inline |
const std::list< AdaptationSet * > shaka::Period::GetAdaptationSets | ( | ) | const |
|
virtual |
Check the existing AdaptationSets, if there is one matching the provided media_info, return it; otherwise a new AdaptationSet is created and returned.
media_info | contains media information, which is used to match AdaptationSets. |
content_protection_in_adaptation_set | determines if the ContentProtection is placed in AdaptationSet or Representation element. This affects how MediaInfo in AdaptationSets are matched. |
base::Optional< xml::XmlNode > shaka::Period::GetXml | ( | bool | output_period_duration | ) |
Generates <Period> xml element with its child AdaptationSet elements.
|
inline |
|
inline |