External.play method

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

This topic describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The play method instructs Windows Media Player to play a set of media items.

Syntax

External.play(
  LibraryLocationType,
  LibraryLocationIDs
)

Parameters

LibraryLocationType [in]

A library location constant that specifies the type of the media items to be played. For example, CPAlbumID specifies that one or more albums are to be played.

LibraryLocationIDs [in]

String containing the identifiers, delimited by semicolons, of the media items to be played.

Return value

This method does not return a value.

Requirements

Requirement Value
Version
Windows Media Player 11.
DLL
Wmp.dll

See also

External Object for Type 1 Online Stores