Embed Windows Media Player in my Pocket PC app

N

Noulouk Noulouk

Hi,

I build a windows app in which I can play, stop, pause ... videos by
controlling Windows Media Player.
In VS 2005, I just add the wmp ocx in the toolbar, then drag-drop wmp in
my form and the interop is created (it's magic), so I can code wmp:
axWindowsMediaPlayer1.URL="myUrl";
axWindowsMediaPlayer1.ctlControls.Play();

I want to know if it's possible to do the same with the pocket PC form
or the Smartphone form.

I know in .net cf 2.0 Interop services have been added to be able to
control Pocket Media Player , pocket IE or other Pocket ActiveX.

Thanks in advance for helping me to control those apps in a Pocket PC or
a Smartphone.
 
P

Peter Foot [MVP]

..NETCF v2.0 has COM interop, so that you can control the windows media
player object, however it doesn't have inherent support for ActiveX controls
so it wont build the appropriate toolbox and forms support. So out of the
box you can use the control to organise and play audio with your own UI. If
you are attending MEDC in Las Vegas I recommend you attend Alex Feinman's
session titled "COM and Native Code Interop Using the .NET Compact
Framework" which will look into advanced COM Interop topics.

Peter
 
A

Alex Feinman [MVP]

There is no out-of-the box control hosting support in Visual Studio 2005 for
Devices. The interop features added to CF 2.0 are indeed sufficient to make
it possible.

There'll be more information coming soon on how to do this in your own
application
 
N

Noulouk

Thank you very much for your answers.

You are the first forum which posts some answers to this question.
So CONGRATULATIONS !!! I'm new user of the website which one is already
in my favorites (exceptional).

OK, VS 2005 doesn't build the Interop itself at design time.
But today, is there another way to build the Interop something like POOM
for Pocket Outlook or the best way is to wait for the 9 May MEDC ?
 
A

Alex Feinman [MVP]

The answers you are getting are coming from a
microsoft.public.dotnet.framework.compactframework newsgroup. It is today
one of the best sources of information on the compact framework development,
The website you are perusing is simply acting as a gateway to it aggeragting
some stuff.
 
N

Noulouk

Thanks Alex for the precision.

Any idea about my question ?
// But today, is there another way to build the Interop something like
POOM for Pocket Outlook or the best way is to wait for the 9 May MEDC ?

You know I try a lot of things to find a solution.
For example the last one: I try to copy the wmpocx.dll file from my
Pocket PC to my desktop PC with ActiveSync to build the Interop (but the
wmpocx.dll file is inside the ROM, so I can't copy it).
 
A

Alex Feinman [MVP]

The type library for Mobile WMP OCX is identical to the desktop ocx. It's
just that some methods are returning E_NOTIMPL.
 
N

Noulouk

I waited for the MEDC 2005 in Las Vegas.
I know Alex Feinman discuss about "Com and activex components" that can
be embed in a Windows Mobile 5.0 app.
The problem is I can't find any videos or any docs about his speech.
I know he shows how to play a video with netcf 2.0, but I can't find any
code on the net.

Hope you subscribe to my post.
Thanks in advance for your help.
 
S

Stephen Souness

Has there been any progress on this?

I'd really like to know if it is reasonable to expect to be able to
embed a media player control within a Pocket PC application - preferably
from managed code.

Using Visual Studio 2005 Beta 2, C#, .netcf 2 for the rest of the
application so far.
 

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