前段时间闲来无事弄了弄video.js,感觉蛮好玩,能应用到各个应用端,自己在最后玩耍的时候,需要注意的只剩下两方面了,1,动态加载播放视频内容2,双击全屏观看,
var urlRoad = ""; var myPlayer = videojs('my-video'); videojs("my-video", {}, function() { window.myPlayer = this; $(" #my-video source").attr("src", ""); myPlayer.src(urlRoad); myPlayer.load(urlRoad); myPlayer.play(); });