Hi,
This script works perfectly with IE and Firefox but not with Chrome (Win. and Android).
Someone would have an idea for this problem ?
Regards,
JMM.
This script works perfectly with IE and Firefox but not with Chrome (Win. and Android).
Someone would have an idea for this problem ?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" version="1.1" baseProfile="full" viewBox="0 0 0 0" id="root">
<defs>
<script type="text/javascript">
<![CDATA[
var p = window.parent, root, addr;
var ip = location.host;
var audio0 = "http://192.168.1.10/scada/resources/img/";
root = document.getElementById('root');
if (p && p.objectStore) {
addr = p.Scada.encodeGroupAddress('0/0/202');
p.objectStore.addListener(addr, function (obj) {
if (obj.value !== 0) {
var snd0 = new Audio("" + audio0 + obj.value + "_on.mp3");
snd0.play();
}
});
}
]]>
</script>
</defs>
</svg>
Regards,
JMM.
Jean-Marc