Audio with embedded html

We’re writing a simple queue management system, where the number is shown as an embeded html.
When the number changes, it plays a sound. But the sound doesn’t work on android player (still have not tried on windows player).
With chrome, in a normal web page, I have to interact with a click on the page, to make it allow me to play the sound. But obviously this interaction is not possible on Xibo.
Is the problem the same? Is there a workaround?


Xibo for Windows Player uses Internet Explorer. Xibo for Android uses Android WebView.

Webview didn’t support ‘autoplay’, it requires user interaction to play. There are some tricks to do it, but it doesn’t work on all devices.

Thank you Jonatan, I did some research.
With default Chrome,it’s possible to disable autoplay policy or setting a parameter (chrome://flags/#autoplay-policy).

Is it possible to set such flags in Webview used by Xibo? I use only DSCS9 Android players.

On android we set setMediaPlaybackRequiresUserGesture to false, which is the fullest extent we can control that option and I think does the same as your policy link.

Thank you Dan, we use in embedded javascript this function:
var n=new SpeechSynthesisUtterance("Serviamo il numero "+e);

It works in preview after interaction, but it doesn’t work in the player, both Android an Windows.
I see in another post that the function jQuery should work, so it’s a specific problem with the SpeechSynthesisUtterance function?


I didn’t know that API existed - you learn something new every day!

A quick double check on caniuse shows that it wont work in IE or in the Android Browser (webview or chromium).

Sorry about that :worried:

Ok, at least you found where the problem is.
We’ll play an .mp3 file.