feat: 修复软件切歌慢问题

Co-authored-by: traeagent <traeagent@users.noreply.github.com>
This commit is contained in:
daili115
2026-06-25 07:41:15 +00:00
parent ee98eb0266
commit c5035b0583
4 changed files with 41 additions and 53 deletions
+2 -2
View File
@@ -104,12 +104,12 @@ class PreloadService {
testAudio.src = url;
testAudio.load();
// 5秒超时
// 3秒超时(优化预加载速度)
setTimeout(() => {
cleanup();
// 超时不算失败,URL 可能是可用的只是服务器慢
resolve(url);
}, 5000);
}, 3000);
});
}