iOS Question Remote play or streaming url mp3 and autoplay

valentino s

Active Member
Licensed User
Longtime User
I have an url of an mp3. I want to play it

2 questions:

B4X:
WebView2.LoadHtml("<html><head></head><body><audio style='width:100%;' controls=true autoplay=true><source src='"&Url&"' type='audio/mp3'></source></audio></body></html>")

In this way I have a complete player managed by a webview.

The autoplay feature doesn't work, even if I replace "controls=true autoplay=true" with "controls autoplay". Can be solved ?

or

B4X:
     vv.stop
     vv.LoadVideoUrl(Url)
     vv.Play

With this solution I can play it immediatly but I have to manually write a full player with time scroller, pause, play and top button, time lapsed and so on.
Is there any solution ready to use / a media player to copy and paste ?

Or there's a third technique ?

Thanks
 
Top