|
|
|
@ -432,22 +432,7 @@ export default {
|
|
|
|
video.pause();
|
|
|
|
video.pause();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
playNextVideo() {
|
|
|
|
playNextVideo() {
|
|
|
|
let nextKey = this.URLStartTime;
|
|
|
|
this.videoControl(this.currentTime+1)
|
|
|
|
const keys = Object.keys(this.urls);
|
|
|
|
|
|
|
|
// 找到当前键的索引
|
|
|
|
|
|
|
|
const currentIndex = keys.indexOf(this.URLStartTime.toString());
|
|
|
|
|
|
|
|
console.log(keys);
|
|
|
|
|
|
|
|
if (currentIndex !== -1 && currentIndex < keys.length - 1) {
|
|
|
|
|
|
|
|
nextKey = Number(keys[currentIndex + 1]);
|
|
|
|
|
|
|
|
const video = this.$refs.videoPlayer;
|
|
|
|
|
|
|
|
this.URLStartTime = nextKey;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.currentVideoUrl = this.urls[nextKey];
|
|
|
|
|
|
|
|
video.load(); // 重新加载视频资源
|
|
|
|
|
|
|
|
this.currentTime = this.URLStartTime;
|
|
|
|
|
|
|
|
video.currentTime = 0;
|
|
|
|
|
|
|
|
video.play();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleCheck(selectedKeys, e) {
|
|
|
|
handleCheck(selectedKeys, e) {
|
|
|
|
if (e.selectedNodes[0].data.props.type == 1) {
|
|
|
|
if (e.selectedNodes[0].data.props.type == 1) {
|
|
|
|
|