Hi,
I have a small test php script which auto plays a sound when i open it. In chrome browser this autoplay sound works
after I added in the setup/website setting/ton allowed for this domain.
When I open the site in a webview, there is no sound. General sound works, I tried youtube.
It looks like a permission problem. Can somebody help me. Thanks.
rgs
Jürgen
I have a small test php script which auto plays a sound when i open it. In chrome browser this autoplay sound works
after I added in the setup/website setting/ton allowed for this domain.
PHP:
<?php
echo("Hello, World 2!");
$audio_file = "https://mydomain.de/sound.wav";
echo '<audio autoplay="true" style="display:none;">
<source src="'.$audio_file.'" type="audio/wav">
</audio>';
?>
When I open the site in a webview, there is no sound. General sound works, I tried youtube.
B4X:
Activity.LoadLayout("Layout")
Dim webview1 As WebView
webview1.initialize("wv")
Activity.addview(webview1,0%x,0%x,100%x,100%y)
webview1.loadurl("https://mydomain.de/test_sound.php")
It looks like a permission problem. Can somebody help me. Thanks.
rgs
Jürgen