We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5cdbf5 commit 58dbfe9Copy full SHA for 58dbfe9
1 file changed
src/app/play/page.tsx
@@ -30,6 +30,7 @@ import { getRequestTimeout, getVideoResolutionFromM3u8 } from '@/lib/utils';
30
31
import DanmakuSelector from '@/components/DanmakuSelector';
32
import EpisodeSelector from '@/components/EpisodeSelector';
33
+import { triggerGlobalError } from '@/components/GlobalErrorIndicator';
34
import PageLayout from '@/components/PageLayout';
35
36
// 扩展 HTMLVideoElement 类型以支持 hls 属性
@@ -944,9 +945,12 @@ function PlayPageClient() {
944
945
setSelectedDanmakuAnime(animeOption);
946
setSelectedDanmakuSource(platform);
947
948
+ }else {
949
+ triggerGlobalError("自动加载弹幕失败,请手动选择弹幕源");
950
}
951
} catch (err) {
952
console.error("初始化自动加载弹幕失败:", err);
953
954
} finally {
955
setIsDanmakuLoading(false);
956
0 commit comments