fix: remove pausePlayback when audio focus loss event (#3496)

This commit is contained in:
YangJH 2024-01-24 06:22:14 +09:00 committed by GitHub
parent 336eb44dc6
commit b1ab0f24a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -925,8 +925,6 @@ public class ReactExoplayerView extends FrameLayout implements
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: