Share via


Windows Media Player 11 SDK Controls.play 

Windows Media Player SDK banner art

Previous Next

Controls.play

The play method causes the current media item to start playing, or resumes play of a paused item.

Syntax

  
    
  

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

If this method is called while fast-forwarding or rewinding, the value of Settings**.rate** is set to 1.0.

Example Code

The following example creates an HTML BUTTON element that uses play to play the current media item. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next