mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-11 01:40:59 +00:00
Merge pull request #7668 from litetex/fix-video-reset-on-player-switch
Workaround: Set recovery before switching player
This commit is contained in:
commit
d7fbddf6f8
@ -1098,6 +1098,11 @@ public final class VideoDetailFragment
|
|||||||
|
|
||||||
toggleFullscreenIfInFullscreenMode();
|
toggleFullscreenIfInFullscreenMode();
|
||||||
|
|
||||||
|
if (isPlayerAvailable()) {
|
||||||
|
// FIXME Workaround #7427
|
||||||
|
player.setRecovery();
|
||||||
|
}
|
||||||
|
|
||||||
if (!useExternalAudioPlayer) {
|
if (!useExternalAudioPlayer) {
|
||||||
openNormalBackgroundPlayer(append);
|
openNormalBackgroundPlayer(append);
|
||||||
} else {
|
} else {
|
||||||
@ -1114,6 +1119,9 @@ public final class VideoDetailFragment
|
|||||||
// See UI changes while remote playQueue changes
|
// See UI changes while remote playQueue changes
|
||||||
if (!isPlayerAvailable()) {
|
if (!isPlayerAvailable()) {
|
||||||
playerHolder.startService(false, this);
|
playerHolder.startService(false, this);
|
||||||
|
} else {
|
||||||
|
// FIXME Workaround #7427
|
||||||
|
player.setRecovery();
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleFullscreenIfInFullscreenMode();
|
toggleFullscreenIfInFullscreenMode();
|
||||||
|
@ -635,6 +635,7 @@ public final class Player implements
|
|||||||
final boolean isMuted = intent.getBooleanExtra(IS_MUTED, isMuted());
|
final boolean isMuted = intent.getBooleanExtra(IS_MUTED, isMuted());
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* TODO As seen in #7427 this does not work:
|
||||||
* There are 3 situations when playback shouldn't be started from scratch (zero timestamp):
|
* There are 3 situations when playback shouldn't be started from scratch (zero timestamp):
|
||||||
* 1. User pressed on a timestamp link and the same video should be rewound to the timestamp
|
* 1. User pressed on a timestamp link and the same video should be rewound to the timestamp
|
||||||
* 2. User changed a player from, for example. main to popup, or from audio to main, etc
|
* 2. User changed a player from, for example. main to popup, or from audio to main, etc
|
||||||
|
Loading…
Reference in New Issue
Block a user