- Jun 6, 2020
- 11,517
- 4,383
In recent months almost half of all local Dutch TV stations have switched to HTML5 to stream their programs. I have managed to get a HTML5 TV player working on the basis of:
I put together a little app to wrap an HTML5 app in B4A. Of course you could do this with phonegap, or something else, but you get a lot more power and control using B4A. Using jsinterface from webviewextras, you can interact between B4A code and your HTML5/js app. This opens up the full...
The only problem is that the sound of nearly all stations is muted once the player starts. The user has to press the loudspeaker button to listen to the sound.
I have temporarily solved it by simulating two mouse clicks (using gesturedetector): the first click is to make the controls appear and the second is to click on the loudspeaker button. It works, but is rather clumsey and probably won't work on screens with different aspect ratio.
Can someone please make a javascript that automatically clicks on the loudspeaker button once the webview pagefinished event has fired? In the html source the code "mute=muted" then disappears. Here is my code:
HTML5 TV player:
برای دیدن لینک ها باید ثبت نام کنید
I put together a little app to wrap an HTML5 app in B4A. Of course you could do this with phonegap, or something else, but you get a lot more power and control using B4A. Using jsinterface from webviewextras, you can interact between B4A code and your HTML5/js app. This opens up the full...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
The only problem is that the sound of nearly all stations is muted once the player starts. The user has to press the loudspeaker button to listen to the sound.
I have temporarily solved it by simulating two mouse clicks (using gesturedetector): the first click is to make the controls appear and the second is to click on the loudspeaker button. It works, but is rather clumsey and probably won't work on screens with different aspect ratio.
Can someone please make a javascript that automatically clicks on the loudspeaker button once the webview pagefinished event has fired? In the html source the code "mute=muted" then disappears. Here is my code:
HTML5 TV player:
Sub Process_Globals...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید