I GOT IT!
Can someone help me to create it?
I have a tour with four images, and have an audio for each image.
I need a button on the 4 pictures to put the audio on mute or stop!
Thanks for any help!
This is the documentation you need to hand code the features you want:http://www.krpano.com/forum/wbb/index.php?page=Thread&threadID=375
Perhaps the best way of implementing this would be to create a custom theme and add a button to toggle sound but I wouldn't know how to code that function in detail.
I have requested the ability to place a sound on/off button on theme navigation bars via the GUI but it has yet to be developed.
I caught parts of the example of Krpano for directional sound, picked up other parts of the links you sent, customize the audio button and the result is that code:
As I had 4 different audios for each of the 4 images in tour, I needed to insert this code in each corresponding XML, of course changing the name of the MP3.
<!-- sound buttom -->
<plugin name="soundbutton" url="coloniadata/graphics/spots/soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.65" scale="1.0"
onclick="action(playorstopsound); switch(crop, 0|0|150|50, 0|50|150|50);" />
<!-- play stop sound -->
if(isplaying == true, stopsound(coloniadata/sounds/sound3); set(isplaying,false); , playsound(coloniadata/sounds/sound3, coloniadata/sounds/sound3.mp3); set(isplaying,true); );
<events onxmlcomplete="if(isplaying == true, stopsound(coloniadata/sounds/sound3);set(isplaying,false); );" />
And, I needed to erase at the top of each XML, this part of code that loads automatically the audio (this because I had entered the audios in Panotour Pro):
Only in the main XML I put this:
<plugin name="soundinterface" url="coloniadata/graphics/soundinterface.swf" preload="true" keep="true"/>
All audios are turned off by default.
To listen just click to listen every audio in its image.
Take look (regrets that the audio does not work on iphone/iPad):http://www.vistapanoramica.com.br/mobile/sindicato/colonia.html