play audio file inside webview?

play audio file inside webview?

hello

i’m attempting to play an area audio file inside my webview however the file shouldn’t be loaded.
i’m in a position load the file from url however i need to enable the consumer to obtain the file and play it if he has not web connection (offline play)

i take advantage of this in my webview:


HTML:


<!DOCTYPE html>
    <html lang="en">
    <meta identify="viewport" content material="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <head>
        <meta charset="UTF-8">
         <title>${title}</title>
    </head>
    <physique>
        <div id="major">
            <img id="img" src="knowledge:picture/jpg;base64, ${base64image}"/>
            <div>
                <audio controls controlsList="nodownload" id="audioplayer">
                    <supply src="${url}" Type="audio/mp3"> <------ HERE IS THE URL
                </audio>
            </div>
        </div>
    </physique>
    </html>
    "$

i move the url to the html code and attempt to play it.

the file url i get like this:


B4X:


        Dim url As String =...

Read extra

HI-FI News

by way of B4X Programming Forum https://ift.tt/NYFdasm

November 18, 2024 at 10:03PM