), I have finally reached (it seems
) a working code to create a progress time bar for the videoplayer plugin...|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<krpano version="1.0.8" onstart=""> <include url="videoplayer_timebar.xml" /> <plugin name="video" ... onvideoready="do_time_bar(video,video);" ... /> </krpano> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<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> |
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
!!!
: https://pame.virtualtuur.comThank's Nupsi... Sharing is a good the way to learn from others... Sowoah...that´s a nice surprise and even in xml! In times where everybody is taking money for every little thing, it´s really nice to see that there are still people willing to share. Thanks a million![]()
Best regards,
Nupsi
...Graças emediquei... I will wait your own implementationReally nice! I was just working on something similar for a project. I'll share it also once the deadline is through and I have some more time :P
I really like the recursive check_for_parents()![]()
Hi TuurHe Michel,
i have to give you a compliment for the music!!!
also for the bar offcourse
Great job!
Thanx
Tuur![]()
... ZAPPA was impressive
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »panomaster« (5. Juni 2011, 11:29)
|
|
Quellcode |
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 |
<krpano version="1.0.8"> <include url="videoplayer_timebar.xml" /> <!-- load and control the video with the videoplayer plugin --> <plugin name="video" url="videoplayer.swf" videourl="v360-mivideo.flv" onvideoready="do_time_bar(video,null,bottom,null,70%,6,0,20,false,10);" onclick="video.pause();" /> <!-- define the pano image and get the pano video from the videoplayer plugin --> <image> <sphere url="plugin:video" /> </image> <plugin name="full" url="stop.gif" keep="true" align="rightbottom" x="0" y="0" alpha="0.85" handcursor="true" scalechildren="true" visible="true" zorder="1" width="54" height="54" onclick="action(pause);" onhover="showtext(Pause);" /> <action name="pause"> video.pause(); </action> </krpano> |
|
|
Quellcode |
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 |
<krpano version="1.0.8"> <include url="videoplayer_timebar.xml" /> <!-- load and control the video with the videoplayer plugin --> <plugin name="video" url="videoplayer.swf" buffertime="4" videourl="v360-mivideo.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 parent="video"--> <image> <sphere url="plugin:video" /> </image> <plugin name="video_pause" url="stop.gif" align="leftbottom" onhover="showtext(Pause);" onclick="plugin[video].togglepause();" visible="true" /> </krpano> |

,
...Not as it is... But it is easy to modify the code to make it working for videoplayer as hotspot... If you need it, let me know...nice! will this work for distorted vidos?
Thank you Klausreally great work! and easy to use too!![]()
, it was a hard challenge for me and has been not easy at all (I was using the changeorigin(align,edge) at first), but it seems I have reached something usable at least... I hope it will work also with the new videoplayer plugin for the krpanoJS...
... And better, if some one is able to improve it, please show the result
... I just realized that your example it is also an xml codeI have made similar control panel using draggable plugins. You can watch them at http://ai360.pl/video360/2/......
... just great |
|
Quellcode |
33 34 35 36 37 38 39 40 41 42 |
<action name="stopdragging"> set(dragging, false); set(seekstop, get(plugin[seek].x)); dec(seekstop, 62); div(seekstop, 500); mul(seekstop, get(plugin[video].totaltime)); plugin[video].seek(get(seekstop)); count_forward(); trace(rozpoczynam od: , get(seekstop)); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (23. August 2011, 12:40)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »info@totzek.de« (1. Februar 2012, 11:09)