jPlayer not working in (sometimes) IE 9

811 views
Skip to first unread message

Scott Watermasysk

unread,
Aug 9, 2011, 6:42:20 PM8/9/11
to jpl...@googlegroups.com
Hi All,

I am seeing some weirdness with jPlayer in IE9 (both my own code) and this demo page: http://jplayer.org/latest/demo-01/

Here is what I see using the IE9 developer tool.

- If I select "Browser mode IE9" and "Document mode IE9 standards" (default settings) I get the following error: 

SCRIPT16385: Not implemented
 jquery.jplayer.min.js, line 28 character 489

If I select "Browser mode IE9 Compat View" and "Document mode IE8 standards" the player works perfectly. 

If I then switch to "Browser mode IE9 Compat" and "Document mode IE9", I am back to the error above. 

Essentially, any time I use compat with anything other than IE9 document mode it plays as expected. All other combinations fail. 

This is a windows 7 machine in a VM. It has just one browser plugin, Flash 10.3.181.34. 

Any tips/suggestions for figuring out what is wrong? 

Thanks,
Scott


Mark Panaghiston

unread,
Aug 9, 2011, 7:52:17 PM8/9/11
to jpl...@googlegroups.com
Is it a Win Server 2008 VM?

If so, the problem should be fixed in the latest development version... Which is the release candidate for 2.1.

Try:
http://jplayer.org/2.0.32/demo-01/

Scott Watermasysk

unread,
Aug 9, 2011, 8:23:16 PM8/9/11
to jpl...@googlegroups.com
Hi Mark, 

No, it is a fully patched/updated Windows 7 machine. 

Also, the 2.0.32 demo did not work as well. 

Thanks,
Scott

Mark Panaghiston

unread,
Aug 10, 2011, 9:05:09 AM8/10/11
to jpl...@googlegroups.com
Hmmm... If I go to that point in the minified code, it looks like the same command that was causing problems in Win Server 2008 with IE9. (I looked in jPlayer 2.0.0 min js)

The code changes in 2.0.32 include a fix a few patches earlier for this problem. But I do not have a machine with that OS on it, so could not test it. Basically, before I checked for media.canPlayType whereas now if that was truethy, then an actual call to the method is made in a try/catch. If the try works then great, but if it fails, then the HTML solution is disabled. It is possible that I got the logic wrong...

In the code to determine HTML support for HTML5 media:

this.html.audio.available = !!this.htmlElement.audio.canPlayType && this._testCanPlayType(this.htmlElement.audio); // Test is for IE9 on Win Server 2008.

And the new function is:

        _testCanPlayType: function(elem) {
            // IE9 on Win Server 2008 did not implement canPlayType(), but it has the property.
            try {
                elem.canPlayType(this.format.mp3.codec); // The type is irrelevant.
                return true;
            } catch(err) {
                return false;
            }
        },

Please do a test for me... Make a webpage with this bit of code in it:
var myTest = document.createElement('audio');
alert("canPlay: " + myTest.canPlayType("audio/mpeg"));

In the win server 2008 case, that little bit of code caused the same error.

Scott Watermasysk

unread,
Aug 10, 2011, 9:42:54 AM8/10/11
to jpl...@googlegroups.com
In all the IE9 modes, I "Script16385: Not implemented". 

Thanks,
Scott

-- 
Scott Watermasysk
Founder, KickoffLabs
Launch your dream in 60 seconds!

--
You received this message because you are subscribed to the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jplayer/-/m4vPDv9xi9EJ.
To post to this group, send email to jpl...@googlegroups.com.
To unsubscribe from this group, send email to jplayer+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jplayer?hl=en.

Mark Panaghiston

unread,
Aug 10, 2011, 9:55:22 AM8/10/11
to jpl...@googlegroups.com
Was your answer in relation to this question?

Scott Watermasysk

unread,
Aug 10, 2011, 10:04:45 AM8/10/11
to jpl...@googlegroups.com
Hi Mark,

Sorry about that. Yes, I created a page with the script you included and got the Not Implemented exception.

I am starting to think this is much more of an IE issue than jPlayer. 

Of all the HTML5 players listed here http://praegnanz.de/html5video/p_jqueryvideo.php the only one which seems to work in IE9 is http://www.longtailvideo.com/players/jw-flv-player/

Thanks,
Scott

-- 
Scott Watermasysk
Founder, KickoffLabs
Launch your dream in 60 seconds!

--
You received this message because you are subscribed to the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jplayer/-/aNadAru_BgYJ.

Mark Panaghiston

unread,
Aug 10, 2011, 10:30:49 AM8/10/11
to jpl...@googlegroups.com
Probably because that one plays FLV, which is flash. But I did not investigate.

Over the months we have has others reporting that IE9 does not work. It is an odd one.

The Wind Server 2008 thread is here:
https://groups.google.com/d/topic/jplayer/2cG56iT2giM/discussion

I asked Tim to report back on whether is is now fixed or not.
Reply all
Reply to author
Forward
0 new messages