1
0
Fork 1

fix media viewer auto play video

This commit is contained in:
12aw 2023-12-09 18:27:00 +01:00
parent 30c715fc36
commit 9b6c7d2331

View file

@ -465,7 +465,7 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
private void pausePlayer() {
if (player != null && isVideo && isPlaying()) {
player.setPlayWhenReady(true);
player.setPlayWhenReady(false);
player.getPlaybackState();
if (Compatibility.runsTwentyFour() && isInPictureInPictureMode()) {
hideFAB();
@ -525,6 +525,9 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
} else {
hideFAB();
}
if (!isPlaying()) {
startPlayer();
}
super.onResume();
}