Is this syntax correct?

I seem to be having problems with this video player in IE & FF. Can you tell me if this syntax is correct? Does it need double quotes somewhere? Should I add something to data setup? Does it need a tag? What is the correct way to play a video?

<video id="video2" class="video-js vjs-default-skin" controls preload="auto" width="130" height="120"
controls poster="/video/countdown.jpg" data-setup='{}'>
<source src="/video/countdown.mp4" type='video/mp4' />
</video>

Or is this incorrect?:

 <script>videojs.options.flash.swf = "/video-js/video-js.swf"</script>

You have left out the script tag to attach the external JavaScript that creates the videojs object.

Thanks for your reply. Do you mean this or something else:

<link href="/video-js/video-js.css" rel="stylesheet">
<script src="/video-js/video.js"></script>

Probably - if that’s where the other files are uploaded then yes.

You also have a warning concerning duplicate attributes == > " controls " .

second one is grammatically correct.

Thank you for those replies. I have corrected the “controls” issue.

I could use a little more information, or example, to understand what is meant by “You have left out the script tag to attach the external JavaScript that creates the videojs object”. Please elaborate.

Currently, I am seeing this upon playing a video " “The video player aborted due to corruption problem or because the video used features your browser did not support”, via IE11. No error using Chrome, but in FF 37.0 I see “A network error caused the video download to fail part-way”. Any additional help will be greatly appreciated.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.