React-native-track-player: How to stop the player when other audio or music player play?

Created on 11 Nov 2019  路  1Comment  路  Source: react-native-kit/react-native-track-player

Hi, i using the library for my app and the functionality is Great! thanks for dev team.
I have some issue and one of that is the Audio cannot stop if i play other player app like music app. Or if incomming call same that.
How should i do for this issue?

Question

Most helpful comment

Hi, you can look into using the remote-duck event, listed here: https://react-native-kit.github.io/react-native-track-player/documentation/#remote-duck

You may also want to look at the alwaysPauseOnInterruption option: https://react-native-kit.github.io/react-native-track-player/documentation/#updateoptionsoptions

Hope that helps.

>All comments

Hi, you can look into using the remote-duck event, listed here: https://react-native-kit.github.io/react-native-track-player/documentation/#remote-duck

You may also want to look at the alwaysPauseOnInterruption option: https://react-native-kit.github.io/react-native-track-player/documentation/#updateoptionsoptions

Hope that helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JakeMotta picture JakeMotta  路  3Comments

sagargheewala picture sagargheewala  路  3Comments

amed picture amed  路  4Comments

b3rkaydem1r picture b3rkaydem1r  路  3Comments

mnlbox picture mnlbox  路  4Comments