04.07.2017, 16:30
HI,
with this script added into the custom javascript, it is OK for:
-Firefox and Chrome (windows)
-Firefox (Android)
And always bad for Chrome (Android) !!
an idea?
with this script added into the custom javascript, it is OK for:
-Firefox and Chrome (windows)
-Firefox (Android)
And always bad for Chrome (Android) !!
an idea?
Code:
//-------ALARME MP3--------------------------------------
var p = window.parent, root, addr;
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();
}
});
}
//--------------------------------------------------------
Jean-Marc