play video files on Windows Mobile 5.0 Pocket PC
-
-
Hi, I am developing a PDA application on Windows Mobile 5.0 Pocket PC SDK. I am using Visual Studio 2005 and C# as language. I need to play video files (.wmv) with WMPlayer 10, but I do not know how to do it. Anybody can help me? Any code examples? Thanks
See this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=395350&SiteID=1 But it might also be possible to use ShellExecute (available from NETCF2.0) on your media files like the example below: Code Snippet Proces p = new Process(); p.StartInfo.FileName = @"\myfolder\myfile.wmv"; p.StartInfo.UseShellExecute = true; p.Start(); Regards, Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com
-
See this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=395350&SiteID=1 But it might also be possible to use ShellExecute (available from NETCF2.0) on your media files like the example below: Code Snippet Proces p = new Process(); p.StartInfo.FileName = @"\myfolder\myfile.wmv"; p.StartInfo.UseShellExecute = true; p.Start(); Regards, Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com
-
But on this way I do not use the WMPlayer SDK. Do you know any WMPlayer control for Windows Mobile 5.0? The OpenNETCF does not work well with my pda. Do you know another though it not be free? Regards
I am not sure what you mean by "But on this way I do not use the WMPlayer SDK". Why would you not like to use the Windows Media Player to open the media files? To run windows media player to open a file, use the code below: System.Diagnostics.Process.Start("\Windows\wmplayer.exe", """\My Documents\My Music\new song.mp3""") Regards, Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com