fix(platform): gate audio passthrough support

This commit is contained in:
edde746
2026-06-15 13:28:10 +02:00
parent b5a9f09f12
commit ba22dca9e5
2 changed files with 13 additions and 0 deletions
+8
View File
@@ -88,6 +88,14 @@ void main() {
});
group('SettingsService platform gates', () {
test('audio passthrough stays available on desktop but not Apple TV', () {
expect(PlatformDetector.supportsAudioPassthrough(), isTrue);
TvDetectionService.debugSetAppleTVOverride(true);
expect(PlatformDetector.supportsAudioPassthrough(), isFalse);
});
test('forces external player off on Apple TV even when stored enabled', () async {
final settings = await SettingsService.getInstance();
await settings.write(SettingsService.useExternalPlayer, true);