javascript - How do I resolve video.js 5.6.0 runtime error - Object doesn't support this property or method? -


i switched using video.js version 5.6.0 (was using 4.x version), , noticed consistently following error using non-minified version of video.js:

exception thrown @ line 811, column 5 in http://vjs.zencdn.net/5.6.0/video.js 0x800a01b6 - javascript runtime error: object doesn't support property or method

i haven't changed in use of video.js, , line:

<script src="http://vjs.zencdn.net/5.6.0/video.js"></script> 

appears below video element. matching 5.6.0 css appears in link tag in head section.

this occurring under internet explorer 11 on windows 8.1. error reported through visual studio 2013.

i tried falling video.js version 5.4.6, gives same error @ same line. tried minified versions of both 5.6.0 , 5.4.6, , both give same error (at different line/column, of course).

i've examined offending area, must admit i'm not well-versed enough in javascript determine cause of issue is. i've commented-out of own javascript, ensure it's not interacting somehow video.js, , still error consistently.

any ideas on how fix or work around error? video.js player seems work expected in spite of error, it's not blocking issue...just concern.

if @ part of script, you'll see line errors handled in try catch block, precisely because error expected on modern browsers. subsequent code needs run on browsers don't error. lodash, utility library used video.js. these sort of tests not uncommon.

var ishostobject = (function() {   try {     object({ 'tostring': 0 } + ''); // line 811   } catch(e) {     return function() { return false; };   }   return function(value) {     // ie < 9 presents many host objects `object` objects can coerce     // strings despite having improperly defined `tostring` methods.     return typeof value.tostring != 'function' && typeof (value + '') == 'string';   }; }()); 

there's nothing fix here. see error @ if have 'break on exceptions' turned on in debug tools (terminology may vary in visual studio). 'break on unhandled exceptions' more useful shows errors not expected , need actioned.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -