Reply
New Member
tmcneer
Posts: 2
Registered: ‎01-12-2011
0 Kudos

BrightcoveExperience error in IE9

In IE9, the BrightcoveExperience.js is generating a Javascript error that kills the player. The error is thrown on line 58, character 294, the beginning of a 'videoSupport=!!' statement.

 

I'm using the standard player embed code.

 

Has anyone else seen this?

 

Thanks for your help,

 

Tom

 

Brightcove Team
BC-Jonathan
Posts: 235
Registered: ‎09-30-2011
0 Kudos

Re: BrightcoveExperience error in IE9

Could you please provide a link?

 

Thank you

New Member
BoxUK
Posts: 2
Registered: ‎03-28-2012
0 Kudos

Re: BrightcoveExperience error in IE9

I'm experiencing the same error:

 

BrightcoveExperiences.js, line 58 character 294
SCRIPT16385: Not implemented

 

After doing some searching, it seems "some" versions of IE9 don't support the canPlayType method:

 

http://groups.google.com/group/jplayer/browse_thread/thread/d9c1b9ea24f68223

 

The recommended workaround is to surround it with a try/catch block.

 

Are there any plans to fix this in BrightcoveExperiences.js?

New Member
BoxUK
Posts: 2
Registered: ‎03-28-2012
0 Kudos

Re: BrightcoveExperience error in IE9

Is there any update on this?

 

Is this a known issue and if so are there any plans to address this with a future update?

Brightcove Team
BC-Oscar
Posts: 503
Registered: ‎12-11-2008
0 Kudos

Re: BrightcoveExperience error in IE9

 

 

 Sorry abou this. I just entered a bug in our system so we can fix this. (BC-31011)

New Member
EPInteractive
Posts: 1
Registered: ‎08-19-2011
0 Kudos

Re: BrightcoveExperience error in IE9

Is this bug fixed?  We're experiencing the same issue as the poster(s) above.  We're using a standard brightcove player as well.

New Member
mattgeorge
Posts: 1
Registered: ‎10-30-2012
0 Kudos

Re: BrightcoveExperience error in IE9

One of our partners has a work around for this, as follows:

 

I’ve fixed for ie9 for now by downloading the javascript and serving it locally and putting in a fix for that error
 
My fix is to replace

 

   if (!brightcove.userAgent.match(new RegExp("android", "i"))) {
                videoSupport = !!(v.canPlayType && v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
        }

 with

 

  if (!brightcove.userAgent.match(new RegExp("android", "i"))) {
            try {
                videoSupport = !!(v.canPlayType && v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
            }
            catch (err) {
                //alert(err);
                videoSupport = true;
            }
        }

 This means that instead of breaking for ie9 it assumes it can serve video

 


Hope this helps


 

NHS Choices syndicated content: health content for your portal.

www.nhs.uk/partners @nhscsyndication