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.
reference: krpano 1.0.8 beta 6 Documentation
Quoted
new attributes:
....
- <events> - onpreviewcomplete, onloadcomplete (experimental at the moment, warning - can interfere with "onstart")
....
|
|
Source code |
1 2 3 4 5 |
<events onpreviewcomplete="action(playbutton);" />
<action name="playbutton">
hotspot[videospot].resume();
</action>
|
|
|
Source code |
1 2 3 |
... pausedonstart="true" ... |

This post has been edited 2 times, last edit by "Job.1" (Jun 25th 2009, 2:29pm)
|
|
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
<!--
krpano 1.0.8 - video-hotspot example
-->
<krpano version="1.0.8">
<!-- use the editor for moving,rotating,scaling hotspots -->
<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" />
<plugin name="options" url="%SWFPATH%/plugins/options.swf" />
<!-- text styles for startup text and onhover text -->
<textstyle name="infostyle"
origin="center" edge="center" textalign="center" yoffset="-150" background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="4.0" fadetime="1.0"
/>
<textstyle name="hoverstyle"
background="false" border="false" textalign="center"
fontsize="20" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
fadetime="0.2"
/>
<events onxmlcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);"
onpreviewcomplete="action(playbutton);"
onloadcomplete=""
/>
<!-- use only a grid preview pano to save download space ;-) -->
<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />
<action name="playbutton">
hotspot[videospot].play();
</action>
<!-- note - the url of the video must be always relative to the main krpano swf file -->
<hotspot name="videospot"
url="%SWFPATH%/plugins/videoplayer.swf"
videourl="%SWFPATH%/examples/video-hotspot/cats-short.flv"
distorted="true"
ath="0"
atv="0"
edge="center"
scale="1.0"
rx="0"
ry="0"
rz="0"
loop="true"
pausedonstart="true"
directionalsound="true"
range="110"
volume="0.7"
onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
onclick="togglepause();"
/>
</krpano>
|
|
|
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<!--
krpano 1.0.8 - video-hotspot example
-->
<krpano version="1.0.8">
<!-- use the editor for moving,rotating,scaling hotspots -->
<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" />
<plugin name="options" url="%SWFPATH%/plugins/options.swf" />
<!-- text styles for startup text and onhover text -->
<textstyle name="infostyle"
origin="center" edge="center" textalign="center" yoffset="-150" background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="4.0" fadetime="1.0"
/>
<textstyle name="hoverstyle"
background="false" border="false" textalign="center"
fontsize="20" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
fadetime="0.2"
/>
<events onloadcomplete= "showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"
/>
<!-- use only a grid preview pano to save download space ;-) -->
<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />
<action name="playbutton">
hotspot[videospot].play();
</action>
<!-- note - the url of the video must be always relative to the main krpano swf file -->
<hotspot name="videospot"
url="%SWFPATH%/plugins/videoplayer.swf"
videourl="%SWFPATH%/examples/video-hotspot/cats-short.flv"
distorted="true"
ath="0"
atv="0"
edge="center"
scale="1.0"
rx="0"
ry="0"
rz="0"
loop="true"
pausedonstart="true"
directionalsound="true"
range="110"
volume="0.7"
onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
onclick="togglepause();"
/>
</krpano>
|
|
|
Source code |
1 2 |
<events onloadcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);"
/>
|
|
|
Source code |
1 2 |
<events onxmlcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);"
/>
|
this is why onloadcomplete does not work on my example... there is no <image /> on it
Quoted
maybe you mean - "onloadcomplete" - this will be called when the loading of the images was done![]()
--- EndThis post has been edited 1 times, last edit by "michel" (Jul 1st 2009, 8:55pm)
|
|
Source code |
1 |
onloadcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);" |
This post has been edited 1 times, last edit by "michel" (Jun 25th 2009, 3:23pm)
|
|
Source code |
1 |
<events onloadcomplete= "showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"/> |
|
|
Source code |
1 |
<events onxmlcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"/> |
|
|
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<!-- krpano 1.0.8 - video-hotspot example --> <krpano version="1.0.8"> <!-- use the editor for moving,rotating,scaling hotspots --> <plugin name="editor" url="%SWFPATH%/plugins/editor.swf" /> <plugin name="options" url="%SWFPATH%/plugins/options.swf" /> <!-- text styles for startup text and onhover text --> <textstyle name="infostyle" origin="center" edge="center" textalign="center" yoffset="-150" background="false" border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="4.0" fadetime="1.0" /> <textstyle name="hoverstyle" background="false" border="false" textalign="center" fontsize="20" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" fadetime="0.2" /> <events onloadcomplete= "showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);" /> <!-- use only a grid preview pano to save download space ;-) --> <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" /> <action name="playbutton"> hotspot[videospot].resume(); </action> <!-- note - the url of the video must be always relative to the main krpano swf file --> <hotspot name="videospot" url="%SWFPATH%/plugins/videoplayer.swf" videourl="%SWFPATH%/examples/video-hotspot/cats-short.flv" distorted="true" ath="0" atv="0" edge="center" scale="1.0" rx="0" ry="0" rz="0" loop="true" pausedonstart="true" directionalsound="true" range="110" volume="0.7" onhover="if(ispaused, showtext(click to play), showtext(click to pause));" onclick="togglepause();" /> </krpano> |
|
|
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<!-- krpano 1.0.8 - video-hotspot example --> <krpano version="1.0.8"> <!-- use the editor for moving,rotating,scaling hotspots --> <plugin name="editor" url="%SWFPATH%/plugins/editor.swf" /> <plugin name="options" url="%SWFPATH%/plugins/options.swf" /> <!-- text styles for startup text and onhover text --> <textstyle name="infostyle" origin="center" edge="center" textalign="center" yoffset="-150" background="false" border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="4.0" fadetime="1.0" /> <textstyle name="hoverstyle" background="false" border="false" textalign="center" fontsize="20" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" fadetime="0.2" /> <events onxmlcomplete= "showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);" /> <!-- use only a grid preview pano to save download space ;-) --> <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" /> <action name="playbutton"> hotspot[videospot].resume(); </action> <!-- note - the url of the video must be always relative to the main krpano swf file --> <hotspot name="videospot" url="%SWFPATH%/plugins/videoplayer.swf" videourl="%SWFPATH%/examples/video-hotspot/cats-short.flv" distorted="true" ath="0" atv="0" edge="center" scale="1.0" rx="0" ry="0" rz="0" loop="true" pausedonstart="true" directionalsound="true" range="110" volume="0.7" onhover="if(ispaused, showtext(click to play), showtext(click to pause));" onclick="togglepause();" /> </krpano> |