Reputation: 54212
I'm using Video.js - HTML5 Video Player for WordPress with WordPress 3.5 . My MP4 video is playing normally in Chrome, Firefox and Safari, but not Internet Explorer 8. It shows a JavaScript error:
Invalid Argument
video.js Line: 21
Code: 0 Char: 29906
URI: http://vjs.zencdn.net/c/video.js
As I saw from this post in video.js support forum, many users report the same error but seems no solution is provided. Is there anybody who can provide some lights to me?
UPDATE : Here is the shortcode I use:
[video mp4="http://video/path/here.mp4" width="95%"]
Nothing else in the post content. WordPress version: 3.5
Currently activated plugins installed:
Upvotes: 1
Views: 1922
Reputation:
The issue is the following code:
el.style.width=initWidth+"px"
This code can be found in the video.js file. You'll need to host the file locally to make the edit below.
You're probably using 100% width on your video. Therefore videojs is attempting to set the width of the parent div to "100%px". This of course won't work.
Change the line above to:
el.style.width=initWidth.indexOf('%') !== -1 ? initWidth : initWidth+"px";
Upvotes: 1