Sorry for dumb question, but need to do it fast, so have no time for figuring this out for myself.
I'm coding audioguide for museum virtual tour. It must show you point of interest in panorama, play audio file that contain information about POI, then move to next POI, play audio and so on. I write this code:
<plugin name="soundinterface"
url="soundinterface.swf"
alturl="soundinterface.js"
preload="true"
rootpath=""
volume="1.0"
mute="false"
/>
<action name="start_audioguide">
looktohotspot(spot1, 72);
playsound(auto, Click_06.mp3, 1, action(scene2));
</action>
<action name="scene2">
looktohotspot(spot2, 72);
playsound(auto, Click_07.mp3, 1, action(scene3));
</action>
<action name="scene3">
looktohotspot(spot3, 72);
playsound(auto, Click_08.mp3, 1, action(scene4));
</action>
<action name="scene4">
looktohotspot(spot4, 72);
playsound(auto, Click_09.mp3, 1, action(scene5));
</action>
<action name="scene5">
looktohotspot(spot5, 72);
playsound(auto, Click_10.mp3, 1);
</action>
I use lookathospot for easy editing audioguide in future, you may just place invisible hotspots in panorama and name it properly and it will work.
So the question is in four more buttons. Pause, Stop, Next POI, Previous POI. Any ideas how to do this?
For Pause I think it will be OK to get hotspot name of current POI and when "Play" will be pressed move to it and resume audio play.
For Prev/Next I think it will be OK to move to Scene №-1/№+1.
For Stop just
breakall action.
But I'm new to krpano coding, so I doesn't familiar with syntax, and I need to do it ASAP. Sorry for this dumb request, but if someone may help me with complete code it will be great.
P.S. Sorry for my broken english :)