mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 23:32:59 +00:00 
			
		
		
		
	When in Fullscreen playback mode, toggle play/pause with the hardware Space button.
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mikhail Barashkov
					Mikhail Barashkov