Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put a layout over a YouTube player while it is in fullscreen mode?

Tags:

I’m trying to put a layer over a YouTube player in fullscreen mode. I’ve tried putting a layout over YouTube through the xml but it isn’t visible when YouTube is in fullsreen mode. Is there a way I can put a custom button or layout over the YouTube player in fullscreen mode?

like image 903
DayYun Choi Avatar asked Jul 20 '16 04:07

DayYun Choi


People also ask

How do you make an overlay disappear on YouTube?

Disable Accessibility Player for YouTube (Android Only) Open the YouTube's Accessibility menu (YouTube > Settings > Accessibility), toggle on Accessibility player, and tap Hide player controls.

How do I make YouTube full screen?

YouTube app Tap the video you'd like to watch. At the bottom of the video player, tap full screen .

How do you watch YouTube videos in portrait mode?

For utilizing this amazing gesture of YouTube, just swipe up the video that you are watching to refill the display and swipe down on it to go back to the portrait orientation. This is the built-in gesture but unfortunately, this can be easily missed.

How do I make my screen normal size on YouTube Mobile?

Tap your profile icon in the top-right corner. Select “Settings” from the menu. Now go to the “General” section. Toggle the switch on for “Zoom to Fill Screen.”


1 Answers

You cannot put a layer on top of Youtube Player. Whenever an overlay is detected, the youtube playback stops playing. For more info

Note that while videos are playing, this View has a minimum size of 200x110 dp. If you make the view any smaller, videos will automatically stop playing. Also, it is not permitted to overlay the view with other views while a video is playing.

You can put a layout outside the player or use Overlay ActionBar

like image 189
Arshak Avatar answered Sep 28 '22 01:09

Arshak