How can I play movie?

  • Thread starter Thread starter yuen
  • Start date Start date
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
 
Thanks for your help.

However, the emulator still cannot play wmv ,since the file type cannot be
recognized. What should I do then? How can I install Windows Media Player in
the emulator? I have already download wmnall.exe and ActiveSync , however,
ActiveSync find no device can be connected! Moreover, if i place the file,
wmnall.exe in the emulator, the file cannot run properly! Are there any
method allow me to install wmp in the emulator without using ActiveSync.

Thx!



Peter Foot said:
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 said:
Dear all,

How can I play movie, such as avi, wmv in ppc? Thx
 
Which emulator are you working with? Windows Media Player is available on
the Pocket PC 2003 emulator but not the Pocket PC 2002 emulator. Note there
is no installer for Windows Media Player for the emulator, the install
package is for installation on a "real" device connected through activesync.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

yuen said:
Thanks for your help.

However, the emulator still cannot play wmv ,since the file type cannot be
recognized. What should I do then? How can I install Windows Media Player in
the emulator? I have already download wmnall.exe and ActiveSync , however,
ActiveSync find no device can be connected! Moreover, if i place the file,
wmnall.exe in the emulator, the file cannot run properly! Are there any
method allow me to install wmp in the emulator without using ActiveSync.

Thx!



Peter Foot said:
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 said:
Dear all,

How can I play movie, such as avi, wmv in ppc? Thx
 
Back
Top