fix(player): apply stored passthrough setting

This commit is contained in:
edde746
2026-06-15 13:28:23 +02:00
parent ba22dca9e5
commit 1b29cb3ef7
+3 -6
View File
@@ -825,12 +825,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
);
}
// Audio passthrough (desktop bitstreams to the receiver; Apple TV
// hands compressed AC3/EAC3 to the system for Dolby/Atmos output)
if (PlatformDetector.isDesktopOS() || PlatformDetector.isAppleTV()) {
if (settingsService.read(SettingsService.audioPassthrough)) {
await currentPlayer.setAudioPassthrough(true);
}
// Audio passthrough (desktop and Android TV; disabled on tvOS)
if (PlatformDetector.supportsAudioPassthrough()) {
await currentPlayer.setAudioPassthrough(settingsService.read(SettingsService.audioPassthrough));
}
// HDR is controlled via custom hdr-enabled property on iOS/macOS/Windows