can you help exercise the compatibility skeleton?
Sunday, April 15, 2007 1:23:17 AM
The problem is that WMP comes in two flavours, one all-singing, all-dancing ActiveX version which supports the latest and greates in JavaScript interaction, and one Netscape Plugin API version which has a somewhat more limited and definitely very different repertory of JavaScript commands. Of course most sites wanting to display WMP video and interact with it with JavaScript are written for the ActiveX version, and naturally browsers that do not support ActiveX run into a lot of broken pages because of this.
Now, here's an experimental compatibility layer for WMP ActiveX scripting, implementing some of the ActiveX version's API in User JS, and I would very much appreciate your help testing it:
http://files.myopera.com/hallvors/files/1wmp.js
Please install it as a User JS and go surfing for video sites (you need Java installed too for it to work). Please leave a comment on this post when you start using it, giving your WMP version. Also report in the comments any broken sites, as well as ones that are broken without the user script but works with it. (Ignore video.aol.com because there seems to be a lot more work to do to get that fish working.) Also be sure to report any stability issues.
A good place to test is here:
http://www.thesun.co.uk/article/0,,11021-10043,00.html
Video should not work in a normal Opera but work if the User JS is active.
Thanks in advance!
Edit: note that the user script requires Opera 9.20 or greater.









graste # Sunday, April 15, 2007 2:09:16 AM
Robin ZalekBtEO # Sunday, April 15, 2007 3:13:33 AM
The Sun worked fine aside from the video resizing issue that WMP 11 introduced, which is wholly separate from the terrible lack of scripting support.
Good work so far.
Michael A. Puls IIburnout426 # Sunday, April 15, 2007 7:30:39 AM
Hallvord R. M. Steenhallvors # Sunday, April 15, 2007 8:53:33 AM
Jose Anto AkkaraJoseaa # Sunday, April 15, 2007 9:55:29 AM
F.V.F-V # Sunday, April 15, 2007 2:20:18 PM
Sun page doesn't do anything, with or without the script.
Firefox works fine, apparently with the same plug-in.
Michael Paynehartley231 # Sunday, April 15, 2007 5:41:56 PM
el_esponjoso # Sunday, April 15, 2007 7:32:18 PM
I have Windows xp and windows media player 9
Hallvord R. M. Steenhallvors # Sunday, April 15, 2007 9:38:46 PM
- Go to "Tools > Advanced > Error console"
- Click first line (well, if you've had a long session preferably the first line related to the Sun site)
- Press shift and click last line. All content should be selected
- Ctrl+C to copy
- Paste in a PM to me
Asle HeggheimAsle # Monday, April 16, 2007 9:19:16 PM
Opera 9.20, WMP 11, Windows XP home SP2.
João EirasxErath # Monday, April 16, 2007 11:38:07 PM
http://on10.net/Blogs/tina/out-with-wpfe-in-with-microsoft-silverlight-this-has-just-been-announced/
You need this
fix-atlas-crap.js
Then I get these errors and messages
JavaScript Unknown thread looking for objects, found 1 JavaScript Unknown thread patching NPDS.npDSJavaPeer@1cac6db JavaScript Unknown thread plugin event on <OBJECT id="mpPlayer17249" height="225" width="300" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-mplayer2"><PARAM name="url" value="http://on10.net/videos/Silverlight_on10.asx"><PARAM name="autostart" value="false"><PARAM name="uiMode" value="none"><PARAM name="enabled" value="true"></OBJECT> JavaScript Unknown thread Attaching script to <OBJECT id="mpPlayer17249" height="225" width="300" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-mplayer2"><PARAM name="url" value="http://on10.net/videos/Silverlight_on10.asx"><PARAM name="autostart" value="false"><PARAM name="uiMode" value="none"><PARAM name="enabled" value="true"></OBJECT> JavaScript Unknown thread new value for mute, false, old: undefined JavaScript Unknown thread new value for volume, 100, old: undefined JavaScript Unknown thread new value for playstate, 6, old: undefined JavaScript - http://on10.net/Blogs/tina/out-with-wpfe-in-with-microsoft-silverlight-this-has-just-been-announced/ Timeout thread: delay 800 ms Error: name: TypeError message: Statement on line 49: Type mismatch (usually a non-object value used where an object is required) Backtrace: Line 49 of User JS script currentValue = compatMap[param][0](); At unknown location [statement source code not available]Luchio # Wednesday, April 18, 2007 1:16:43 PM
New Release of Windows Media Player Plug-in for Firefox
http://port25.technet.com/archive/2007/04/16/windows-media-player-plug-in-for-firefox.aspx
I have not tried it since I'm not on my computer. I think it might be of interest to you.
Øyvind ØstlundNoteMe # Thursday, April 19, 2007 7:15:57 AM
Opera found the plugin, and it correctly showed the MIME types supported on opera:plugins, but there was no picture, only sound.
At home I have Win XP SP2 and WMP 11. It worked in Fx2, so I guess this is the reason why they call it the Firefox plug-in. They probably knew it didn't work in other Netscape Gecko plug-in compatible browsers.
Or am I wrong, and someone else made it work?
- ØØ -
Smir # Thursday, April 19, 2007 5:55:15 PM
Some courses of my university record the lecture and the slides and use a system, where you can watch the slides online with the lecture.
One example:
http://a7msstorage1.igd.fhg.de/WebVenue/lectures/bv2007/2007-04-18/web_template/Flash.html
It consists of a mix of two Flash objects and one media player object... but it did not work correctly in Opera.
With this user JS and some small adjustments I was able to view the lecture and the slides changed automatically during the lecture.
But it is still not possible to jump to a specific slide, because changing of controls.currentPosition does not work.
(Is there any setCurrentPosition function or something like that? Is there any good resource which specifies all functions for the Netscape type wmp Plugin?)
My Adjustments to the User JS:
I changed
if( e.element.type&&e.element.type.toLowerCase()=='application/x-mplayer2' ) {
to
if( e.element.getAttribute && e.element.getAttribute("type") && e.element.getAttribute("type").toLowerCase()=='application/x-mplayer2' ) {
Somehow it did not work without this change...
Another change was to the page itself.
It defines an Object with id Player and an embed with name Player but the JS only works with document.getElementById("Player").
I gave the embed the id Player and the object the id PlayerIE.
Hallvord R. M. Steenhallvors # Saturday, April 21, 2007 12:30:09 AM
I hope those who see crashing can give me their Java version too.
Smir: I've uploaded a small update that includes your fixes and then some. The site seems to work fine now
Big pond: sorry, I haven't gotten to the bottom of it yet (no pun intended..
And I'll investigate some ON10 fixes later, thanks xErath.
Niiso # Sunday, April 29, 2007 10:08:18 AM
Hallvord R. M. Steenhallvors # Thursday, May 3, 2007 10:17:35 AM
Niiso # Thursday, May 3, 2007 1:57:02 PM