Using Media player control in applications

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

Guest

WMPLib.dllDear All,
I asked before about playing WMA files in my application, i have been
answering to host the windows media player activex control
i downloaded the sample project that was in the link.
but when i try build the project and run it on my device, a run time error
occures says that the class is not registered,
I tried to use the dll which named WMPLib.dll in another project,
the first line i wrote is:
WindowsMediaPlayerClass player = new WindowsMediaPlayerClass();
i had the same error at run time which says that the class is not registered
so, is this the only way i could use the windows media player component by
using another DLL, or i can use it directly from my application.
Thanks in advance
Regards
Tamer Hesham
 
I suppose your device has got WMP10...........Otherways it's impossible
to play video as Alex's example does.

Regards.
 
So,the device must have WMP 10 okay, but for writing the code, hoa could i
write the appropiate code to use the media player component directly
Thanks
Regards
Tamer
 
The unique way of playing video without showing Media Player interface
means using Alex's approach of ActiveX.

The other way (but showing Media Player UI to user) should be launching
Media Player as a normal process and passing the video fle name as a
parameter.

Regards.
 
Hi,

With CF 2.0 I think you can use System.Diagnostics.Process as you would
do it for a .NET Winforms application.

If you're still with CF 1.0, Smart Device Framework contains same
solution for you.

Regards.
 
Back
Top