|
@@ -206,9 +206,8 @@ export default defineComponent({
|
|
|
videoFroms.bufferTimeout && clearTimeout(videoFroms.bufferTimeout);
|
|
|
|
|
|
// 设置缓冲超时检测(15秒)
|
|
|
- if (!videoFroms.isOnline) return;
|
|
|
videoFroms.bufferTimeout = setTimeout(() => {
|
|
|
- if (videoFroms.isBuffering) {
|
|
|
+ if (videoFroms.isBuffering && videoFroms.isOnline) {
|
|
|
console.log('缓冲超时,暂停播放');
|
|
|
videoItem.value.pause();
|
|
|
videoFroms.paused = true;
|