Merge pull request #7668 from litetex/fix-video-reset-on-player-switch

Workaround: Set recovery before switching player
This commit is contained in:
XiangRongLin 2022-01-19 16:45:10 +01:00 committed by GitHub
commit 6f9fd77015
2 changed files with 9 additions and 0 deletions

View file

@ -1098,6 +1098,11 @@ public final class VideoDetailFragment
toggleFullscreenIfInFullscreenMode();
if (isPlayerAvailable()) {
// FIXME Workaround #7427
player.setRecovery();
}
if (!useExternalAudioPlayer) {
openNormalBackgroundPlayer(append);
} else {
@ -1114,6 +1119,9 @@ public final class VideoDetailFragment
// See UI changes while remote playQueue changes
if (!isPlayerAvailable()) {
playerHolder.startService(false, this);
} else {
// FIXME Workaround #7427
player.setRecovery();
}
toggleFullscreenIfInFullscreenMode();