Using Media player control in applications

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
 
L

Lonifasiko

I suppose your device has got WMP10...........Otherways it's impossible
to play video as Alex's example does.

Regards.
 
G

Guest

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
 
L

Lonifasiko

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.
 
L

Lonifasiko

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top