Skip to content

Commit 31ea44c

Browse files
authored
Fixed player not automatically playing (#6266)
* Fixed player not automatically playing Should also fix #6179 * Added comment
1 parent d26ca19 commit 31ea44c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,12 @@ && isPlaybackResumeEnabled(this)
714714
// Android TV: without it focus will frame the whole player
715715
binding.playPauseButton.requestFocus();
716716

717-
playPause();
717+
// Note: This is for automatically playing (when "Resume playback" is off), see #6179
718+
if (getPlayWhenReady()) {
719+
play();
720+
} else {
721+
pause();
722+
}
718723
}
719724
NavigationHelper.sendPlayerStartedEvent(context);
720725
}

0 commit comments

Comments
 (0)