Windows Media Player SDK banner art
PreviousNext

Player6.SetCurrentEntry

This method selects a clip for playback by Windows Media Player.

Syntax

MediaPlayer.SetCurrentEntry(lWhichEntry)

Parameters

  lWhichEntry

Long value indicating the index number of the ENTRY element that defines the media file to play back.

Return Value

This method does not return a value.

Remarks

If the value for lWhichEntry is valid for the specified Windows Media metafile, Windows Media Player will begin playing the clip immediately. If the value is invalid, Windows Media Player will perform no action.

The first ENTRY element in a Windows Media metafile has an index number of 1. Setting the current entry value to zero or to a number greater than the value of the EntryCount property will result in an error.

Note   This scripting method is only available for Windows Media Player version 6.01 and later. The standard installation of Microsoft® Internet Explorer 5 includes a compatible version of Windows Media Player.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.