Windows Media Player Control SDK Banner Art
*Index  *Topic Contents
*Previous Topic: GetCodecURL
*Next Topic: GetMarkerName

GetCurrentEntry Method

Retrieves the current clip being played by the Microsoft® Windows Media™ Player control.

Syntax

lRetVal = MediaPlayer.GetCurrentEntry( )

Return Value

Long value specifying the index number of the current ENTRY element being played, based on its order in the specified Advanced Stream Redirector (ASX) file. If the Windows Media Player is not currently playing a file, this function will return the value zero.

Remarks

The first ENTRY element in an ASX file has an index number of 1. This method retrieves the index number of the current entry. To select an entry, call the SetCurrentEntry method.

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

See Also

SetCurrentEntry, GetMediaParameter, GetMediaParameterName, EntryCount.


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