• Hello,

    I have both krpano and Panotour Pro. I am building a virtual tour in Panotour Pro and editing the code in xml/krpano. I created a polygon hotspot so that when you click on it, an image shows up on the screen and an audio starts playing. However, when I click away from the image to return to the virtual tour, the audio is still playing. I would like to create a code/function to stop the audio from playing when I click away from the image. Would anyone be able to help with that? This is the code for the hotspot. Thank you


    <hotspot name="spotpolygon107"
    tag="polygon"
    style="PolygonF_P_KingGeorgeVI"
    descriptionid=""
    onclick="onclickspotpolygon107"
    tooltip="spotpolygon107_tooltip"
    >
    <point ath="-105.571800" atv="-18.066600" />
    <point ath="-105.576120" atv="-7.200000" />
    <point ath="-101.482920" atv="-6.251040" />
    <point ath="-101.503440" atv="-15.195960" />
    </hotspot>
    <hotspot name="spotpolygon107" devices="flash" zorder="1"/>
    <hotspot name="spotpolygon107" devices="html5" zorder="3" zorder2="1"/>


    <action name="onclickspotpolygon107">
    showGallery_gallery12();
    playsound3Dwhenpossible(soundspotpolygon107, %$videos_sounds_path%/sounds/comp_2.mp3, true, true, -103.529518, -12.158818, 90, 1, spotpolygon107);

    </action>

Participate now!

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