mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
564 stars 278 forks source link

Fullscreen youtube videos #60

Open Postal268 opened 5 years ago

Postal268 commented 5 years ago

I am trying to use this for a website of mine that contains various youtube videos.

It works great but the youtube fullscreen option is grayed out and not available.

How can I modify this to allow youtube videos to go fullscreen landscape?

mgks commented 5 years ago

I tried integrating the fix with the current project but it's getting much more complex for other users to understand. Here's the most possible solution that works fine. https://github.com/cprcrack/VideoEnabledWebView

Do let me know if it works for you. As for SWV, I'm not sure if this fix will be added to the main project anytime soon, instead I'll try finding a more compatible and simpler solution for it.

Postal268 commented 5 years ago

I'm trying to teach myself coding but I am still very new. Could you explain how I can integrate the videoEnabledWebView or share a youtube tutorial video someone else made to explain the basics. I've been having trouble finding good tutorials. Specifically how do you use the multiple java files and make them work together like that? So far I can only code very basic apps with a single java file. Thank you very much.

EDIT: I think a better way to explain it is, I have been watching java tutorials but I am not very familiar with android studio and java together.

mgks commented 5 years ago

I'm not sure if there's any specific video tutorial for this very issue but I guess few more people are asking for the same so I may look into it in a week or two.

Follow the repo to keep yourself updated. I'll let you know once issue fixed.

manojkumar1412 commented 4 years ago

did anyone find any way to enable full screen mode in html5 video tag other than https://github.com/cprcrack/VideoEnabledWebView?