diff --git a/src/client/channel/components/ChannelMedia.tsx b/src/client/channel/components/ChannelMedia.tsx index 24bf6a5b4..f78e55f19 100644 --- a/src/client/channel/components/ChannelMedia.tsx +++ b/src/client/channel/components/ChannelMedia.tsx @@ -122,6 +122,7 @@ export function ChannelWatchVideo({ player, owned, paused, label, presentation, const outputFailed = useSyncExternalStore(playbackOutput.subscribe, () => playbackOutput.failedFor(player.video), () => false); const showOutputRecovery = outputFailed && !player.error && !player.blocked; const waiting = player.waitingForPicture && !player.error && !player.blocked; + const nativeWaiting = native.mounted && waiting; const ownerPaused = player.video?.paused ?? mediaState?.paused ?? paused; const audioAvailable = player.media.audioAvailable?.() !== false; const [htmlMedia, setMedia] = useState({ position: 0, duration: 0, volume: 1, muted: false, rate: 1 }); @@ -149,7 +150,7 @@ export function ChannelWatchVideo({ player, owned, paused, label, presentation, const openOriginal = !owned && website && originalPageAvailable ? onAppWatch : undefined; const settingsOriginal = !player.error && surface.kind !== "external" && openOriginal; const localControls = !!player.video || !!receivingSettings || !!settingsOriginal || owned && !embedded; - const hasControls = localControls || !embedded && !thumbnail && !!mediaState; + const hasControls = nativeWaiting || localControls || !embedded && !thumbnail && !!mediaState; const failure = channelErrorPresentation(player.error, t, receiving?.mode === "peer" ? "watch.forward.failed" : website && player.video ? "watch.browserFailed" : "watch.failed").message; const diagnosis = player.error ? diagnoseChannelFact({ area: "error", code: player.error }) : null; @@ -225,7 +226,7 @@ export function ChannelWatchVideo({ player, owned, paused, label, presentation, document.addEventListener("fullscreenchange", sync); sync(); return () => { for (const name of events) video.removeEventListener(name, sync); document.removeEventListener("fullscreenchange", sync); }; }, [player]); - return