Android Question Webview disables fullscreen option in Youtube - any way to change?

Jimdriver2

Member
Licensed User
Longtime User
In my app I've got a layout that has a Webview occupy most of the screen. At times I need it to show URL's of Youtube videos. It loads those fine and then play but the fullscreen button on the Youtube video is disabled so all the user can do is watch the video in a small window.

I'm guessing some feature of the Webview means that the fullscreen option it gets disabled by default. Is there any way to enable it?

Thanks.
 

Jimdriver2

Member
Licensed User
Longtime User

Thanks, that does explain the problem and looks like it would provide a solution. Given it seems more for doing it directly in a java project for Android in Android Studio I'm not sure where'd start!

I found this thread:

https://www.b4x.com/android/forum/threads/youtube-intent-force-orientation-lanscape.61954/#content

and it has provided me with code to just open a Youtube video directly in the Youtube app. That's probably as good, if not better, than embedding the video directly.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top