Hi all,
After a lot of scratching the head (I was using the changeorigin(align,edge) before I realized it was not a good way to do
), I have finally reached (it seems
) a working code to create a progress time bar for the videoplayer plugin...
To make it working, you have to include the videoplayer_timebar.xml file and call the do_time_bar() for example from the onvideoready event of the videoplayer plugin:
<krpano version="1.0.8" onstart="">
<include url="videoplayer_timebar.xml" />
<plugin name="video"
...
onvideoready="do_time_bar(video,video);"
...
/>
</krpano>
Display More
There is some explanation inside the videoplayer_timebar.xml file.
Here some examples online: ex_1 - ex_2 - ex_3
Hope you like it... Comments, examples use, improvements are well come...
@ BBomber
here a code for video 360:
<krpano version="1.0.8">
<include url="videoplayer_timebar.xml" />
<!-- load and control the video with the videoplayer plugin -->
<plugin name="video"
url="%SWFPATH%/plugins/videoplayer.swf"
videourl="video360.flv"
onvideoready="do_time_bar(video,null,bottom,null,70%,6,0,20,false,10);"
/>
<!-- define the pano image and get the pano video from the videoplayer plugin -->
<image>
<sphere url="plugin:video" />
</image>
</krpano>
Display More
SAlut.