Player.newMedia method

The newMedia method creates a new Media object.

Syntax

retVal = Player.newMedia(
  URL
)

Parameters

URL [in]

String containing the URL of the digital media file to create the Media object with.

Return value

This method returns a Media object.

Remarks

The URL parameter must not be an empty string or null.

Requirements

Version
Windows Media Player 9 Series or later.
DLL
Wmp.dll

See also

Player Object