Problems encountered in the VIDEOJS

Source: Internet
Author: User

1, the element or ID supplied is not valid. (VIDEOJS):

Error when the code order in the page: JS code in the head section

<VideoID= "Example_video_1"class= "Video-js"controls preload= "None"width= "The "Height= "+"Poster= "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1495886342401&di= af1c695a6acede0df16a3740f6dfec0b&imgtype=0&src=http%3a%2f%2fatt2.citysbs.com%2fhangzhou%2f2012%2f03% 2f13%2f11%2fmiddle_112501_kiuuladi_0aebaca9151431903ddb8b31fadc53c0.jpg "Data-setup="{}">        <Sourcesrc= "Rtmp://pb-fms.chinanews.com.cn/vod/81913_wsj.mp4"type= ' Rtmp/mp4 '/></Video>
  <!--If you want to support IE8---  <script src= "Ie8/videojs-ie8.js" ></script>  <!--player JS  --- <script src= "Video.js" ></script>  <script>      = "video-js.swf";       var player = Videojs (' example_video_1 ');     Player.ready (function() {        this. Play ();          This function () {          videojs.log (' play is over! ') );        });     });   </script>

The problem disappears after you place the JS code at the bottom of the page by checking online

Moving your script tag to the end of your page, or add a onLoad handler so it fires after the page had loaded.

Reference: HTTPS://GITHUB.COM/MATTHOJO/VIDEOJS-BACKGROUND/ISSUES/7

Problems encountered in the VIDEOJS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.