How to write c# program to play video files?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've installed PocketMTV software to play .mpeg and .avi files.
I am trying to put together an application that would allow me to display a
video stream in my pocket pc.
How to write c# smart device application with Visual Studio .Net 2003 , to trigger the PocketTV player to play the mpeg files?( something like "player trigger" )
thx for help!
 
Assuming PocketTV can be started with a filename as a command line argument,
you can either Platform Invoke CreateProcess or use the
OpenNETCF.Diagnostics.Process class (www.opennetcf.org/sdf/) and do
something like this:-

Process.Start("PocketTV.exe", "\\My Documents\\CoolMovie.mpeg");

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
I downloaded the SmartDeviceFramework12.zip and installed it successfuly.
But when I chose to open an OpenNETCF applcation,it failed indicating that "can't find default.js or default.vbs in C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\VC#Wizards\OpenNETCFAppWiz\Pocket PC\Scrips\1028\".
What's wrong here..? Would you give me some steps to follow to install it correctly?
Another question:DoI have to install SDF1.2 to my pocket pc?
Thank you^^
 
Check the pocketpc.developer group. Just last week the Pocket TV developer
posted all of the command-line switches for the app.

-Chris


Eric said:
I've installed PocketMTV software to play .mpeg and .avi files.
I am trying to put together an application that would allow me to display a
video stream in my pocket pc.
How to write c# smart device application with Visual Studio .Net 2003 , to
trigger the PocketTV player to play the mpeg files?( something like "player
trigger" )
 
Back
Top