@@ -556,10 +556,15 @@ export default {
this.timer = setInterval(this.timeEventLiving, 1000); //定时器
}
if (status === 'end') {
+ if(this.livePlay){
+ //只有播放过的结束才提交,避免未开播触发结束
+ this.postStudyRecord(1);
+ }
+ console.log('结束直播');
this.livePlay = false
// 未开始
- console.log('结束直播');
- this.postStudyRecord(1);
+
},
closePlv(){