Android Question Help to find and inject some javascript code to set option to a stream player

Mattiaf

Active Member
Licensed User
Hi, I'm plying a stream through webview which starts muted, not in fullsscreen and not played.
I already tried soo many times in other topics too to use different players like octopus, but it doesn't support this kind of format.
The full code of the frame is on this pastebin
I grabbed the frame code and I can see some option setted the way I was thinking, like ,videoStarted = false , startMuted = startMuted() <script>var WSreloadCounter=false,WSnTries=0,videoStarted = false, startMuted = startMuted()

is there any way to inject some javascript in order to get the options I want ? Thanks
 

TILogistic

Expert
Licensed User
Longtime User
You don't have to inject anything, you just have to run the functions of the video manipulation framework
ExecuteJavaScript
player.destroy();
player.mute();
player.play();
player.unmute();
 
Upvote 0

Mattiaf

Active Member
Licensed User
You don't have to inject anything, you just have to run the functions of the video manipulation framework
ExecuteJavaScript
wow I cant try it right now but if thats works it would be AMAZING af!!!
what does player.destroy? is there anything to fullscreen it?
 
Upvote 0

Mattiaf

Active Member
Licensed User
You don't have to inject anything, you just have to run the functions of the video manipulation framework
ExecuteJavaScript
I've just tried with

B4X:
Sub btnGo_Click
    UltimateWebView1.Settings.JavaScriptEnabled=True
    UltimateWebView1.ExecuteJavaScript("player.unmute();")
End Sub

but it doesn't unmute anything.. What Am i doing wrong?
 
Upvote 0
Top