react-native-video: [BUG]: Android: Notification play control does not request audio focus or pay attention to other audio after one interruption

Version

6.6.3

What platforms are you having the problem on?

Android

System Version

14

On what device are you experiencing the issue?

Real device, Simulator

Architecture

Old architecture

What happened?"

Original issue title: Tapping UnPause in Notification Media Controls does not pause external media

Notification Controls do not pause non-RNV media that is currently playing (e.g. YouTube). Additionally, if RNV continues playing after the scenario above, it does not pause when other audio starts playing.

Reproduction Link

https://github.com/TheWidlarzGroup/react-native-video/tree/master/examples/basic

Reproduction

Step to reproduce this bug are: 0. Edit examples/basic/src/VideoPlayer.tsx’s rnv videoplayer component’s prop playInBackground={false} to playInBackground={true}

  1. Run yarn run android with a simulator open (video player app opens)
  2. Tap to Enable notification controls
  3. Background the app
  4. Open YouTube
  5. Play a video in YouTube to interrupt the RNV AV (observe this interrupt and pause the current video player)
  6. Slide down the notification controls
  7. Tap the play button in the notification controls of RNV

Actual Result: 8. RNV’s AV continues while YouTube’s AV continues

Expected Result: 8. RNV’s AV continues but YouTube’s AV is interrupted and pauses

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 19 (12 by maintainers)

Most upvoted comments

@paulrinaldi Thank you for sharing you investigations 🙏