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
#3504)

This reverts commit b1ab0f2.

Co-authored-by: olivier <[email protected]>
  • Loading branch information
freeboub and olivier authored Jan 29, 2024
1 parent 2094dbd commit aec7db6
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 aec7db6

Please sign in to comment.