|
@@ -330,6 +330,7 @@ export default {
|
|
|
this.$store.commit('setPlaySectionId', {playSectionId :item.sectionId});
|
|
|
this.$store.commit('setPlayVID', {playVID :item.recordingUrl});
|
|
|
this.playNoteVideo(item);
|
|
|
+ console.log('this.playNoteVideo')
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -458,6 +459,7 @@ export default {
|
|
|
var polyvPlayerContext = this.selectComponent('#playerVideo');
|
|
|
if(polyvPlayerContext){
|
|
|
//解决同个节视频切换问题
|
|
|
+ polyvPlayerContext.seek(0)
|
|
|
polyvPlayerContext.pause();
|
|
|
}
|
|
|
//清除直播
|
|
@@ -1376,9 +1378,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
restart() {
|
|
|
- console.log(1)
|
|
|
var polyvPlayerContext = this.selectComponent('#playerVideo');
|
|
|
polyvPlayerContext.seek(0);
|
|
|
+ console.log('seek1')
|
|
|
clearTimeout(this.toastTimer)
|
|
|
this.videoToastShow = false;
|
|
|
},
|
|
@@ -1387,7 +1389,7 @@ export default {
|
|
|
if (this.needSeek) {
|
|
|
var polyvPlayerContext = this.selectComponent('#playerVideo');
|
|
|
if(this.recordObj.videoCurrentTime){
|
|
|
- console.log(2)
|
|
|
+ console.log('seek2')
|
|
|
polyvPlayerContext.seek(this.recordObj.videoCurrentTime);
|
|
|
this.seekTime = this.$method.secondToDate(this.recordObj.videoCurrentTime)
|
|
|
this.videoToastShow = true;
|
|
@@ -1396,8 +1398,9 @@ export default {
|
|
|
},3000)
|
|
|
|
|
|
}else{
|
|
|
- console.log(3)
|
|
|
polyvPlayerContext.seek(1);//避免相同节继续播放
|
|
|
+ console.log('seek3')
|
|
|
+
|
|
|
}
|
|
|
|
|
|
polyvPlayerContext.play();
|