1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-25 20:37:40 +00:00

Fixed player not automatically playing (#6266)

* Fixed player not automatically playing

Should also fix https://github.com/TeamNewPipe/NewPipe/issues/6179

* Added comment
This commit is contained in:
litetex
2021-05-12 10:20:39 +02:00
committed by GitHub
parent d26ca194b3
commit 31ea44ccf1

View File

@@ -714,7 +714,12 @@ public final class Player implements
// Android TV: without it focus will frame the whole player
binding.playPauseButton.requestFocus();
playPause();
// Note: This is for automatically playing (when "Resume playback" is off), see #6179
if (getPlayWhenReady()) {
play();
} else {
pause();
}
}
NavigationHelper.sendPlayerStartedEvent(context);
}