Android Question advancewebview and youtube

hitesh.k

Member
hello i have a tablet with 5.1 android version so YouTube has stopped support of 5.1 so i try with b4x advancewebview and load url
all is working fine but cannot
B4X:
AdvancedWebView1.MixedContentAllowed=True
    AdvancedWebView1.As(WebView).JavaScriptEnabled=True
    
    AdvancedWebView1.loadUrl("https://youtube.com")
switch video to landscape mode.
 

drgottjr

Expert
Licensed User
Longtime User
if you allow auto-rotation (in settings. see attached.), you can switch to landscape. and you don't need a library simply to load a url in a webview.
 

Attachments

  • 1.png
    1.png
    31.6 KB · Views: 97
Upvote 0

hitesh.k

Member
if you allow auto-rotation (in settings. see attached.), you can switch to landscape. and you don't need a library simply to load a url in a webview.
I know this :) any thing else i can do apart from rotating my mobile first
and wait for os to rotate my webview. webchromeclient etc how to impliment webchromeclient if it can do this job
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
set supported orientation to landscape
 

Attachments

  • 1.png
    1.png
    6.4 KB · Views: 87
Upvote 0
Top