Tour Link:
https://www.i-zombie.com/BP/Tour.html
in Safari and Chrome - when the tour link loads the music for the first scene is not playing (and it should be). but, if i click anywhere on the tour - the music starts playing. i want it to load when the link is clicked because there is no instruction that anyone would know that they need to click on the screen first. some people may just sit there as it auto-rotates and never know there is sound.
is there a way to have the first pano (front of barn) start playing the music when the page loads instead of when someone clicks on the pano.
for some reason it works correctly in Firefox but not the other two that i have. i don't know if there is some magic code that will force the first scene's mp3 file to play on load.
______________________________________
second question - the first and last panos have the gyro working and it shows up in the menu bar at the bottom. but the middle two panos don't. the gyro option is missing on those. any idea why?
the only thing different that i did was add a 'vlookatmax' and changed the 'limitview' to limitview="range" on those. here is the xml:
<krpano version="1.20.7" title="Virtual Tour">
<include url="skin/vtourskin.xml" />
<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
<skin_settings maps="false"
maps_type="google"
maps_bing_api_key=""
maps_google_api_key=""
maps_zoombuttons="false"
maps_loadonfirstuse="false"
gyro="true"
gyro_keeplookingdirection="false"
webvr="false"
webvr_keeplookingdirection="false"
webvr_prev_next_hotspots="false"
autotour="false"
littleplanetintro="false"
followmousecontrol="false"
title="true"
thumbs="true"
thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
thumbs_opened="false"
thumbs_text="false"
thumbs_dragging="true"
thumbs_onhoverscrolling="false"
thumbs_scrollbuttons="false"
thumbs_scrollindicator="false"
thumbs_loop="false"
tooltips_buttons="false"
tooltips_thumbs="false"
tooltips_hotspots="false"
tooltips_mapspots="false"
deeplinking="false"
loadscene_flags="MERGE"
loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
loadingtext="loading..."
layout_width="100%"
layout_maxwidth="814"
controlbar_width="-24"
controlbar_height="40"
controlbar_offset="20"
controlbar_offset_closed="-40"
controlbar_overlap.no-fractionalscaling="10"
controlbar_overlap.fractionalscaling="0"
design_skin_images="vtourskin.png"
design_bgcolor="0x2D3E50"
design_bgalpha="0.8"
design_bgborder="0"
design_bgroundedge="1"
design_bgshadow="0 4 10 0x000000 0.3"
design_thumbborder_bgborder="3 0xFFFFFF 1.0"
design_thumbborder_padding="2"
design_thumbborder_bgroundedge="0"
design_text_css="color:#FFFFFF; font-family:Arial;"
design_text_shadow="1"
/>
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url.flash="%VIEWER%/plugins/soundinterface.swf"
url.html5="%VIEWER%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'https://www.i-zombie.com/BP/sound/Cemetery.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
</action>
<scene name="scene_1-BF" title="Front of Barn" onstart="" thumburl="panos/1-BF.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="342.0" vlookat="4.0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmin="70" fovmax="100" limitview="auto" />
<autorotate enabled="true" waittime="5.0" speed="4.0" horizon="4.0" tofov="90" />
<preview url="panos/1-BF.tiles/preview.jpg" />
<image>
<cube url="panos/1-BF.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2688" />
</image>
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url.flash="%VIEWER%/plugins/soundinterface.swf"
url.html5="%VIEWER%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'https://www.i-zombie.com/BP/sound/Cemetery.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
</scene>
<scene name="scene_2-Mummy" title="Mummy's Tomb" onstart="" thumburl="panos/2-Mummy.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="22" vlookat="20.0" vlookatmax="67" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmin="70" fovmax="110" limitview="range" />
<autorotate enabled="true" waittime="5.0" speed="4.0" horizon="20.0" tofov="100" />
<preview url="panos/2-Mummy.tiles/preview.jpg" />
<image>
<cube url="panos/2-Mummy.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664,3200" />
</image>
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url.flash="%VIEWER%/plugins/soundinterface.swf"
url.html5="%VIEWER%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'https://www.i-zombie.com/BP/sound/Mummy.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
</scene>
<scene name="scene_3-Frank2" title="Frank's Lab" onstart="" thumburl="panos/3-Frank2.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="183" vlookat="22.0" vlookatmax="67" fovtype="MFOV" fov="95" maxpixelzoom="1.0" fovmin="70" fovmax="110" limitview="range" />
<autorotate enabled="true" waittime="5.0" speed="4.0" horizon="22.0" tofov="95" />
<preview url="panos/3-Frank2.tiles/preview.jpg" />
<image>
<cube url="panos/3-Frank2.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2624" />
</image>
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url.flash="%VIEWER%/plugins/soundinterface.swf"
url.html5="%VIEWER%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'https://www.i-zombie.com/BP/sound/Frank.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
</scene>
<scene name="scene_4-BR" title="Rear of Barn" onstart="" thumburl="panos/4-BR.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="165" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmin="70" fovmax="100" limitview="auto" />
<autorotate enabled="true" waittime="5.0" speed="4.0" horizon="4.0" tofov="90" />
<preview url="panos/4-BR.tiles/preview.jpg" />
<image>
<cube url="panos/4-BR.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2688" />
</image>
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url.flash="%VIEWER%/plugins/soundinterface.swf"
url.html5="%VIEWER%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'https://www.i-zombie.com/BP/sound/Cemetery.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
</scene>
</krpano>
Alles anzeigen
please let me know and thanks in advance!