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