PDA

View Full Version : Windows Media Player ActiveX for Internet Explorer Mobile JavaScript issue


ekimsov
7th October 2009, 06:03 PM
Hi,

I am trying to get the ActiveX plugin for the Windows Media Player to work in PocketIE, or rather Internet Explorer Mobile on an O2 XDA Orbit 2 (Windows Mobile 6). The objective is to play a wma file from a URL, but using javascript to control the player, which will sit in a display:none; styled div.

I dont want to post walls of code, so I have setup this simple page to illustrate and test it:
http://lukas.xcomms.ie/cblproof/Default.aspx

I am able to display this fine in PocketIE, and I am able to play the audio file, just as in the desktop browser. However, with the new version of this plugin (i.e. using classid "clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" instead of the old "CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"), I am no longer able to use the javascript calls for .Play() and .Stop() on the player object.

When I switch the code back to use the old plugin, I can successfully use javascript to control the player in the desktop version of IE, but since the plugin is not installed on the WinMo6 device, I cannot bring the page to load the player in PocketIE.

Has anyone come across this before, or is there any reference documentation for the new ActiveX plugin, similar to the old Windows Media Player for PocketPC SDK that Microsoft had for PocketPC 2002 way back when?

Any input here would be much appreciated, I have trawled this forum and the internet for two days now, but unfortunately information is very sparse. I am stuck with PocketIE because of other requirements for the project, so switching to Opera or SkiFire is not an option I am afraid.

Thank you very much in advance for any pointers!

Mike

ekimsov
14th October 2009, 11:31 AM
Hi again,

since no-one seem to have an idea to circumvent this particular challenge, can anyone suggest an alternative? I would be willing to skin the plugin, or use any other means of controlling audio in a web page through JavaScript.

I hate the fact that we have to work with Pocket IE on this, but at least it means that whatever solution we go for will need to work only on this platform and not across a variety of handsets / browsers.

Very grateful for any thoughts, opinions, advice,

Thanks again!

Mike