mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-13 15:53:44 +08:00
update useVideoPlayer.ts
This commit is contained in:
@@ -171,8 +171,6 @@ export function useVideoPlayer(
|
||||
if (videoId && source) {
|
||||
// Reset state when source changes to ensure clean fetch
|
||||
setVideoData(null);
|
||||
setLoading(true);
|
||||
setVideoError('');
|
||||
setCurrentEpisode(0);
|
||||
setPlayUrl('');
|
||||
fetchVideoDetails();
|
||||
|
||||
Reference in New Issue
Block a user