Playing Media Files in .Net Compact Framework 2.0

Posted: January 30, 2007 in .Net Compact Framework

I have seen many people asking how to play media files in device applications. Here I am playing media files using Windows Media Player.

This is the ProcessHandler class which imports Coredll Dll and uses it’s CreateProcess to create a seperate process with the required application.


This is the main form which has a button to start the Player, then it will ask the user to browse for a media file to play.

The ProcessHandler.CreateProcess function can be used to start any application which is installed in the device by simply replacing the ‘WMPlayer’ by the required application qualified name (IExplorer).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s