I'm trying to watch a streaming through the control WebView, but it is not possible to catch the full screen button at the botton bar at the right. On computers, smartphones using chrome or whatever browser, it works. Endeed the right corner is liike this
but unfortunately using WebView the right corner became like this
I've tried in so many ways but still doesn't work. I use the control WebView and the event WebView1_OverrideUrl in order to suppress any kind of ads/ pop up that might open.
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
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
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
I also changed using a desktop UserAgent, or using different libraries like WebViewExtras2, Exo Player which shows the following error
com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaExtractor, AdtsExtractor, Ac3Extractor, Ac4Extractor, Mp3Extractor, JpegExtractor) could read the stream.
Looking at the html code, I can see the line
<!--player by nstream.to--><iframe src="https://r93w0mxwclykj2.wholesaledisturbed.com/embed/ez3sjcbvjr4" width="100%" height="100%" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>
which makes me think that using the WebView the property allowfullscreen becomes false, but this is just my assuming. How is possible that using chrome or samsung browser the fullscreen button appear normaly?