| | |
| | | var _this = this; |
| | | |
| | | //调整音量 |
| | | _this.$message.success("加载完成,请注意音量是否合适..") |
| | | _this.$message.success("模块加载完成,请注意音量是否合适..") |
| | | |
| | | this.dp.volume(this.volumeInit, true, false); |
| | | |
| | |
| | | }, |
| | | //加载播放 |
| | | startPlay(videoData) { |
| | | if (videoData == null || videoData == undefined) { |
| | | this.$message.error("无效资源..") |
| | | return |
| | | } |
| | | |
| | | //重要!!防止hls类型视频在切换后不停在后台缓存 |
| | | if (this.hls != null) { |
| | | this.hls.destroy(); |
| | |
| | | this.hls = new Hls(); |
| | | } |
| | | |
| | | setTimeout(() => { |
| | | this.dp.switchVideo(this.playingVideoData) |
| | | }, 500); |
| | | this.dp.switchVideo(this.playingVideoData) |
| | | |
| | | }, |
| | | //播放器初始化 |
| | | init() { |
| | |
| | | }, |
| | | |
| | | ], |
| | | |
| | | highlight: [ |
| | | //进度条上的自定义时间标记 |
| | | // 进度条时间点高亮 |