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}
- Run
yarn run androidwith a simulator open (video player app opens) - Tap to Enable notification controls
- Background the app
- Open YouTube
- Play a video in YouTube to interrupt the RNV AV (observe this interrupt and pause the current video player)
- Slide down the notification controls
- 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)
@paulrinaldi Thank you for sharing you investigations 🙏