Media class
Defines the Media Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is p14:media.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.PowerPoint.Media
Namespace: DocumentFormat.OpenXml.Office2010.PowerPoint
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.3.24 media
Target namespace: http://schemas.microsoft.com/office/powerpoint/2010/main
A CT_Media element (section 2.5.14) that specifies a media object. See section 2.2.4 for how this element integrates with [ISO/IEC-29500:2008].
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="media" type="CT_Media"/>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.5.14 CT_Media
Target namespace: http://schemas.microsoft.com/office/powerpoint/2010/main
Referenced by: media
A complex type that specifies the media file data and its associated parameters.
Child Elements:
trim: A CT_MediaTrim element (section 2.5.10) that specifies the amount of time to be trimmed from the start and end of the media during playback.
fade: A CT_MediaFade element (section 2.5.11) that specifies the starting and ending fade durations for the media.
bmkLst: A CT_MediaBookmarkList element (section 2.5.13) that specifies a list of bookmarks on the media.
extLst: A p:CT_ExtensionList element ([ISO/IEC-29500-4] section A.3) that specifies the extension list. All future extensions to the media will be stored in the extension list.
Attributes:
r:embed: An r:ST_RelationshipId attribute ([ISO/IEC-29500-4] section A.7.8) that specifies the relationship identifier that is used to determine the location of the media if it is embedded in the document. The r:embed attribute MUST be present if the r:link attribute is not present. If both the r:embed and r:link attributes are present, the r:link attribute takes precedence.
r:link: An r:ST_RelationshipId attribute ([ISO/IEC-29500-4] section A.7.8) that specifies the relationship identifier that is used to determine the location of the media if it is linked from the document. The r:link attribute MUST be present if the r:embed attribute is not present. If both the r:link and r:embed attributes are present, the r:link attribute takes precedence.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_Media">
<xsd:sequence>
<xsd:element name="trim" type="CT_MediaTrim" minOccurs="0" maxOccurs="1"/>
<xsd:element name="fade" type="CT_MediaFade" minOccurs="0" maxOccurs="1"/>
<xsd:element name="bmkLst" type="CT_MediaBookmarkList" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="p:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attributeGroup ref="a:AG_Blob"/>
</xsd:complexType>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).