Web entry needs an error sound, and application.playSound() only plays the message on the Server. (this is 7.4.8 btw)
Certainly, someone has embedded and audio file in the HTML.
Set a function in HTML_AREA and then execute that script, ie playSound().
Called from an onEvent...
plugins.WebClientUtils.executeClientSideJS('playSound();');
- Code: Select all
plugins.WebClientUtils.executeClientSideJS('playSoundX();');
var viewport = new XML(<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=4.0; user-scalable=1;"/>
<audio id="playError" src="media:///error.wav"></audio>
<script type="text/javascript">
<![CDATA[
function playSoundX() {
document.getElementById("playError").play();
}
]]>
</script>
</head>
<body>
</body>
</html>).toXMLString().replace(']]>', '').replace('<![CDATA[', '');
Has anyone had success in playing a sound in the browser?
Thanks!
--Joe.