Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: Using the Windows Media Player Control
*Next Topic: Customizing the User Interface

Playback Methods and Properties

The Microsoft® Windows Media™ Player control supports several attributes for manipulating playback of content. In addition to methods for playing, pausing, and stopping media content, the Windows Media Player exposes attributes for the following:

This article contains the following sections.

Playback

The Windows Media Player control provides two techniques for specifying the media title (clip) to be played. You can set the FileName property, or call the Open method. If the value of the AutoStart property is true, the desired clip begins to play when the FileName property is set to the URL of that clip. If AutoStart is false, the Windows Media Player control does not start playback until the Play method is called. The Open method starts the stream asynchronously, unlike the Play method, which waits for other processes to finish before starting.

The Windows Media Player control provides the following VCR-like attributes for controlling stream playback:

Audio Control

The Windows Media Player control provides the following properties for regulating audio:

You can add controls for handling audio to the control bar by setting the ShowAudioControls property to true.

Scanning

The Windows Media Player control provides the following attributes for scanning:

The CanScan and AllowScan properties must be true before a clip can be scanned.

Seeking

Some types of multimedia stream 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 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:

The CanSeek property must be true to seek to an arbitrary time, and the CanSeekToMarkers property must be true to seek to a marker.


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.