mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
When in Fullscreen playback mode, toggle play/pause with the hardware Space button.
This commit is contained in:
parent
16c44f3a30
commit
907106156f
@ -1891,8 +1891,10 @@ public final class VideoDetailFragment
|
||||
|
||||
if (fullscreen) {
|
||||
hideSystemUiIfNeeded();
|
||||
viewPager.setVisibility(View.GONE);
|
||||
} else {
|
||||
showSystemUi();
|
||||
viewPager.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
if (relatedStreamsLayout != null) {
|
||||
|
@ -505,6 +505,11 @@ public class VideoPlayerImpl extends VideoPlayer
|
||||
switch (keyCode) {
|
||||
default:
|
||||
break;
|
||||
case KeyEvent.KEYCODE_SPACE:
|
||||
if (isFullscreen) {
|
||||
onPlayPause();
|
||||
}
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
if (DeviceUtils.isTv(service) && isControlsVisible()) {
|
||||
hideControls(0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user