refactor(exoplayer): drop duplicated mpv box-fit translation

This commit is contained in:
edde746
2026-04-21 18:23:46 +02:00
parent 839465b7f2
commit e6c1923b0e
2 changed files with 7 additions and 35 deletions
+4 -2
View File
@@ -134,9 +134,11 @@ class VideoFilterManager {
/// When ambient lighting is active, video-aspect-override is managed by ambient lighting.
void updateVideoFilter() async {
try {
if (player.playerType == 'exoplayer') {
// ExoPlayer handles scaling via AspectRatioFrameLayout. The MPV properties
// below still run — on PlayerAndroid they forward to setMpvProperty, which
// queues them for any future fallback to MPV.
if (player is PlayerAndroid) {
await (player as PlayerAndroid).setBoxFitMode(_boxFitMode);
return;
}
if (ambientLightingService?.isEnabled != true) {