Skip to content
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

[video][android] Improve audio focus management #28453

Merged
merged 3 commits into from May 1, 2024

Conversation

behenate
Copy link
Member

Why

Similar to iOS will pause the video when other app starts playing e.g. spotify. When unmuted playing the video will make other apps stop playing. If the player is muted it won't affect other apps.

How

Each player has it's focus manager to indicate when it needs audio focus.

Test Plan

Tested in Bare Expo on a Android 14 device

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Apr 25, 2024
@behenate behenate force-pushed the @behenate/expo-video-android-audio-management branch from abea978 to 452b4a0 Compare April 25, 2024 14:06
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Apr 25, 2024
@behenate behenate marked this pull request as ready for review April 25, 2024 14:08
@behenate behenate requested a review from lukmccall April 25, 2024 14:08
@expo-bot
Copy link
Collaborator

expo-bot commented Apr 25, 2024

The Pull Request introduced fingerprint changes against the base commit: 470464a

Fingerprint diff
[
  {
    "type": "dir",
    "filePath": "../../packages/expo-video/android",
    "reasons": [
      "expoAutolinkingAndroid"
    ],
    "hash": "193480de0aecea9953c9c0bcfb07830175ef419c"
  }
]

Generated by PR labeler 🤖

@lukmccall lukmccall merged commit ddf22d5 into main May 1, 2024
12 checks passed
@lukmccall lukmccall deleted the @behenate/expo-video-android-audio-management branch May 1, 2024 06:57
@brentvatne brentvatne added the published Changes from the PR have been published to npm label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants