[][src]Enum oox::shared::drawingml::audiovideo::Media

pub enum Media {
    AudioCd(AudioCD),
    WavAudioFile(EmbeddedWAVAudioFile),
    AudioFile(AudioFile),
    VideoFile(VideoFile),
    QuickTimeFile(QuickTimeFile),
}

Variants

AudioCd(AudioCD)

This element specifies the existence of Audio from a CD. This element is specified within the non-visual properties of an object. The audio shall be attached to an object as this is how it is represented within the document. The actual playing of the sound however is done within the timing node list that is specified under the timing element.

Xml example

<p:pic>
  <p:nvPicPr>
    <p:cNvPr id="7" name="Rectangle 6">
      <a:hlinkClick r:id="" action="ppaction://media"/>
    </p:cNvPr>
    <p:cNvPicPr>
      <a:picLocks noRot="1"/>
    </p:cNvPicPr>
    <p:nvPr>
      <a:audioCd>
        <a:st track="1"/>
        <a:end track="3" time="65"/>
      </a:audioCd>
    </p:nvPr>
  </p:nvPicPr>
  ...
</p:pic>

In the above example, we see that there is a single audioCD element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this audioCD element from within the timing node list. For this example we see that the audio for this CD starts playing at the 0 second mark on the first track and ends on the 1 minute 5 second mark of the third track.

WavAudioFile(EmbeddedWAVAudioFile)

This element specifies the existence of an audio WAV file. This element is specified within the non-visual properties of an object. The audio shall be attached to an object as this is how it is represented within the document. The actual playing of the audio however is done within the timing node list that is specified under the timing element.

Xml example

<p:pic>
  <p:nvPicPr>
    <p:cNvPr id="7" name="Rectangle 6">
      <a:hlinkClick r:id="" action="ppaction://media"/>
    </p:cNvPr>
    <p:cNvPicPr>
      <a:picLocks noRot="1"/>
    </p:cNvPicPr>
    <p:nvPr>
      <a:wavAudioFile r:embed="rId2"/>
    </p:nvPr>
  </p:nvPicPr>
  ...
</p:pic>

In the above example, we see that there is a single wavAudioFile element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this wavAudioFile element from within the timing node list. The Embedded relationship id is used to retrieve the actual audio file for playback purposes.

AudioFile(AudioFile)

This element specifies the existence of an audio file. This element is specified within the non-visual properties of an object. The audio shall be attached to an object as this is how it is represented within the document. The actual playing of the audio however is done within the timing node list that is specified under the timing element.

Xml example

<p:pic>
  <p:nvPicPr>
    <p:cNvPr id="7" name="Rectangle 6">
      <a:hlinkClick r:id="" action="ppaction://media"/>
    </p:cNvPr>
    <p:cNvPicPr>
      <a:picLocks noRot="1"/>
    </p:cNvPicPr>
    <p:nvPr>
      <a:audioFile r:link="rId1"/>
    </p:nvPr>
  </p:nvPicPr>
  ...
</p:pic>

In the above example, we see that there is a single audioFile element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this audioFile element from within the timing node list. The Linked relationship id is used to retrieve the actual audio file for playback purposes.

VideoFile(VideoFile)

This element specifies the existence of a video file. This element is specified within the non-visual properties of an object. The video shall be attached to an object as this is how it is represented within the document. The actual playing of the video however is done within the timing node list that is specified under the timing element.

Xml example

<p:pic>
  <p:nvPicPr>
    <p:cNvPr id="7" name="Rectangle 6">
      <a:hlinkClick r:id="" action="ppaction://media"/>
    </p:cNvPr>
    <p:cNvPicPr>
      <a:picLocks noRot="1"/>
    </p:cNvPicPr>
    <p:nvPr>
      <a:videoFile r:link="rId1"/>
    </p:nvPr>
  </p:nvPicPr>
  ...
</p:pic>

In the above example, we see that there is a single videoFile element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this videoFile element from within the timing node list. The Linked relationship id is used to retrieve the actual video file for playback purposes.

QuickTimeFile(QuickTimeFile)

This element specifies the existence of a QuickTime file. This element is specified within the non-visual properties of an object. The QuickTime file shall be attached to an object as this is how it is represented within the document. The actual playing of the QuickTime however is done within the timing node list that is specified under the timing element.

Xml example

<p:pic>
  <p:nvPicPr>
    <p:cNvPr id="7" name="Rectangle 6">
      <a:hlinkClick r:id="" action="ppaction://media"/>
    </p:cNvPr>
    <p:cNvPicPr>
      <a:picLocks noRot="1"/>
    </p:cNvPicPr>
    <p:nvPr>
      <a:quickTimeFile r:link="rId1"/>
    </p:nvPr>
  </p:nvPicPr>
  ...
</p:pic>

In the above example, we see that there is a single quickTimeFile element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this quickTimeFile element from within the timing node list. The Linked relationship id is used to retrieve the actual video file for playback purposes.

Trait Implementations

impl Clone for Media[src]

impl Debug for Media[src]

impl PartialEq<Media> for Media[src]

impl StructuralPartialEq for Media[src]

impl XsdChoice for Media[src]

impl XsdType for Media[src]

Auto Trait Implementations

impl RefUnwindSafe for Media

impl Send for Media

impl Sync for Media

impl Unpin for Media

impl UnwindSafe for Media

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.