安裝引入基礎使用部分 請移步:https://juejin.cn/post/6844903989641740296
相關事件方法:
// 加載視頻
// this.$refs.videoPlayer.player.load();
// 播放視頻
// this.$refs.videoPlayer.player.play();
// 暫停播放
// this.$refs.videoPlayer.player.pause();
// 直接全屏 如果當前設備支持的話
// this.$refs.videoPlayer.player.requestFullscreen();
// setTimeout(() => {
// // 在全屏模式下,將視頻恢復到正常大小
// this.$refs.videoPlayer.player.exitFullscreen();
// }, 1000);
// 當環境不支持全屏時 則擴展鋪滿容器
// this.$refs.videoPlayer.player.enterFullWindow();
// 進入全屏后操作的事件
setTimeout(() => {
// 重置播放器
// this.$refs.videoPlayer.player.reset();
// 返回當前播放源信息
// console.log("currentSources : ", this.$refs.videoPlayer.player.currentSources());
// 獲取或者設置預加載屬性
// this.$refs.videoPlayer.player.preload(val);
// 播放控件是否顯示
// this.$refs.videoPlayer.player.controls(false);
}, 1000);
