Skip to content

Commit

Permalink
Revert "fix: remove pausePlayback when audio focus loss event (#3496)"
Browse files Browse the repository at this point in the history
This reverts commit b1ab0f2.
  • Loading branch information
olivier committed Jan 28, 2024
1 parent 2094dbd commit 3b6dd58
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,8 @@ public void onAudioFocusChange(int focusChange) {
case AudioManager.AUDIOFOCUS_LOSS:
view.hasAudioFocus = false;
view.eventEmitter.audioFocusChanged(false);
// FIXME this pause can cause issue if content doesn't have pause capability (can happen on live channel)
view.pausePlayback();
view.audioManager.abandonAudioFocus(this);
break;
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
Expand Down

0 comments on commit 3b6dd58

Please sign in to comment.