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