StefanK

I am using Alex Feinman's Compact Framework ActiveX host (as described in this MSDN article ). It works great when hosting Media Player versions 10.1 and 10.2, that are available on most WM5 Pocket PCs and Smartphones.

For some reason, when trying to instantiate the WMP control on a T-Mobile DASH smartphone, the device UI hangs (every single running application including the home screen). The only difference that I found is that DASH uses a newer version of Media Player -10.3 (mine is build 15097).

I was able to trace the problem to a call to InPlaceActivate() -> DoVerb( -5 ....) during the control creation process ( called from TransitionUpTo(..) in AxHost.cs) . Oddly enough, commenting the call to InPlaceActivate(), allows the creation to continue resulting in a working control but without any control user interface (as may be expected without the InPlaceActivate call).

Has anyone seen this problem or knows of a workaround

Stefan



Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

manitoba

Hi

I'm experiencing the same issue (WM5 SP - build 15097).
By commenting the InPlaceActivate, I was able to play and control audio same way as on old WM5 release. Obviously, when playing video I can't see anything (audio still ok).

Playing media directly in the Media Player instead of inside my application, would be an acceptable workaround for me.
However, till now, I was not able to get that work . openUrl was not helpful cause it is not supported on WM.

Any ideas on how to drive Media Player without embedding it as a control in my app
---
Manitoba




Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

manitoba


I heard that all WM5 devices will soon be impacted by this issue, because it cames with the new WM5 update (AKU 3.3)

Does anyone know if microsoft has anyplans to get working back this ActiveX Media Player

--
Manitoba




Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

StefanK

I had to open an incident with Microsoft to get this one resolved. It turns out that T-Mobile has released the DASH with a wrong skin for the ActiveX control. If you change the default ocx skin to the one used in landscape mode, the player will work correctly.

You can see how to change the skin here!

(The link is to BeyondPod - an Open Source Podcast Player hosted at CodePlex. It uses Media Player in CF 2.0 Application and contains a good set of skins for different  screen orientations - all based on the original MS skins.)

 





Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

manitoba

Great !
Very Helpful !
Thanks




Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

Ryan Bressler


"Playing media directly in the Media Player instead of inside my application, would be an acceptable workaround for me. "

This is what I ended up doing. Can be done using ShellExecuteEx to open a wmv file and/or a custom wmp plugin (allows more controll but must be signed as trusted to work on the dash ).




Re: Smart Devices VB and C# Projects Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)

AlexFeinman

Excellent. I also traced this back to InPlace activation, but commenting it out was certainly out of the question. Thank you for posting the workaround. Incedentally, could you contact me offline at afeinman AT opennetcf.com

Alex Feinman