mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-21 17:24:41 +08:00
feat: ignore playing error
This commit is contained in:
@@ -1027,6 +1027,9 @@ function PlayPageClient() {
|
||||
|
||||
artPlayerRef.current.on('error', (err: any) => {
|
||||
console.error('播放器错误:', err);
|
||||
if (artPlayerRef.current.currentTime > 0) {
|
||||
return;
|
||||
}
|
||||
setError('视频播放失败');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user