Skip to content

fix(iOS): Allow audio mixing if one of the video views require it #4559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

lukasjengo
Copy link
Contributor

Summary

After the PR #4466, where the AudioSessionManager was introduced, background video audio would be stopped by external apps i.e. Spotify even if mixWithOthers is set to "mix".

Motivation

The video audio should not be paused by external apps if mixWithOthers is set to "mix" or "duck".

Changes

Check if one of the video views has mixWithOthers set to "mix" or "duck" and allow audio mixing.

Test plan

Start playing react-native-video, put the react-native-video app to background, open Spotify, start playing music. Spotify music should mix with react-native-video.

Copy link
Collaborator

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@KrzysztofMoch KrzysztofMoch merged commit 3576a13 into TheWidlarzGroup:master Jun 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants