To play a WMV file you can P/Invoke the ShellExecuteEx API method to launch
Windows Media Player with the specified file. OpenNETCF WinAPI
(
www.opennetcf.org/winapi.asp) contains a ShellExecuteEx implementation:-
[C#]
OpenNETCF.WinAPI.Core.ShellExecute("mymovie.wmv", null);
[VB]
OpenNETCF.WinAPI.Core.ShellExecute("mymovie.wmv", Nothing)
Pocket PC does not have any native support for AVI files. To launch these
you will need to install a third-party player - However once installed you
can use the same technique and ShellExecute will launch the application
registered with the AVI file type.
Peter
--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com |
www.opennetcf.org
"yuen" <(E-Mail Removed)> wrote in message
news:bpn10e$1jmh$(E-Mail Removed)...
> Dear all,
>
> How can I play movie, such as avi, wmv in ppc? Thx
>
>