Playing a Media File Using the MediaPlayerLauncher

The media player launcher is used to launch the built-in Media Player app to play a specified media file (see Figure 14.12).


FIGURE 14.12 Windows Phone Media Player application.

Media files can be stored either locally on the device or externally using an absolute Uri. If stored locally, the MediaPlayerLauncher.Media property must be assigned a relative Uri to the file location. Relative Uris are used for files located in either isolated storage or in the app’s XAP file.

Files downloaded from the Internet are placed in isolated storage, whereas files accompanying the app are placed into the app’s ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.