SetCurrentEntry

Selects a clip for playback by the Microsoft® Windows Media™ Player control.

Compatibility: Windows Media Player

MediaPlayer.SetCurrentEntry( lWhichEntry )

Parameters

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

Return Values

No return value.

Remarks

If the value for lWhichEntry is valid for the specified Advanced Stream Redirector (ASX) file, the Media Player will begin playing the clip immediately. If the value is invalid, the Windows Media Player will perform no action.

The first ENTRY element in an ASX file 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.

See Also

GetCurrentEntry, GetMediaParameter, GetMediaParameterName, EntryCount

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.