修改页面显示处理
parent
d8ddeb9240
commit
5eb4b9dbea
|
|
@ -159,16 +159,12 @@ export default {
|
|||
// 如果加载完成了,延迟2秒确定一下直播状态, 有的时候直播状态是正常的也加载成功了,但是获取不到视频流,需要确定一下没有执行error才算是真正的成功
|
||||
this.load_timer = setTimeout(() => {
|
||||
console.log('视频数据加载完成');
|
||||
|
||||
_this.live_be_right_back_error = false;
|
||||
_this.retry_count = 0;
|
||||
// 直播状态为正常或者暂停直播了,才认为是正常的加载成功
|
||||
if ([0, 1].includes(_this.live_status)) {
|
||||
// 如果重连的定时器还在运行中,则清除它
|
||||
if (_this.ended_timer) {
|
||||
// 隐藏加载提示
|
||||
clearTimeout(_this.ended_timer);
|
||||
}
|
||||
_this.live_be_right_back_error = false;
|
||||
// 如果重连的定时器还在运行中,则清除它
|
||||
if (_this.ended_timer) {
|
||||
// 隐藏加载提示
|
||||
clearTimeout(_this.ended_timer);
|
||||
}
|
||||
}, 2000);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue