fix: ios media controls

This commit is contained in:
edde746
2025-11-20 19:08:31 +01:00
parent d63c10482c
commit 9115db5e15
+4 -1
View File
@@ -224,6 +224,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen>
'sub-back-color':
'#${(settingsService.getSubtitleBackgroundOpacity() * 255 / 100).toInt().toRadixString(16).padLeft(2, '0').toUpperCase()}${settingsService.getSubtitleBackgroundColor().replaceFirst('#', '')}',
'sub-ass-override': 'no',
'audio-exclusive': 'yes',
},
),
);
@@ -1515,7 +1516,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen>
player!.play();
// Clear the inactive state flag since user manually resumed via media controls
_wasPlayingBeforeInactive = false;
appLogger.d('Cleared _wasPlayingBeforeInactive due to manual play via media controls');
appLogger.d(
'Cleared _wasPlayingBeforeInactive due to manual play via media controls',
);
// Update media controls to reflect the new state
_updateMediaControlsPlaybackState();
}