|
@@ -432,7 +432,7 @@ export default defineComponent({
|
|
|
audioForms.paused = audio.value?.paused;
|
|
|
} else if (val.type === 'offline') {
|
|
|
audioForms.isOnline = false;
|
|
|
-
|
|
|
+ console.log('offline');
|
|
|
// 去掉检测加载缓存
|
|
|
audioForms.isBuffering = false;
|
|
|
audioForms.bufferTimeout && clearTimeout(audioForms.bufferTimeout);
|
|
@@ -516,7 +516,8 @@ export default defineComponent({
|
|
|
audioForms.bufferTimeout &&
|
|
|
clearTimeout(audioForms.bufferTimeout);
|
|
|
|
|
|
- // 设置缓冲超时检测(5秒)
|
|
|
+ // 设置缓冲超时检测(15秒)
|
|
|
+ if (!audioForms.isOnline) return;
|
|
|
audioForms.bufferTimeout = setTimeout(() => {
|
|
|
if (audioForms.isBuffering) {
|
|
|
console.log('缓冲超时,暂停播放');
|