Home > front end >  With video. Js can't play the video on the website
With video. Js can't play the video on the website

Time:10-06

My Html code is as follows, open this web page in the local can play video, but play not uploaded to the server,
Can you tell me how to solve?




VideoJs
<script SRC="https://vjs.zencdn.net/7.5.5/video.js" & gt; </script>
<script SRC="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js" & gt; </script>


<body>


Var player=videojs (' example - video '{
"Poster" : ", "
"Controls" : "true"
}, function () {
Check this. 'play', function () {
The console. The log (' there is');
});
//will be suspended after the pause - play
Check this. 'pause', function () {
The console. The log (" pause ")
});
//end
Check this. 'ended', function () {
The console. The log (' end ');
})

});
</script>


  • Related