diff --git a/apps/mobile/contexts/playback.tsx b/apps/mobile/contexts/playback.tsx index ecdae5a..c9e430f 100644 --- a/apps/mobile/contexts/playback.tsx +++ b/apps/mobile/contexts/playback.tsx @@ -2,6 +2,7 @@ import { dolbyAtmosSupported } from "@/lib/playback-capabilities" import { createAudioPlaylist, setAudioModeAsync, + setIsAudioActiveAsync, type AudioMetadata, type AudioPlaylist, type AudioPlaylistStatus, @@ -774,6 +775,14 @@ export function PlaybackProvider({ children }: { children: ReactNode }) { playlist.play() } else { playlist.pause() + // Enable audio for the restored queue without starting playback. + try { + await setIsAudioActiveAsync(true) + } catch { + if (isCurrentLoad()) { + showError("Audio playback could not be initialized.") + } + } } }