im using the last version of krpano 126.96.36.199 of 5 october 2012. (im still a newbie...)
i need to know how can i add a mp3 file sound in background to the first pano only , and start as soon as it load it on all devices (desktop,iphone,ipad,android)
i added this code, at the end of the tour.xml file
<!-- load the soundinterface plugin --> <plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" rootpath="" preload="true" keep="true" /> </br> <!-- start playing the sound --> <events name="currentpano" onnewpano="playsound(bgsnd, 'http://sky360.it/VirtualTours/Discoteche/Showroom-Smash2/sounds/sound0.mp3', 1);" onremovepano="stopsound(bgsnd);" />
with that code i saw that it works on iphone\ipad only , (i haven't tested on android devices) . but it doesn't work on desktop (tested on all browsers).
it keep the same sound on all pano untill the mp3 finish.
if i repleace the code
it will works on desktop only, it will load the sound immediatly and it will restart the sound each time that i move to an other scene.
on iphone\ipad it will works too, but the layer skin of the buttons and the quality of the pano images result bugged... (no map, gyro icon in the bar, and low quality of the pano)
thank for your help!