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 !
#1
Hi,

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
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: