Is it possible to use video as intro to panorama ?
Check: http://www.bergans.no/#/panorama/
Bad pano, and viewer but great idea.
Is it possible to use video as intro to panorama ?
Check: http://www.bergans.no/#/panorama/
Bad pano, and viewer but great idea.
i think it's easy..
i do the same with flash intro..
you can load the pano but hide the area.. play that video (time it ) set a wait and let the area come.. when wanted..
here example without area
<krpano version="1.0.8" onstart="intro();">
<plugin name="ilovekrpano" url="ilovekrpano.swf" visible="false" align="center" keep="true" height="prop" width="60%" alpha="1" zorder="100"/>
<display fps="20" />
<action name="intro" >
set(plugin[ilovekrpano].visible,true);
wait(2);
tween(plugin[ilovekrpano].alpha,0,0.5);
load1();
set(plugin[ilovekrpano].visible,false);
set(display.fps,60);
</action>
<action name="load1">
loadpano(3.xml,null,MERGE,BLEND(1));
</action>
</krpano>
Display More
this is a short flash animation taht was running to fast because of the FPS.. but with a video you can do the same..
-set area 0
-loadpano
-set video
- when finished set area
etc
hope this helps
Tuur ![]()
so
<action name="intro">
set(area.y, 0);
set(area.height, 00%);
set(area.width, 0%);
set(area.x, 0%);
- load pano
- play video
- time wait(10)
- tween or set area
</action>
Hi,
I'd just like to know how to set a wait function for my video, before playing ?
I've tried the buffertime, proposed by klaus in an other topic about a jittery video, it didn't work. Wherever i put a wait function, action, events, even in the hotspot itself, it locks the navigation but not the video!?
or
or
Thanks. ![]()
Thanks again for the time you spend to answer to the beginners klaus ! But it doesn't work with me..
Here the code
<action name="playbutton">
delayedcall(10, hotspot[video].resume());
</action>
...
<scene name="scene_light_+2" title="light_+2" onstart="wait(LOAD); moveto(97.497,23.698, linear(10))" thumburl="light_+2.tiles/thumb.jpg">
<plugin name="videoplayer" url="%SWFPATH%/plugins/videoplayer.swf" keep="true" />
<view hlookat="141.23" vlookat="22.91" fovtype="MFOV" fov="100" maxpixelzoom="" fovmin="35" fovmax="100" />
<preview url="light_+2.tiles/preview.jpg" />
<events onloadcomplete="playbutton();" />
<image>....
<hotspot name="video"
url="plugins/videoplayer.swf"
videourl="bouee-video.flv"
width="800"
height="600"
visible="true"
enabled="true"
handcursor="true"
capture="true"
children="true"
ath="12"
atv="10"
origin=""
edge=""
scale="0.5"
rx="0" ry="0" rz="0"
distorted="true"
pausedonstart="false"
buffertime=""
loop="false"
volume="0.7"
directionalsound="true"
range="120"
onloaded=""
onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
onclick="togglepause();"
onvideocomplete="set(visible,false);"
/>
Display More
Thanks. Best wishes. ![]()
Hi,
set - "pausedonstart" to "true" - otherwise the video will start at the begin,
best regards,
Klaus
Hi Klaus,
Best wishes to start.. Sorry to thank you only now, i was off for a month.
It works! You just go over with the mouse to start. Where can i set this function in the code (for example to wait for a click on it before starting) ?
Thanks again.
Hi Klaus ,
can you please answer Where can i set this function in the code (for example to wait for a click on it before starting) ?
Thank you
See the example-code from esys:
pausedonstart="false"
onclick="togglepause();"
but instead of false you set true for the pausendonstart-tag. The onclick-tag toggles the pause with every click on the video.
Best regards,
Nupsi
Don’t have an account yet? Register yourself now and be a part of our community!