Unable add a lot of hotspots with the video on the panorama

  • I need to add 40 hotspots with video files (each flv file 5-8 Mb) on the panorama. I added them, but as a result the browser could not load the panarama. I see that when loading panorama during parsing xml file, it tries to open all spots files with the video (spots/object0.flv .... spots/object38.flv). how can disable to opening video files of the spots during start panorama (parsing xml file)?

    sample code with hotspots:

    <hotspot name="spot2" onclick="closeglobalobjects();closeallobjects();set(plugin[spot2object].visible,true);tween(plugin[spot2object].alpha, 1);plugin[spot2object].play();" bordercolor="0xffffff" borderalpha="0" fillcolor="0xffffff" fillalpha="0" bordercolorhover="0xffffff" borderalphahover="0" fillcolorhover="0xffffff" fillalphahover="0" >
    <point ath="-127.428" atv="8.1946"/>
    <point ath="-127.286" atv="12.429"/>
    <point ath="-121.113" atv="13.867"/>
    <point ath="-121.532" atv="9.442"/>
    </hotspot>
    <plugin name="spot2object" visible="false" url="virtualtourdata/graphics/videoplayer.swf" videourl="virtualtourdata/graphics/spots/object0.flv" pausedonstart="true" align="center" alpha="0" onclick="closespot2object();" width="prop" height="70%"/>
    <action name="closespot2object">
    if(plugin[spot2object].visible,
    closeglobalobjects();
    tween(plugin[spot2object].alpha, 0);
    delayedcall(0.5,set(plugin[spot2object].visible,false));
    plugin[spot2object].stop();
    );
    </action>

    .................................

    <hotspot name="spot40" onclick="closeglobalobjects();closeallobjects();set(plugin[spot40object].visible,true);tween(plugin[spot40object].alpha, 1);plugin[spot40object].play();" bordercolor="0xffffff" borderalpha="0" fillcolor="0xffffff" fillalpha="0" bordercolorhover="0xffffff" borderalphahover="0" fillcolorhover="0xffffff" fillalphahover="0" >
    <point ath="-135.732" atv="31.485"/>
    <point ath="-134.971" atv="32.684"/>
    <point ath="-121.835" atv="23.715"/>
    <point ath="-122.406" atv="24.816"/>
    </hotspot>
    <plugin name="spot40object" visible="false" url="virtualtourdata/graphics/videoplayer.swf" videourl="virtualtourdata/graphics/spots/object38.flv" pausedonstart="true" align="center" alpha="0" onclick="closespot40object();" width="prop" height="70%"/>
    <action name="closespot40object">
    if(plugin[spot40object].visible,
    closeglobalobjects();
    tween(plugin[spot40object].alpha, 0);
    delayedcall(0.5,set(plugin[spot40object].visible,false));
    plugin[spot40object].stop();
    );
    </action>

  • I tried to do this, but the video not work

    <plugin name="spot40object" visible="false" url="virtualtourdata/graphics/videoplayer.swf" videourl="" pausedonstart="true" align="center" alpha="0" onclick="closespot40object();" width="prop" height="70%"/>

    <events onloadcomplete="set(plugin[spot40object].videourl,virtualtourdata/graphics/spots/object38.flv);" />

    if change onloadcomplete to onxmlcomplete the video is working, but it open at load panorama also

    <events onxmlcomplete="set(plugin[spot40object].videourl,virtualtourdata/graphics/spots/object38.flv);" />

  • the video spots is working with such code:


    Code
    <plugin name="spot40object" visible="false"  pausedonstart="true" align="center" alpha="0" onclick="closespot40object();" width="prop" height="70%"/> 
     
    <events  onloadcomplete="
    set(plugin[spot40object].url,virtualtourdata/graphics/videoplayer.swf); 
    set(plugin[spot40object].videourl,virtualtourdata/graphics/spots/object38.flv);
    " />


    but the panorama downloads all video files (spots/object0.flv .... spots/object38.flv) during start again. and the ie browser crashes again.

    how can disable to downloading video files of the spots during start panorama? or is there other idea? caching and preload video files?

  • Hi,

    loading and playing 40 videos at the same is a bit much...

    Why not working this way:
    - show only thumbnails as hotspots
    - load the video only when clicking on the hotspot
    - when stopping the video or showing an other video, remove the current one

    This way you would load and play only one, from resource-design perspective this would be much better.

    Best regards,
    Klaus

Participate now!

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