fix(player): audio and subtitle dropdown not visible in player

This commit is contained in:
Fredrik Burmester
2026-01-07 21:38:45 +01:00
parent 3e01310466
commit 588c8ffeb5
3 changed files with 107 additions and 6 deletions

View File

@@ -833,6 +833,7 @@ export default function page() {
setIsPlaying(true);
setIsBuffering(false);
setHasPlaybackStarted(true);
setTracksReady(true); // VLC tracks are ready when playback starts
if (item?.Id) {
playbackManager.reportPlaybackProgress(
currentPlayStateInfo() as PlaybackProgressInfo,
@@ -1053,6 +1054,7 @@ export default function page() {
mediaSource={stream?.mediaSource}
isVideoLoaded={isVideoLoaded}
tracksReady={tracksReady}
useVlcPlayer={useVlcPlayer}
>
<VideoProvider>
<View
@@ -1082,8 +1084,9 @@ export default function page() {
onVideoStateChange={onPlaybackStateChangedVlc}
onPipStarted={onPipStartedVlc}
onVideoLoadEnd={() => {
// Note: VLC only fires this on error, not on successful load
// tracksReady is set in onPlaybackStateChangedVlc when state is "Playing"
setIsVideoLoaded(true);
setTracksReady(true);
}}
onVideoError={(e: PlaybackStatePayload) => {
console.error("Video Error:", e.nativeEvent);