Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The Microsoft Windows Media Player control supports several attributes for manipulating playback of content.
The Windows Media Player control provides two techniques for specifying the media title ( clip) to be played: Setting the FileNameproperty, or calling the Openmethod.
Once either of the above steps is taken, what happens next depends on the AutoStartproperty. If AutoStart is true, the desired clip begins to play when the FileName property is set to the URL of that clip. If AutoStart is false, playback does not start until the Playmethod is called.
The Openmethod opens a file asynchronously; it returns from the call immediately. This is unlike setting the FileName property that does not return control to your program until the file is open. If the file must be downloaded, setting the FileNameproperty will only wait until the file begins to download, not when it ends downloading.
The Windows Media Player control provides the following VCR-like attributes for controlling stream playback:
The Windows Media Player control provides the following properties for regulating audio.
You can display the Volume and Mute controls on the control bar by setting the ShowControlsand the ShowAudioControlsproperties both to TRUE.
The Windows Media Player control provides the following attributes for scanning:
The CanScanand AllowScanproperties must be true before a clip can be scanned.
Some types of multimedia streams support seeking to arbitrary times in the presentation, as well as seeking to markers. A marker is a pointer to a specific time in a multimedia stream file, written into the file at authoring time. The Windows Media Player control can seek directly to the time specified by a marker, enabling viewers to skip forward or backward in the presentation. Attributes supported for seeking include:
To be able to seek to an arbitrary time, the media must be seekable (the CanSeekproperty is true), and to seek to a marker, the media must have markers encoded into it (the CanSeekToMarkersproperty is true).
Last updated on Tuesday, May 18, 2004