Page MenuHomePhabricator

[ios] Allow background media playback to continue over video component
ClosedPublic

Authored by atul on Dec 1 2022, 4:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 4:59 AM
Unknown Object (File)
Sat, Dec 14, 4:38 AM
Unknown Object (File)
Wed, Dec 4, 3:40 AM
Unknown Object (File)
Thu, Nov 28, 11:52 PM
Unknown Object (File)
Thu, Nov 28, 11:52 PM
Unknown Object (File)
Thu, Nov 28, 1:49 PM
Unknown Object (File)
Fri, Nov 22, 6:45 AM
Unknown Object (File)
Fri, Nov 22, 6:45 AM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-2386/app-is-pausing-background-media-playback-after-videoplaybackmodal-has

Basically copy/paste this line: https://github.com/react-native-video/react-native-video/blob/master/API.md#audio-mixing

This diff should allow background media playback to continue over any foreground media playback.

This doesn't completely resolve the issue because we DO want to prioritize foreground media playback and pause background media if a video is actively being viewed, the problem is that the app is blocking background media playback even with no video is actively being played.

Test Plan
  1. Open video message in Comm and begin media playback
  2. Navigate back to the ThreadList
  3. Open Spotify/Apple Music/etc and begin playing audio that'll continue playing in the background
  4. Foreground Comm and make sure that background media playback doesn't get stopped

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable