This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

.play() and Chrome !
#6
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? Sad

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
Reply


Messages In This Thread
.play() and Chrome ! - by JMM - 04.07.2017, 06:07
RE: .play() and Chrome ! - by buuuudzik - 04.07.2017, 06:48
RE: .play() and Chrome ! - by JMM - 04.07.2017, 07:22
RE: .play() and Chrome ! - by admin - 04.07.2017, 07:28
RE: .play() and Chrome ! - by JMM - 04.07.2017, 07:34
RE: .play() and Chrome ! - by JMM - 04.07.2017, 16:30
RE: .play() and Chrome ! - by JMM - 05.07.2017, 06:13

Forum Jump: