| Server IP : 213.186.33.4 / Your IP : 216.73.216.59 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/360/holidaygreen/indexdata/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19-pr16">
<!-- unsupported kind of display : PointMap -->
<!-- Spot Style - Video 360 -->
<style name="IconVideo360"
url="%FIRSTXML%/spots/icone_visite2_user_defaultpoint1.png"
visible="false"
edge="bottom" ox="0" oy="0"
onhover="onhoverIconVideo360"
onover="onoverIconVideo360"
onout="onoutIconVideo360"
/>
<action name="onhoverIconVideo360">
showtooltip('hotspot');
</action>
<action name="onoverIconVideo360">
tween(scale, 1.2);
pauseautorotation(forcehotspot);
</action>
<action name="onoutIconVideo360">
hideTooltip();
tween(scale, 1);
resumeautorotation(forcehotspot);
</action>
<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->
<plugin name="gyroscope"
url="%FIRSTXML%/graphics/gyro2.js"
keep="true"
devices="no-desktop.and.html5"
onunavailable="checkGyroUnavailable();"
sensor_mode="1"
friction="auto"
autocalibration="true"
touch_mode="full"
onavailable="delayedcall(1, checkGyroAvailability(););"
enabled="false"
activated="false"
/>
<events name="gyroscopeEvents" onnewpano="planarGyroscopeTest();" keep="true" />
<action name="planarGyroscopeTest">
if(plugin[gyroscope],
if(scene[get(xml.scene)].full360,
set(sceneisfull360, false);
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
if (sceneisfull360,
set(plugin[gyroscope].camroll, true);
,
set(plugin[gyroscope].camroll, false);
);
,
set(plugin[gyroscope].camroll, false);
);
);
</action>
<action name="changeGyroscopeState">
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
if(%1,
set(plugin[gyroscope].activated,true);
,
set(plugin[gyroscope].activated,false);
);
if (%1 != plugin[gyroscope].enabled,
if(plugin[gyroscope].activated,
switch(plugin[gyroscope].enabled);
,
set(plugin[gyroscope].enabled, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
);
</action>
<action name="checkGyroAvailability">
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
set(sceneisfull360, false);
if (scene[get(xml.scene)].full360,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
);
set(delaythegyrocheck, false);
if (sceneisfull360 AND tour_firstlittleplanet, set(delaythegyrocheck, true));
ifnot(delaythegyrocheck,
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
,
delayedcall(1, checkGyroAvailability(););
);
,
set(tour_gyroscopedevices, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
checkGyroUnavailable();
);
</action>
<action name="checkGyroUnavailable">
set(plugin[gyroscope].activated, false);
set(plugin[gyroscope].enabled, false);
set(tour_gyroscopedevices, false);
events.dispatch(ongyroscopeunavailable);
</action>
<!-- ********** -->
<!-- Context menu -->
<!-- id : contextmenu -->
<!-- ********** -->
<contextmenu fullscreen="false" versioninfo="false" touch="true">
<item name="author" onclick="getmessage(urltoopen,project_author_url);openurl(get(urltoopen),_blank);" />
<item name="fullscreenentry" onclick="enterFullscreen();
" separator="true"/>
<item name="vrmodeentry" onclick="if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
js(accessWebVr(null));
);" />
</contextmenu>
<events name="contextmenuevents" keep="true"
onenterfullscreen="updateContextMenu" onexitfullscreen="updateContextMenu"
onxmlcomplete="updateContextMenu"
changetourlanguage="updateContextMenu"
/>
<events name="contextmenuvrevents" keep="true"
onvravailable="updateContextMenu();" onvrunavailable="updateContextMenu();"
devices="html5"
/>
<action name="updateContextMenu">
getmessage(contextmenu.item[author].caption, project_author_name);
if (device.fullscreensupport,
if(tour_fullscreen,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
set(contextmenu.item[fullscreenentry].onclick, exitFullscreen();
);
,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
set(contextmenu.item[fullscreenentry].onclick, enterFullscreen();
);
);
,
set(contextmenu.item[fullscreenentry].visible, false);
);
if (device.html5 AND tour_vrdevices,
getmessage(contextmenu.item[vrmodeentry].caption, contextmenuopenVrLabel);
set(contextmenu.item[vrmodeentry].onclick, if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
js(accessWebVr(null));
););
,
set(contextmenu.item[vrmodeentry].visible, false);
);
</action>
<!-- ********** -->
<!-- Social Share -->
<!-- id : socialShare -->
<!-- ********** -->
<ptplugin name="socialShare" engine="kolorBox">
<settings>
<option name="position" value="center" type="string" />
<option name="margin_x" value="50" type="int" />
<option name="margin_y" value="50" type="int" />
<option name="external_padding" value="15" type="int" />
<option name="animate" value="false" type="bool" />
<option name="draggable_box" value="false" type="bool" />
<option name="container_auto_size" value="true" type="bool" />
<option name="container_color" value="ffffff" type="string" />
<option name="container_alpha" value="0.80000000000000004" type="float" />
<option name="container_topleft_border_radius" value="15" type="int" />
<option name="container_topright_border_radius" value="15" type="int" />
<option name="container_bottomleft_border_radius" value="15" type="int" />
<option name="container_bottomright_border_radius" value="15" type="int" />
<option name="container_border_width" value="0" type="int" />
<option name="container_border_color" value="000000" type="string" />
<option name="container_border_alpha" value="1" type="float" />
<option name="overlay_displayed" value="false" type="bool" />
<option name="overlay_color" value="000000" type="string" />
<option name="overlay_alpha" value="0.50000762951094835" type="float" />
<option name="social_btn" value="facebook#twitter#google#email" type="string" />
<option name="social_btn_icons" value="iconset0" type="string" />
<option name="social_orientation" value="horizontal" type="string" />
<option name="social_btn_size" value="64" type="int" />
<option name="inner_margin" value="10" type="int" />
<option name="title_displayed" value="false" type="bool" />
<option name="caption_displayed" value="false" type="bool" />
<option name="close_displayed" value="true" type="bool" />
<option name="close_position" value="topright" type="string" />
<option name="close_text" value="socialShareclose_text" type="string" />
<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback_socialShare')" type="string" />
<option name="zorder" value="3" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
<internaldata>
</internaldata>
</ptplugin>
<action name="kolorBoxJsReady_socialShare">
set(ptplugin[socialShare].jsready, true);
</action>
<action name="showSocialShare_socialShare">
ifnot(ptplugin[socialShare].isOpen,
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].currentCall, false);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
,
set(ptplugin[socialShare].currentCall, true);
set(ptplugin[socialShare].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showSocialShare_socialShare(););
);
);
</action>
<action name="toggleSocialShare_socialShare">
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
</action>
<action name="closeKolorBox_socialShare">
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].doNotDeleteMe, false);
,
js(invokePluginFunction(socialShare, closeKolorBox));
);
</action>
<action name="closeKolorBoxCallback_socialShare">
resumeautorotation(forceplugin);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, false);
</action>
<action name="changeLanguage_socialShare">
if(ptplugin[socialShare].jsready,
js(invokePluginFunction(socialShare, changeLanguage));
);
</action>
<events name="kolorBoxEvents_socialShare"
keep="true"
onremovepano="if(ptplugin[socialShare].isOpen,closeKolorBox_socialShare(););"
onremovedisplayedobject="ifnot(ptplugin[socialShare].currentCall,if(ptplugin[socialShare].isOpen,closeKolorBox_socialShare();););"
onsharetour="showSocialShare_socialShare();"
changetourlanguage="changeLanguage_socialShare();"
/>
<!-- ********** -->
<!-- Lecteur de vidéo Web -->
<!-- id : webVideoViewer -->
<!-- ********** -->
<ptplugin name="webVideoViewer" engine="kolorBox">
<settings>
<option name="position" value="center" type="string" />
<option name="margin_x" value="0" type="int" />
<option name="margin_y" value="0" type="int" />
<option name="external_padding" value="15" type="int" />
<option name="draggable_box" value="false" type="bool" />
<option name="container_auto_size" value="true" type="bool" />
<option name="container_width" value="100" type="int" />
<option name="container_width_unit" value="percent" type="string" />
<option name="container_height" value="100" type="int" />
<option name="container_height_unit" value="percent" type="string" />
<option name="container_color" value="ffffff" type="string" />
<option name="container_alpha" value="0.80000000000000004" type="float" />
<option name="container_topleft_border_radius" value="15" type="int" />
<option name="container_topright_border_radius" value="15" type="int" />
<option name="container_bottomleft_border_radius" value="15" type="int" />
<option name="container_bottomright_border_radius" value="15" type="int" />
<option name="container_border_width" value="0" type="int" />
<option name="container_border_color" value="ffffff" type="string" />
<option name="container_border_alpha" value="1" type="float" />
<option name="overlay_displayed" value="false" type="bool" />
<option name="overlay_color" value="000000" type="string" />
<option name="overlay_alpha" value="0.50000762951094835" type="float" />
<option name="title_displayed" value="false" type="bool" />
<option name="title_position" value="top" type="string" />
<option name="title_font" value="Verdana" type="string" />
<option name="title_size" value="14" type="int" />
<option name="title_weight" value="normal" type="string" />
<option name="title_style" value="normal" type="string" />
<option name="title_decoration" value="none" type="string" />
<option name="title_color" value="000000" type="string" />
<option name="caption_displayed" value="false" type="bool" />
<option name="video_autoplay" value="true" type="bool" />
<option name="fullscreen_displayed" value="true" type="bool" />
<option name="fullscreen_position" value="topleft" type="string" />
<option name="fullscreen_text" value="webVideoViewerfullscreen_text" type="string" />
<option name="close_displayed" value="true" type="bool" />
<option name="close_position" value="topright" type="string" />
<option name="close_text" value="webVideoViewerclose_text" type="string" />
<option name="close_callback" value="invokeKrFunction('closeKolorBoxCallback_webVideoViewer')" type="string" />
<option name="zorder" value="4" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
<internaldata>
</internaldata>
</ptplugin>
<action name="kolorBoxJsReady_webVideoViewer">
set(ptplugin[webVideoViewer].jsready, true);
</action>
<action name="openWebVideo_webVideoViewer">
ifnot(ptplugin[webVideoViewer].isOpen,
set(ptplugin[webVideoViewer].isOpen, true);
set(ptplugin[webVideoViewer].doNotDeleteMe, false);
pauseautorotation(forceplugin);
getmessage(webVideoViewer_boxurl, %1);
js(invokePluginFunction(webVideoViewer, loadSingleArrayItem, get(webVideoViewer_boxurl), %2));
events.dispatch(onremovedisplayedobject);
,
if('%1' != webVideoViewer_boxurl,
closeKolorBox_webVideoViewer();
delayedcall(0.3,openWebVideo_webVideoViewer(%1,%2););
);
);
</action>
<action name="toggleWebVideo_webVideoViewer">
js(invokePluginFunction(webVideoViewer, toggleKolorBox, %1));
</action>
<action name="closeKolorBox_webVideoViewer">
js(invokePluginFunction(webVideoViewer, closeKolorBox));
</action>
<action name="closeKolorBoxCallback_webVideoViewer">
resumeautorotation(forceplugin);
set(ptplugin[webVideoViewer].isOpen, false);
</action>
<action name="changeLanguage_webVideoViewer">
if(ptplugin[webVideoViewer].jsready,
stopdelayedcall(delay_webVideoViewer);
js(invokePluginFunction(webVideoViewer, changeLanguage));
,
delayedcall(delay_webVideoViewer, 0.1, changeLanguage_webVideoViewer(););
);
</action>
<events name="kolorBoxEvents_webVideoViewer"
keep="true"
changetourlanguage="changeLanguage_webVideoViewer();"
/>
<events name="Bootstrap_External_Commandsevents" onnewpano="Bootstrap_External_Commandsonp" keep="true"/>
<action name="Bootstrap_External_Commandsonp">
js(updatePanorama(get(xml.scene)););
</action>
<!-- WebVR plugin for VR availability tests -->
<plugin name="ptpvrmode" devices="html5" keep="true"
url="%FIRSTXML%/graphics/webvr.js"
mobilevr_support="true"
mobilevr_fake_support="false"
vr_cursor=""
vr_cursor_enabled="false"
onavailable="delayedcall(1, checkVrAvailability(););"
onunavailable="checkVrUnavailable();"
/>
<action name="checkVrAvailability">
if(plugin[ptpvrmode],
if (plugin[ptpvrmode].isavailable,
set(tour_vrdevices, true);
events.dispatch(onvravailable);
,
set(tour_vrdevices, false);
);
,
checkVrUnavailable();
);
</action>
<action name="checkVrUnavailable">
set(tour_vrdevices, false);
events.dispatch(onvrunavailable);
</action>
<action name="setViewLittlePlanet">
set(sceneisfull360, false);
if(scene[get(xml.scene)].full360,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
);
if (sceneisfull360 AND (device.webgl OR device.flash),
if(normalViewActivated,stopSetViewTweens(););
if(current_view_isflat === true,
setViewNonFlat(VFOV);
);
setViewLittlePlanetComplete();
);
</action>
<action name="setViewLittlePlanetComplete">
set(backtonormalfirst,false);
if(view.pannini GE 1.0, set(backtonormalfirst,true));
if(view.stereographic == false, set(backtonormalfirst,true));
if(backtonormalfirst, hideTooltip();tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeOutQuad, WAIT); );
set(view.stereographic, true);
set(view.fisheyefovlink, 1.5);
tween(view.architectural, 0.0, 0.25);
tween(view.vlookat, 90, distance(179, 1.50));
tween(view.pannini, 0.0, distance(1.0, 0.75), easeOutQuad, if(panniniViewActivated,restoreViewFromPannini();););
if(panoview.fovmax LE 150, set(view.fovmax, 150); , set(view.fovmax, get(panoview.fovmax)); );
tween(view.fisheye, 1.0, distance(1.0, 0.75));
tween(view.fov, 150, distance(179, 0.75));
</action>
<!-- Fullscreen Management -->
<action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);js(setFullscreen(false));</action>
<action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);js(setFullscreen(true));</action>
<action name="switchFullScreen">if(tour_fullscreen,exitFullScreen();,enterFullScreen(););</action>
<events name="krpanoExitFullscreenEvent"
onexitfullscreen="if(tour_fullscreen,exitFullScreenChangeEvent(););"
keep="true" />
<action name="exitFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,false);events.dispatch(onexitfullscreen);</action>
<action name="enterFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,true);events.dispatch(onenterfullscreen);</action>
<action name="exitFullScreenFallback">set(fullscreen,false);</action>
<action name="enterFullScreenFallback">set(fullscreen,true);</action>
<action name="resizeFullScreenEvent">delayedcall(0,updatescreen(););</action>
<!-- Sounds Management -->
<plugin name="soundinterface"
preload="true"
url.html5="%FIRSTXML%/graphics/soundinterface.js"
rootpath="%$videos_sounds_path%/sounds"
backgroundsound=""
backgroundsoundloops="0"
bgsound="false"
bgsoundpaused="false"
bgsoundloopended="false"
bgsoundtoforce = "false"
volumeinitialized="false"
started="true"
keep="true"/>
<events name="soundmanagementevents"
onnewpano="if(plugin[soundinterface].started,playbackgroundsound(););"
onxmlcomplete="soundinterfaceonxmlcomplete();"
keep="true"/>
<action name="soundinterfaceonxmlcomplete">
ifnot(plugin[soundinterface].volumeinitialized,
div(plugin[soundinterface].volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volumeinitialized,true);
);
</action>
<action name="playsound3Dwhenpossible">
set(really_play_sound, true);
if (tour_current_played_sound,
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
stopsound(%1);
set(really_play_sound, false);
if(%4,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if (really_play_sound,
if (tour_current_played_sound,
stopsound(get(tour_current_played_sound));
ifnot(%4,
if(tour_current_played_sound_pausesound,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if(%4,
set(tour_current_played_sound_pausesound, true);
pauseTourSoundsActions(true,false,true,true,true);
);
set(tour_current_played_sound, %1);
if(tour_current_played_video,
set(tour_current_played_sound_state, 2);
,
set(tour_current_played_sound_state, 1);
);
set(tour_current_played_sound_paused, false);
if (%3,
if (device.flash,
div(volume, tour_soundsvolume, 100);
if(%9 != null,
playsound3D(%1,%2,%5,%6,%7,get(volume),%8,stopsound3Dwhenpossible(%1,%4));
,
playsound3D(%1,%2,%5,%6,%7,get(volume),%8);
);
,
if(%9 != null,
playsound(%1,%2,%8,stopsound3Dwhenpossible(%1,%4));
,
playsound(%1,%2,%8);
);
);
,
if(%6 != null,
playsound(%1,%2,%5,stopsound3Dwhenpossible(%1,%4));
,
playsound(%1,%2,%5);
);
);
ifnot(tour_soundson,
set(tour_current_played_sound_paused, true);
pausesound(%1);
);
);
</action>
<action name="stopsound3Dwhenpossible">
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
ifnot(device.safari,
stopsound(%1);
);
if(%2,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
</action>
<action name="playbackgroundsound">
if(playsound,
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound,
if (plugin[soundinterface].backgroundsound != scene[get(xml.scene)].backgroundsound,
copy(plugin[soundinterface].backgroundsound, scene[get(xml.scene)].backgroundsound);
copy(plugin[soundinterface].backgroundsoundloops, scene[get(xml.scene)].backgroundsoundloops);
if (tour_soundson,
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
set(plugin[soundinterface].bgsoundtoforce, false);
if(scene[get(xml.scene)].video == false OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
if(plugin[soundinterface].backgroundsoundloops GT 0,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
);
,
set(plugin[soundinterface].bgsoundtoforce, true);
set(plugin[soundinterface].bgsound, false);
);
,
if (tour_soundson,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
,
set(plugin[soundinterface].bgsoundtoforce, true);
set(plugin[soundinterface].bgsound, false);
);
);
);
);
,
delayedcall(0.2, playbackgroundsound());
);
</action>
<action name="stopbackgroundsoundoncomplete">
if (plugin[soundinterface].backgroundsound,
if (plugin[soundinterface].backgroundsoundloops GT 0,
set(plugin[soundinterface].backgroundsoundloops, 0);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, true);
);
);
</action>
<action name="resetbackgroundsoundifneeded">
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound != scene[%1].backgroundsound,
if(plugin[soundinterface].backgroundsound,
stopsound(bgsoundname);
);
set(plugin[soundinterface].backgroundsound, "");
set(plugin[soundinterface].backgroundsoundloops, 0);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
);
);
</action>
<action name="pausebackgroundsound">
if(plugin[soundinterface].backgroundsound,
if (plugin[soundinterface].bgsound,
if(plugin[soundinterface].bgsoundpaused == false AND plugin[soundinterface].bgsoundloopended == false,
pausesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, true);
);
);
);
pauseVideoSceneSound();
</action>
<action name="resumebackgroundsound">
set(bgSoundOnResume, true);
set(forceBgSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound AND tour_current_played_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound AND tour_current_played_web_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(tour_current_played_sound_pausesound AND tour_current_played_sound,
set(bgSoundOnResume, false);
);
ifnot(plugin[soundinterface].backgroundsound AND scene[get(xml.scene)].backgroundsound,
set(bgSoundOnResume, false);
);
if(videospots_playing GT 0,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
);
if(bgSoundOnResume,
if (plugin[soundinterface].backgroundsound,
if (tour_soundson,
if (plugin[soundinterface].bgsound AND plugin[soundinterface].bgsoundloopended == false,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
,
if(device.mobile OR device.tablet OR device.safari OR device.chrome,
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
);
,
if(((plugin[soundinterface].bgsoundpaused == true OR plugin[soundinterface].bgsoundtoforce == true) AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
set(plugin[soundinterface].bgsoundtoforce, false);
if(plugin[soundinterface].backgroundsoundloops GT 0,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
);
);
);
);
resumeVideoSceneSound();
,
if(forceBgSoundOnResume,
playbackgroundsound();
resumeVideoSceneSound();
);
);
</action>
<action name="resumeVideoSceneSound">
if(scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == false,
videointerface_start_sound();
);
</action>
<action name="pauseVideoSceneSound">
if(scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == false,
videointerface_stop_sound();
);
</action>
<action name="preloadSounds">
preloadsound("pateaugeoire.mp3");
preloadsound("kidsclub.mp3");
preloadsound("ferme.mp3");
</action>
<action name="play3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, playpanolocalsounds();););
</action>
<action name="stop3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, stoppanolocalsounds();););
</action>
<action name="resume3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds,
set(kill3dSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound,
if(tour_current_played_video,
set(kill3dSoundOnResume, false);
);););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound,
if(tour_current_played_web_video,
set(kill3dSoundOnResume, false);
);););
if(tour_current_played_sound_pausesound,
if(tour_current_played_sound,
set(kill3dSoundOnResume, false);
););
if(kill3dSoundOnResume,
resumepanolocalsounds();
);
););
</action>
<action name="pause3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
</action>
<action name="set3DLocalSoundsVolume">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
</action>
<action name="playTourSounds">
set(tour_soundson, true);events.dispatch(playtoursoundsevent);
resumeTourSoundsActions(true,true,true,true,true);
</action>
<action name="stopTourSounds">
set(tour_soundson, false);events.dispatch(stoptoursoundsevent);
pauseTourSoundsActions(true,true,true,true,true);
</action>
<action name="setTourSoundsVolume">
set(tour_soundsvolume, %1);events.dispatch(changetoursoundsevent);
div(volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volume, get(volume));
set3DLocalSoundsVolume();
</action>
<action name="playTourSoundsActions">
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
play3DLocalSounds();
);
);
);
if(%2,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
</action>
<action name="stopTourSoundsActions">
if(%1,
stop3DLocalSounds();
);
if(%2,
stopSoundActionsSounds();
);
if(%3,
stopVideoActionsSounds();
);
if(%4,
pausebackgroundsound();
);
</action>
<action name="resumeTourSoundsActions">
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resume3DLocalSounds();
);
);
);
if(%2,
resumeSoundActionsSounds();
);
if(%3,
resumeVideoActionsSounds();
);
if(%4,
if(%5,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
,
pausebackgroundsound();
);
);
</action>
<action name="pauseTourSoundsActions">
if(%1,
pause3DLocalSounds();
);
if(%2,
pauseSoundActionsSounds();
);
if(%3,
pauseVideoActionsSounds();
);
if(%4,
if(%5,
pausebackgroundsound();
,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
);
</action>
<action name="stopSoundActionsSounds">
if (tour_current_played_sound,
delete(tour_current_played_sound_paused);
stopsound(get(tour_current_played_sound));
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
);
</action>
<action name="stopVideoActionsSounds">
if(tour_current_played_video,
if(layer[displayedStandardVideo],
layer[displayedStandardVideo].stop();
removelayer(displayedStandardVideo);
if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
delete(tour_current_played_video);
set(tour_current_played_video_state, 0);
);
);
if(tour_current_played_web_video,
displayWebVideoObjectClose();
);
</action>
<action name="resumeSoundActionsSounds">
if (tour_current_played_sound,
set(resumeSoundActionsVerification, true);
if(tour_current_played_video,
if(tour_current_played_sound_state LT tour_current_played_video_state,
set(resumeSoundActionsVerification, false);
);
);
if(resumeSoundActionsVerification,
if (tour_soundson,
if(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, false);
resumesound(get(tour_current_played_sound));
,
if(device.mobile OR device.tablet OR device.safari OR device.chrome,
set(tour_current_played_sound_paused, false);
resumesound(get(tour_current_played_sound));
);
);
);
);
);
</action>
<action name="resumeVideoActionsSounds">
if(tour_current_played_video,
set(resumeVideoActionsVerification, true);
if(tour_current_played_sound,
if(tour_current_played_video_state LT tour_current_played_sound_state,
set(resumeVideoActionsVerification, false);
);
);
if(resumeVideoActionsVerification,
if (tour_soundson,
if(device.flash OR (device.webgl AND !device.ios),
div(volume, tour_soundsvolume, 100);
set(layer[displayedStandardVideo].volume, get(volume));
,
ifnot(device.ios,
js(kpanotour.Sounds.startVideosSounds(get(volume)));
,
if(tour_soundsvolume GT 0,
set(layer[displayedStandardVideo].muted, false);
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
,
if(device.flash OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
);
);
</action>
<action name="pauseSoundActionsSounds">
if (tour_current_played_sound,
ifnot(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, true);
pausesound(get(tour_current_played_sound));
);
);
</action>
<action name="pauseVideoActionsSounds">
if(tour_current_played_video,
if(device.flash OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
</action>
</krpano>