Shaka Packager SDK
|
RepresentationType in MPD. More...
#include <xml_node.h>
Public Member Functions | |
bool | AddVideoInfo (const MediaInfo::VideoInfo &video_info, bool set_width, bool set_height, bool set_frame_rate) |
bool | AddAudioInfo (const MediaInfo::AudioInfo &audio_info) |
bool | AddVODOnlyInfo (const MediaInfo &media_info, bool use_segment_list, double target_segment_duration) |
bool | AddLiveOnlyInfo (const MediaInfo &media_info, const std::list< SegmentInfo > &segment_infos, bool low_latency_dash_mode) |
Public Member Functions inherited from shaka::xml::RepresentationBaseXmlNode | |
bool | AddContentProtectionElements (const std::list< ContentProtectionElement > &content_protection_elements) |
bool | AddSupplementalProperty (const std::string &scheme_id_uri, const std::string &value) |
bool | AddEssentialProperty (const std::string &scheme_id_uri, const std::string &value) |
Public Member Functions inherited from shaka::xml::XmlNode | |
XmlNode (const std::string &name) | |
XmlNode (XmlNode &&) | |
XmlNode & | operator= (XmlNode &&) |
bool | AddChild (XmlNode child) |
bool | AddElements (const std::vector< Element > &elements) |
Adds Elements to this node using the Element struct. | |
bool | SetStringAttribute (const std::string &attribute_name, const std::string &attribute) |
bool | SetIntegerAttribute (const std::string &attribute_name, uint64_t number) |
bool | SetFloatingPointAttribute (const std::string &attribute_name, double number) |
bool | SetId (uint32_t id) |
void | AddContent (const std::string &content) |
Similar to SetContent, but appends to the end of existing content. | |
void | AddUrlEncodedContent (const std::string &content) |
void | SetContent (const std::string &content) |
void | SetUrlEncodedContent (const std::string &content) |
std::set< std::string > | ExtractReferencedNamespaces () const |
std::string | ToString (const std::string &comment) const |
bool | GetAttribute (const std::string &name, std::string *value) const |
Additional Inherited Members | |
Protected Member Functions inherited from shaka::xml::RepresentationBaseXmlNode | |
RepresentationBaseXmlNode (const std::string &name) | |
bool | AddDescriptor (const std::string &descriptor_name, const std::string &scheme_id_uri, const std::string &value) |
RepresentationType in MPD.
Definition at line 186 of file xml_node.h.
bool shaka::xml::RepresentationXmlNode::AddAudioInfo | ( | const MediaInfo::AudioInfo & | audio_info | ) |
Adds audio metadata to the MPD.
audio_info | constains the AudioInfos for a Representation. |
Definition at line 411 of file xml_node.cc.
bool shaka::xml::RepresentationXmlNode::AddLiveOnlyInfo | ( | const MediaInfo & | media_info, |
const std::list< SegmentInfo > & | segment_infos, | ||
bool | low_latency_dash_mode | ||
) |
segment_infos | is a set of SegmentInfos. This method assumes that SegmentInfos are sorted by its start time. |
Definition at line 497 of file xml_node.cc.
bool shaka::xml::RepresentationXmlNode::AddVideoInfo | ( | const MediaInfo::VideoInfo & | video_info, |
bool | set_width, | ||
bool | set_height, | ||
bool | set_frame_rate | ||
) |
Adds video metadata to the MPD.
video_info | constains the VideoInfo for a Representation. |
set_width | is a flag for setting the width attribute. |
set_height | is a flag for setting the height attribute. |
set_frame_rate | is a flag for setting the frameRate attribute. |
Definition at line 374 of file xml_node.cc.
bool shaka::xml::RepresentationXmlNode::AddVODOnlyInfo | ( | const MediaInfo & | media_info, |
bool | use_segment_list, | ||
double | target_segment_duration | ||
) |
Adds fields that are specific to VOD. This ignores media_info fields for Live.
media_info | is a MediaInfo with VOD information. |
use_segment_list | is a param that instructs the xml writer to use SegmentList instead of SegmentBase. |
target_segment_duration | is a param that specifies the target |
Definition at line 416 of file xml_node.cc.