Share via


media

banner art

Previous Next

media

The media element defines a generic content item such as an audio or a video file.

Attributes

The following table identifies the attributes supported by Windows Media Services for the media element. The src attribute is required. All other attributes are optional.

Attribute Description
begin Specifies the time at which an element becomes active, relative to the start of its parent time container.
clipBegin Specifies the time at which a stream begins playing, relative to the start of the stream.
clipEnd Specifies the time at which a stream stops playing, relative to the start of the stream.
dur Specifies the simple duration of a media element.
end Specifies the time at which a media element stops playing, relative to the start of its parent time container.
syncEvent Sends a playlist synchronization event from the shared playlist for a publishing point to all client wrapper playlists.
id Uniquely identifies an element. This value must begin with a letter.
mediaName Specifies a name for an entry in a playlist.
noSkip Specifies whether a client can fast forward, rewind, seek, or skip next within the current media element.
repeatCount Specifies the number of times that an element is repeated.
repeatDur Specifies the total duration of a repeated element.
role Specifies the role of a media element.
src Specifies the URL for a media element. This attribute is required.

Remarks

A playlist can also use the ref, animation, audio, img, video, text, or textstream elements instead of media to designate a content item. There is no functional difference. These additional elements are provided to indicate the type of media, for the sake of readability.

The WMS SMIL Playlist Parser plug-in enforces case sensitivity on the media, ref, animation, audio, img, video, text, and textstream elements.

Example Code

The following example illustrates how to use the media element.

<?wsx version="1.0"?>
<smil>
    <media id="m1" src="c:\wmpub\wmroot\Clip_1.wmv" dur="120s" />
    <media id="m2" src="c:\wmpub\wmroot\Clip_2.wmv" />
</smil>

See Also

Previous Next