Thursday, May 19, 2011

How to Play Audio, Video, Files transfer, Isolated Storage Explorer with Windows Phone 7 (WP7) Emulator

As a part of work I was gathering some information regarding playing media contents in Windows Phone 7 (WP7) emulator. I thought it is simple as similar with WM series devices. Though the code snippet for playing is not more than 5-7 lines but faced little problem while transferring media file from my hard drive to Emulator & playing the same.

In WM series devices we are transferring a file (manually) from desktop to Emulator either by using Active Sync or by using WMDC (Windows Mobile Device Center).
However in WP7 it is totally different. Here we need to install the WP7 Isolated Storage Explorer. It is local storage for WP7 applications & all I/O operations need to use it. You can download it from  HERE . Once you downloaded then follow the instructions .
Thanks to Microsoft Corporation for providing wonderful contents

Now its time for using MediaPlayerLauncher to play your media file.
Code snippet for playing media is as below :

 MediaPlayerLauncher objMPlayerLauncher = new MediaPlayerLauncher();
 objMPlayerLauncher.Media = new Uri("gags.wmv", UriKind.Relative); 
 //replace "gags" with your file path.
 objMPlayerLauncher.Location = MediaLocationType.Data;
 objMPlayerLauncher.Controls = MediaPlaybackControls.Pause| MediaPlaybackControls.Stop;

Please checkout this screen shot :

Hope this will helps.


  1. good one. Thanks

  2. Hi is it possible now , with the last release "windows phone mango" , to write a stream of music in a file and play it in the same time??

  3. This comment has been removed by the author.

  4. Hiya,
    I am not sure about this. I guess you need look around adaptive streaming with updated WP7 or else you can raise query in MS forums.

    Article by Giuseppe Guerrasio may help you :


  5. World Wide Web centered on conveying the info. The finest use of internet tends to be that many are sharing docs nowadays. - shareit app for android

  6. I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and let me tell you, you have hit the nail on the head. The issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

  7. Maybe, another explanation behind the expansion in audio visual rental administrations is the acknowledgment that obtaining a pristine thing isn't generally the best decision. audio visual setup

  8. This comment has been removed by the author.

  9. With the appearance of Internet explore, many public expo participants have taken in a great deal about an organization when they touch base at the show. In Palermo's words, these individuals are "a lot further down the business cycle" when the get to an organization's corner. Audio visual equipment rental by

  10. The tuner on the WR-11 would lift it up pleasantly. You could snare the Line Out jacks from your sound system to that FM transmitter you can try here

  11. This is prompts quality transcripts, which means high customer fulfillment. french transcription services