diff --git a/app/player/page.tsx b/app/player/page.tsx index 450a017..c5998f8 100644 --- a/app/player/page.tsx +++ b/app/player/page.tsx @@ -179,6 +179,7 @@ function PlayerContent() { // Track current source for switching const [currentSourceId, setCurrentSourceId] = useState(source); + const playerTimeRef = useRef(0); // Add initial history entry when video data is loaded useEffect(() => { @@ -277,6 +278,7 @@ function PlayerContent() { isPremium={isPremium} videoTitle={videoData?.vod_name || title || ''} episodeName={videoData?.episodes?.[currentEpisode]?.name || ''} + externalTimeRef={playerTimeRef} />
- {channel.group} -
- )} ++ {channel.group} +
+ )} + {channel.routes && channel.routes.length > 1 && ( + + {channel.routes.length}线路 + + )} +加载中...
@@ -188,88 +365,214 @@ export function IPTVPlayer({ channel, onClose, channels, onChannelChange }: IPTV{error}
- +{error}
+