Stop TrackPlayer on App Close

This commit is contained in:
Danish Ahmed Mirza 2022-06-18 20:37:57 +05:30 committed by Danish
parent 4cb6674eb4
commit c9efda4fa9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export const playbackService = async () => {
export const setupService = async () => { export const setupService = async () => {
await TrackPlayer.setupPlayer(); await TrackPlayer.setupPlayer();
await TrackPlayer.updateOptions({ await TrackPlayer.updateOptions({
stopWithApp: false, stopWithApp: true,
capabilities: [Capability.Play, Capability.Pause, Capability.Stop], capabilities: [Capability.Play, Capability.Pause, Capability.Stop],
compactCapabilities: [Capability.Play, Capability.Pause] compactCapabilities: [Capability.Play, Capability.Pause]
}); });