Hi,
As far as it goes, directly give the command to ”playvideo” either at every click event or at the video completed.
here is my code.
Code
<krpano version="1.19">
<security cors="use-credentials" />
<plugin name="video" url.flash="plugins/videoplayer.swf" url.html5="plugins/videoplayer.js" videourl="video/pc/intro.mp4" pausedonstart="true" autopause="false" loop="false" volume="1.0" onloaded="set(counter, 0); set(isPlaying, true);" />
<image> <sphere url="plugin:video" /> </image>
<view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fisheye="0.35" />
<control mousetype="drag2D" /> set(rotatedirection, left); if(framemove LT 0, mul(framemove,framemove,-1); set(rotatedirection, right); );
<action name="toggle_sound"> if(plugin[video].volume === 1.0, set(plugin[video].volume, 0.0);, set(plugin[video].volume, 1.0); ); </action>
<action name="playintro"> plugin[video].play(); </action>
<action name="playthumb1"> set(plugin[video].pausedonstart, false); if(plugin[video].isvideoready === true, plugin[video].playvideo('video/pc/scene01.mp4'); ); set(counter, 1); set(isPlaying, true); </action>
<action name="playthumb2"> set(plugin[video].pausedonstart, false); if(plugin[video].isvideoready === true, plugin[video].playvideo('video/pc/scene02.mp4');
); set(counter, 2); set(isPlaying, true); </action>
Display More
Offcourse, if you do this, delay has occurred.
First, If it is possible, i'd like to acquire parameter in order to show loading animation.
Then, once loading has finished, i'd like to acquire that infomation.
Finally, based on that infomation(flag), i'd like to give the command to "action" from js(e.g. krpano.call("playintro();");).
In this way, is it possible to switch multiple different video?
Please show me loading video example.
Sorry for my poor english. Thanks in advance.