下一个直接读取下一秒视频

dongguan-华为云
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 30bd86f163
commit c82f6dc40e

@ -432,22 +432,7 @@ export default {
video.pause();
},
playNextVideo() {
let nextKey = this.URLStartTime;
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();
}
this.videoControl(this.currentTime+1)
},
handleCheck(selectedKeys, e) {
if (e.selectedNodes[0].data.props.type == 1) {

Loading…
Cancel
Save