Windows Dev Center

Controls.previous method

The previous method sets the current item to the previous item in the playlist.

Syntax


Controls.previous()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

If the playlist is on the first entry when previous is invoked, the last entry in the playlist will become the current one.

Examples

The following example creates an HTML BUTTON element that uses previous to move to the preceding item in the current playlist. The Player object was created with ID = "Player".



<INPUT TYPE = "BUTTON"  ID = "PREV"  NAME = "PREV"  VALUE = "|<<"
    onClick = "

        /* Check first to be sure the operation is valid. */
        if (Player.controls.isAvailable('Previous'))

            /* Move to the preceding item in the playlist. */
            Player.controls.previous();
">



Requirements

Version

Windows Media Player version 7.0 or later.

DLL

Wmp.dll

See also

Controls Object
Controls.next
Controls.stop

 

 

Community Additions

ADD
Show:
© 2015 Microsoft