Compartir a través de


SetCurrentEntry

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Compatibility: Windows Media Player

Syntax

MediaPlayer.SetCurrentEntry( 
    lWhichEntry 
)

Parameters

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

Return Value

None.

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.

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Methods
GetCurrentEntry
GetMediaParameter
GetMediaParameterName
EntryCount

Concepts

Compatibility Modes