Partager via


Video Class

Video.When the object is serialized out as xml, its qualified name is p:video.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.Video

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CommonMediaNode))> _
Public Class Video _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Video
[ChildElementInfoAttribute(typeof(CommonMediaNode))]
public class Video : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • CommonMediaNode <p:cMediaNode>

[ISO/IEC 29500-1 1st Edition]

19.5.93 video (Video)

This element specifies video information in an animation sequence. This element specifies that this node within the animation tree triggers the playback of a video file; the actual video file used is specified by the videoFile element (§20.1.3.6).

[Example: Consider a slide with an animated video content. The <video> element is used as follows:

<p:cSld>
  <p:spTree>
    <p:pic>
      <p:nvPicPr>
        <p:cNvPr id="4"/>
        …
        <p:nvPr>
          <a:videoFile r:link="rId1" contentType="video/ogg"/>
        </p:nvPr>
      </p:nvPicPr>
      …
    </p:pic>
  </p:spTree>
</p:cSld>
…
<p:childTnLst>
  <p:seq concurrent="1" nextAc="seek">
   …
  </p:seq>
  <p:video>
    <p:cMediaNode>
      …
      <p:tgtEl>
        <p:spTgt spid="4"/>
      </p:tgtEl>
    </p:cMediaNode>
  </p:video>
</p:childTnLst>

The video element specifies the location of the video playback within the animation sequence; its child spTgt element specifies that the shape which contains the video to be played has a shape ID of 4. If we look at the shape with that ID value, its child videoFile element references an external video file of content type video/ogg located at the target of the relationship with ID rId1.end example]

Parent Elements

childTnLst (§19.5.25); subTnLst (§19.5.78); tnLst (§19.5.87)

Child Elements

Subclause

cMediaNode (Common Media Node Properties)

§19.5.29

Attributes

Description

fullScrn (Full Screen)

This attribute specifies if the video is displayed in full-screen.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_TLMediaNodeVideo) is located in §A.3. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Video Members

DocumentFormat.OpenXml.Presentation Namespace