This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
[Android] Make Stopping foreground service optional when app losses audio focus #404
Open
3 of 4 tasks
Description
As it stands, if you set
MusicControl.handleAudioInterruptions(true);
this means the android app is listening on audio focus changes.When the app losses focus, the listener calls
emitter.onStop
which ends up stopping the foreground service.However, not all apps want that. For example, you might want to pause the audio instead of killing the playback altogether.
I am happy to submit a PR for this just opening the issue to take opinions on
Platform ?
The text was updated successfully, but these errors were encountered: