Windows Media Player SDK banner art
PreviousNext

Choosing Files

If you want to choose a file, you can use code similar to the Playlist example, but substitute the following for the PLAYELEMENT section:

<PLAYELEMENT
  mappingColor = "#00FF00"
  onClick = JScript:player.URL=theme.openDialog('FILE_OPEN','FILES_ALL');"
  />

This line will use the openDialog method of THEME to define a URL for the player. You can use this to choose files that are not in playlists.

You can see a similar working openDialog example in the sample section of the SDK.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.