Hi, I'm opening a website where there is a videostreaming and everything works fine on computer, smartphone, whatever browser I use.
When displayed the correct way is like this
with at the botton a bar where starts from pause/play button at the left and at the right, as you can see from the image, volume and fullscreen button.
Unfortunately using the control WebView, it is being displayed like this
so basically the fullscreen button disappear, doesn't matter how I anchor the control WebView or I zoom in/out ...
I use the control WebView and the event WebView1_OverrideUrl in order to suppress any kind of ads/ pop up that might open.
This is the code I'm using:
do you have any idea on why the WebView is cutting some mm on the right side?
To follow, other test I did:
- I've just tried with the following post WebView Not Displaying Web Page
- Tried using a User Agent like chrome as the following code
but still the fullscreen button is over the screen or disappeared...
Many thanks
When displayed the correct way is like this
with at the botton a bar where starts from pause/play button at the left and at the right, as you can see from the image, volume and fullscreen button.
Unfortunately using the control WebView, it is being displayed like this
so basically the fullscreen button disappear, doesn't matter how I anchor the control WebView or I zoom in/out ...
I use the control WebView and the event WebView1_OverrideUrl in order to suppress any kind of ads/ pop up that might open.
This is the code I'm using:
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Dim WebView1 As WebView
Dim Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
WebView1.JavaScriptEnabled=True
WebView1.LoadUrl("https://boo7oom.com/embed.php?id=live102")
End Sub
Sub WebView1_OverrideUrl (Url As String) As Boolean
If Url.StartsWith("https://boo7oom.com")=True Then
Return False
Else
Return True
End If
End Sub
do you have any idea on why the WebView is cutting some mm on the right side?
To follow, other test I did:
- I've just tried with the following post WebView Not Displaying Web Page
- Tried using a User Agent like chrome as the following code
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Dim WebViewSetting1 As WebViewSettings
WebViewSetting1.setMediaPlaybackRequiresUserGesture(WebView1,False)
WebViewSetting1.setUserAgentString(WebView1,"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0")
WebView1.JavaScriptEnabled=True
WebView1.LoadUrl("https://boo7oom.com/embed.php?id=live102"
End Sub
but still the fullscreen button is over the screen or disappeared...
Many thanks
Last edited: