Sound interface not working on Mac? [solved]

  • krpano has a strange behaviour lately: ht sound interface work correctly on Windows and iOs device, but on MacOs 10.14.5, I have no sound (on safari, chrome, firefox).

    On exemple:
    http://www.panochrome.fr/panoramas/mond…e_mombassa.html


    My html code:

    HTML
    <!DOCTYPE html><html><head>	<title>Kénya - Cooperative Akamba</title>	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />	<meta name="apple-mobile-web-app-capable" content="yes" />	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />	<style>		@media only screen and (min-device-width: 800px) { html { overflow:hidden; } }		html { height:100%; }		body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }		a{ color:#AAAAAA; text-decoration:underline; }		a:hover{ color:#FFFFFF; text-decoration:underline; }	</style></head><body>
    <script src="../../../krpano/swfkrpano.js"></script>
    <div id="pano" style="width:100%; height:100%;">	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>	<script>		embedpano({swf:"../../../krpano/krpano.swf", xml:"cooperative_mombassa.xml", target:"pano"});	</script></div>
    </body></html>


    And the first part of my xml:

    Code
    <krpano version="1.19">		<include url="../../../krpano/skin/defaultskin.xml" />
    	<view hlookat="-70" vlookat="0" maxpixelzoom="1.0" fovmin="10.0" fovmax="110.0"/>	<display details="22" />
    	<progress showload="no" showwait="no"/>		<autorotate enabled="true"			speed="5.0"		    waittime="1.0" />
    	<preview url="cooperative_mombassa.tiles/preview.jpg" />
    
    
    
    
    <plugin name="soundinterface"        url.flash="../../../krpano/soundinterface.swf"        alturl="../../../krpano/soundinterface.js"        preload="true"        rootpath=""        keep="true"        volume="0.4"        mute="false"        />        
    	<events name="currentpano"	        onnewpano="playsound(bgsnd, 'cooperative_akamba.mp3', 0);" 	        onremovepano="stopsound(bgsnd);"	        />


    Does someone had any idea? It worked well for some times *confused*

    Edited once, last by Edge@51 (August 4, 2019 at 2:08 PM).

  • Ok, I found the solution for safari: by default, the automatic sound player is disabled.
    You have to go to the safari preferences => Websites => Autoplay and then allow your website.

    The same on firefox: Preference => Privacy => Allow sound autoplay (or sorting like that, my system is in French: "Empêcher la lecture automatique de contenus sonores")

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!