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).
No comments:
Post a Comment