Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<hotspot name="door3"
url="door3.jpg"
alturl="door3.jpg"
distorted="true"
ath="-90.0" atv="0.0"
width="130"
height="344.09"
edge="lefttop"
ox="-37.27"
oy="-167.73"
onclick="looktohotspot(); loadxml(null,null,KEEPALL,blend(2));wait(blend);startvideoscene();"
/>
<plugin name="video"
url="video/videoplayer.swf"
visible="false"
alturl="video/videoplayer.js"
videourl="video/introroh.m4v"
altvideourl="video/introroh.m4v"
posterurl="video/dummy.jpg"
align="center" x="0" y="0"
pausedonstart="true"
loop="false"
volume="0.0"
buffertime="0.1"
updateeveryframe="false"
onvideoready=""
onvideocomplete="loadscene(inside)"
onunsupported=""
onclick=""
/>
<action name="startvideoscene">
set(plugin[video].visible,true);
set(plugin[video].volume,1.0);
delayedcall(1, plugin[video].resume() );
</action>
|
DEALING WITH VIDEO IN PANOS ON THE IPAD IS SOOOO FRUSTRATING !!!!
). However, I do have a tip about the sound as the video loads. I always set my video volume at 0 and have an action to set it to 1 at some point after the pano has loaded.|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<hotspot name="video"
url="video/videoplayer.swf"
visible="true"
enabled="true"
distorted="true"
ath="-90.0" atv="0.0"
width="290.91"
height="163.64"
edge="lefttop"
ox="-145.45"
oy="-81.82"
alturl="video/videoplayer.js"
videourl="video/introroh.m4v"
altvideourl="video/introroh.m4v"
posterurl="video/door.jpg"
zorder="99"
alpha="1"
pausedonstart="true"
loop="false"
volume="0.1"
buffertime="0.1"
updateeveryframe="false"
onvideoready=""
onvideocomplete=""
onunsupported=""
onclick="set(plugin[schwarz].visible,true); tween(plugin[schwarz].alpha,1.0,1,easeoutquad,wait); tween(hotspot[video].flying, 1.0, 0.5, default); tween(hotspot[video].width, 640); tween(hotspot[video].height, 360); tween(hotspot[video].ox, -320);
tween(hotspot[video].oy, -180); resume(); "
/>
<plugin name="schwarz"
url="video/schwarz.jpg"
visible="false"
enabled="false"
width="100%"
height="100%"
align="center" x="0" y="0"
alpha="0"
zorder="0"
/>
|
This post has been edited 1 times, last edit by "jschrader" (Oct 2nd 2011, 10:51pm)
In the meantime I solved this issue by using a black hotspot instead of a plugin.
Which needs a bit more code, but anything else would obviously be too easy - *sigh*.
negative zorder are only available at the flash player
The trick is to have the video invisibly intergrated using the posterurl and when clicked make it "flying" to release it from rotating with the pano.
I also found that the flying attribute(?) isn't even documented in krpano documentation, one has to look at the flyout more hotspots example to find out about it.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<plugin name="spot0object" zorder="2" url="videoplayer.swf"
alturl="videoplayer.js" pausedonstart="false" loop="false" keep="true" videourl="spots/Eric_Chauvin_Intro_01.mp4" altvideourl="spots/Eric_Chauvin_Intro_01.mp4" align="center" x="0" y="0" width="100%" height="prop" alpha="1"
onclick="tween(volume,0.0,2);tween(alpha,0,5);delayedcall(10,set(visible,false))"
onvideocomplete="tween(alpha,0,5);delayedcall(10,set(visible,false));set(volume,0.5);delayedcall(5,set(volume,0.1));delayedcall(8,set(volume,0.0));"
capture="false" preload="true"/>
|
I also found that the flying attribute(?) isn't even documented in krpano documentation, one has to look at the flyout more hotspots example to find out about it.