feat: allow audio mixing if one of the video views require it (#4559)

This commit is contained in:
Lukas
2025-06-11 13:23:53 +03:00
committed by GitHub
parent 88c20d1c06
commit 3576a134e6

View File

@@ -139,7 +139,11 @@ class AudioSessionManager {
return view._playInBackground
}
let canAllowMixing = !anyPlayerShowNotificationControls && !anyPlayerNeedsBackgroundPlayback
let anyPlayerWantsMixing = videoViews.allObjects.contains { view in
return view._mixWithOthers == "mix" || view._mixWithOthers == "duck"
}
let canAllowMixing = anyPlayerWantsMixing || (!anyPlayerShowNotificationControls && !anyPlayerNeedsBackgroundPlayback)
if isAudioSessionManagementDisabled {
// AUDIO SESSION MANAGEMENT DISABLED BY USER