|
Shaka Packager SDK
|
#include <xml_node.h>
Public Member Functions | |
| 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 |
Protected Member Functions | |
| RepresentationBaseXmlNode (const std::string &name) | |
| bool | AddDescriptor (const std::string &descriptor_name, const std::string &scheme_id_uri, const std::string &value) |
This corresponds to RepresentationBaseType in MPD. RepresentationBaseType is not a concrete element type so this should not get instantiated on its own. AdaptationSet and Representation are subtypes of this.
Definition at line 128 of file xml_node.h.
|
override |
Definition at line 294 of file xml_node.cc.
|
explicitprotected |
Definition at line 292 of file xml_node.cc.
| bool shaka::xml::RepresentationBaseXmlNode::AddContentProtectionElements | ( | const std::list< ContentProtectionElement > & | content_protection_elements | ) |
Definition at line 296 of file xml_node.cc.
|
protected |
Add a Descriptor.
| descriptor_name | is the name of the descriptor. |
| scheme_id_uri | is content of the schemeIdUri attribute. |
| value | is the content of value attribute. |
Definition at line 317 of file xml_node.cc.
| bool shaka::xml::RepresentationBaseXmlNode::AddEssentialProperty | ( | const std::string & | scheme_id_uri, |
| const std::string & | value | ||
| ) |
| scheme_id_uri | is content of the schemeIdUri attribute. |
| value | is the content of value attribute. |
Definition at line 311 of file xml_node.cc.
| bool shaka::xml::RepresentationBaseXmlNode::AddSupplementalProperty | ( | const std::string & | scheme_id_uri, |
| const std::string & | value | ||
| ) |
| scheme_id_uri | is content of the schemeIdUri attribute. |
| value | is the content of value attribute. |
Definition at line 305 of file xml_node.cc.