video distorted hotspot,.. freezing thumb plugins and combobox

  • Hi all,

    I'm sure my problem is in my coding and not a bug. I have a 6 node tour,...3 have distorted hotspots. With my original code all worked fine,..but I wanted to have my sounds to begin immediatley.I moved my sounds to onstart from onload and began to experience problems with my thumbs and combo box. Upon clicking them they would no longer load the called panos and all would freeze,...the thumbs, combo box and video. The control buttons would still work. Any insights would be appreciated. I'm attempting to have my sounds play at start, and play as the pano rotates 360, then the pano looks to the hotspot and the distorted video hotspot plays. With the changed code my combo box and thumbnails are being rendered useless and everthing i try is not solving the issue.

    ORIGINAL WORKING CODE

    <krpano version="1.0.8">
    <events onloadcomplete="plugin[combobox].selectitem(Mega Stretch);playsound2D(star,starship/megadata/sounds/sound0.mp3,1,0,1,action(startmovie))"/>

    <hotspot name="spot0" onvideocomplete="set(hotspot[videoplay].visible,true);set(autorotate.enabled,true);" handcursor="false" loop="1" visible="false" pausedonstart="true" url="megadata/graphics/videoplayer.swf" videourl="megadata/graphics/spots/spot0.flv" onclick="togglepause()" distorted="true" ath="165.998" atv="0.571728" width="32" height="19" rx="0.000599557" ry="0.00027698" rz="0.0185064"/>

    <action name="start">

    hotspot[spot0].play()
    action
    </action>

    <action name="startmovie">

    moveto(166.868,0.571728,linear(10));
    zoomto(20.91);
    set(hotspot[spot0].visible,true);
    hotspot[spot0].play();
    set(autorotate.enabled,false);set(hotspot[autorotationon].visible,true
    </action>

    <hotspot name="videoplay" zorder="11" visible="false" handcursor="true" url="playvideo.png" onclick="set(hotspot[videoplay].visible,false);action(startmovie);" ath="526." atv="0.4072714" width="30" height="30"/>


    CHANGED PROBLEM CODE

    <krpano version="1.0.8" onstart="playsound(pass,passengercoach/passengercoachdata/sounds/sound0.mp3,1,);">
    <events onloadcomplete="plugin[combobox].selectitem(Passenger Coach);delayedcall(50,action(startmovie))"/>

    <hotspot name="spot0" zorder="11" borderwidth="15" bordercolor="0xFFFFFF" onvideocomplete="set(hotspot[videoplay].visible,true);set(autorotate.enabled,true);" handcursor="false" loop="1" visible="true" pausedonstart="true" url="passengercoachdata/graphics/videoplayer.swf" videourl="passengercoachdata/graphics/spots/spot0.flv" onclick="togglepause()" distorted="true" ath="-97.3297" atv="-23.303398" width="220" height="167" rx="-25.00" ry="3.000" rz="1.5"/>

    <action name="startmovie">

    moveto(-91.649,-2.1429,linear(10));
    set(hotspot[spot0].visible,true);
    hotspot[spot0].playvideo(spot0.flv);
    set(autorotate.enabled,false);set(hotspot[autorotationon].visible,true;
    </action>

    <hotspot name="videoplay" zorder="11" visible="false" handcursor="true" url="passengercoachdata/playvideo.png" onclick="set(hotspot[videoplay].visible,false);action(startmovie);" ath="261.649" atv="-23.1429" width="30" height="30"/>
    </krpano>


    thumb and combo box code

    <plugin name="comboboxbox" align="righttop" x="5" y="5" children="true" keep="true" visible="true" url="lindseydata/graphics/comboboxbox.png" height="56" width="220"/>
    <plugin name="combobox" url="lindseydata/graphics/combobox.swf" keep="true" zorder="2" align="righttop" x="15" y="30"/>
    <action name="combobox:All Weather/SUV">stopallsounds();loadpano(suv/suv.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Super Stretch">stopallsounds();loadpano(super/super.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Passenger Coach">stopallsounds();loadpano(passengercoach/passengercoach.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Mega Stretch">stopallsounds();loadpano(starship/mega.xml,NULL,NULL,BLEND(1))</action>
    <action name="combobox:Luxury Coach">stopallsounds();loadpano(luxurycoach/luxury.xml,NULL,NULL,BLEND(1));;</action>
    <action name="combobox:Executive Sedan">stopallsounds();loadpano(sedan/sedan.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Multi-Passenger Van">stopallsounds();loadpano(van/van.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Super Stretch Sofa">stopallsounds();loadpano(meg/meg.xml,NULL,NULL,BLEND(1));</action>

    <plugin name="slide" keep="true" zorder="1" url="lindseydata/graphics/slide.png" visible="true" enabled="true" handcursor="false" capture="false" children="true" alpha="0.9" blendmode="normal" smoothing="true" x="0" y="0" scale="1" align="left" edge="right" width="12%" height="100%" onloaded="action(slide_action_in)"/>
    <plugin name="thumbArray" keep="true" zorder="1" url="lindseydata/graphics/transparent.png" visible="true" enabled="true" handcursor="false" capture="false" children="true" alpha="0.9" blendmode="normal" smoothing="true" x="0" y="0" scale="1" align="left" edge="right" ox="0" oy="0" width="12%" height="80%" rotate="0"/>
    <plugin name="strap" keep="true" zorder="1" url="lindseydata/graphics/strap.png" parent="thumbArray" scale="1" align="right" edge="left" alpha="1.0" handcursor="true" onclick="action(slide_action_out)"/>
    <plugin name="strapArrow" keep="true" parent="strap" zorder="1" url="lindseydata/graphics/arrow.png" align="center" edge="center" capture="false"/>
    <plugin name="lindsey1" keep="true" zorder="13" url="lindseydata/lindsey1/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="19.1011%" alpha="0.8" onclick="stopallsounds();loadpano(sedan/sedan.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey1);" onhover="showtext(Executive Sedan,DEFAULT);" onout="action(lie,lindsey1);"></plugin>
    <plugin name="lindsey2" keep="true" zorder="13" url="lindseydata/lindsey2/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="31.4607%" alpha="0.8" onclick="stopallsounds();loadpano(van/van.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey2);" onhover="showtext(Multi-Passenger Van,DEFAULT);" onout="action(lie,lindsey2);"></plugin>
    <plugin name="lindsey3" keep="true" zorder="13" url="lindseydata/lindsey3/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="43.8202%" alpha="0.8" onclick="stopallsounds();loadpano(super/super.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey3);" onhover="showtext(Super Stretch,DEFAULT);" onout="action(lie,lindsey3);"></plugin>
    <plugin name="lindsey4" keep="true" zorder="13" url="lindseydata/lindsey3/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="56.1798%" alpha="0.8" onclick="stopallsounds();loadpano(meg/meg.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey4);" onhover="showtext(Super Stretch Sofa,DEFAULT);" onout="action(lie,lindsey4);"></plugin>
    <plugin name="lindsey5" keep="true" zorder="13" url="lindseydata/lindsey5/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="68.5393%" alpha="0.8" onclick="stopallsounds();loadpano(passengercoach/passengercoach.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey5);" onhover="showtext(Passenger Coach,DEFAULT);" onout="action(lie,lindsey5);"></plugin>
    <plugin name="lindsey6" keep="true" zorder="13" url="lindseydata/lindsey6/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="80.8989%" alpha="0.8" onclick="stopallsounds();loadpano(luxurycoach/luxury.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey6);" onhover="showtext(Luxury Coach,DEFAULT);" onout="action(lie,lindsey6);"></plugin>
    <plugin name="lindsey0" keep="true" zorder="13" url="lindseydata/lindsey0/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="93.2584%" alpha="0.8" onclick="stopallsounds();loadpano(suv/suv.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey7);" onhover="showtext(All Weather/SUV,DEFAULT);" onout="action(lie,lindsey7);"></plugin>
    <plugin name="lindsey7" keep="true" zorder="13" url="lindseydata/lindsey4/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="106.2584%" alpha="0.8" onclick="stopallsounds();loadpano(starship/mega.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey7);" onhover="showtext(Starship 2000 Mega Stretch,DEFAULT);" onout="action(lie,lindsey7);"></plugin>

    thanks

    rob

  • this code seems to be working somewhat now,...

    <krpano version="1.0.8" onstart="playsound2D(star,starship/megadata/sounds/sound0.mp3,1,0,1,action(startmovie))">

    I am am still experiencing problems with the startmovie action,...sometimes the action will fully exexcute other times only partially, as it will freeze in differnet spots of the action,....is this a bug or poor code????

    <action name="startmovie">

    moveto(166.868,0.571728,linear(10));
    zoomto(20.91);
    set(hotspot[spot0].visible,true);
    hotspot[spot0].play();
    set(autorotate.enabled,false);set(hotspot[autorotationon].visible,true

    </action>

Participate now!

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