1. 程式人生 > >video.js使用

video.js使用

默認 color auto chap edi lin res control display

<!-- x5-playsinline="" playsinline="" webkit-playsinline=""加上可以解決微信瀏覽器默認最大化顯示的問題-->
<video id="live-stream"  src=""  controls="" x5-playsinline="" playsinline="" webkit-playsinline="" poster="" preload="auto" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto"
> </video> <script> player = videojs(live-stream, { controls: true, autoplay: false, preload: auto, loop: false, controlBar: { captionsButton: false, chaptersButton:
false, playbackRateMenuButton: true, LiveDisplay: true, subtitlesButton: false, remainingTimeDisplay: true, progressControl: true, fullscreenToggle: false } });
</script>

video.js使用