si cela ne marche toujours pas c'est que tu n'a pas le bon krpano.swf ou j'y perd mon latin
how to start video once the VR is fully loaded ?
-
-
No change ...
-
-
Press O key:
INFO: krpano 1.0.8 beta 8 (build 2009-06-15)
INFO: Flashplayer WIN 10,0,22,87 PlugInDe quoi en perdre au moins son latin
-
regarde le post au dessus
sinon essayes de faire marcher la vidéo normalement et ensuite tu inclues et code comme préciser au début du post
-
Bon désolé mais je parts en reportage, la suite lundi A+
-
Hi,
No Job.1... like I say before all the code is the one in the example that comes with Krpano !!!!
video-hotspot.xml, ect...
The video play just fine when I use the example as is -
Ok ... A lundi alors. Merci.
-
Hi, michel
all is right now ?
-
Hi Job.1,
The only all right it is that you comes back
Resumed:
I use the example that comes with Krpano as the base --- krpano-1.0.8-beta8\examples\video-hotspot
I put the pausedonstart="true"
I add your action script to the xml <action name="playbutton">hotspot[videospot].resume();</action>
I add the events attribute onpreviewcomplete="action(playbutton);"
like this:Code
Display More<!-- 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);" /> <!-- 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>
Result:
the video does not play at start and the debugger say WARNING: unknown action command: hotspot[videospot].resumeThen I change the
sceneevents attribute onpreviewcomplete="action(playbutton);" to onloadcomplete="action(playbutton);"
Result:
the video does not play at start and the debugger say nothing in particularThen I erase the
sceneevents attribute onloadcomplete="action(playbutton);" and I add the action to the attribute onxmlcomplete because I am sure that this attribute is working because it displays the showtext();
The event code then is ---- onxmlcomplete= "showtext(krpano[br]video hotspot example, infostyle);action(playbutton);"
Result:
the video does not play at start and the debugger say WARNING: unknown action command: hotspot[videospot].resumeTo make more try, I change all the onxmlcomplete attribute to onloadcomplete
like this ----- onloadcomplete= "showtext(krpano[br]video hotspot example, infostyle);action(playbutton);"
Result:
the video does not play at start, the debugger say nothing in particular and the showtext(krpano[br]video hotspot example, infostyle); is not executed It seems the onloadcomplete attribute dos not work for meI use:
INFO: krpano 1.0.8 beta 8 (build 2009-06-15)
INFO: Flashplayer WIN 10,0,22,87 PlugInVidoplayer Plugin (Built 2009-6-15)
That made a long time that I lost my Latin
Salut.
-
Me too
-
Hi Job.1,
I have erased the action(playbutton); from the events attributes....
I add a play_button plugin that execute the action(playbutton); on click....
Result:
The video plays when onclick event from the play_button and the debugger say nothing in particularconclusion:
1.the action works as expected and the videoplayer works as expected.
2.It seems there is some issue with the events attribute.I noticed that in your example http://www.visionrhd.com/site/video/bar.html you do not use events attributes to call the action to play de video the action to play de video is executed when your info plugin is clicked... then it is normal that it plays like expected. No events attribute are used
But, then I do not understand why it is working for Benjamin how to start video once the VR is fully loaded ?
What do you think about this?
Salut,
-
I noticed that in your example http://www.visionrhd.com/site/video/bar.html you do not use events attributes to call the action to play de video the action to play de video is executed when your info plugin is clicked... then it is normal that it plays like expected. No events attribute are usedBut, then I do not understand why it is working for Benjamin how to start video once the VR is fully loaded ?
What do you think about this?
Salut,
yes but before this one, it's working on the events
-
-
Hi Job.1,
I tried but the result is:
the video does not play at start and the Debugger say: WARNING: unknown action command: hotspot[videospot].resumeI tried to put the wait(blend); into the events attribute ( I erased it on the Krpano Onstart ):
onxmlcomplete= "showtext(krpano[br]video hotspot example, infostyle); wait(blend); action(playbutton);"
the result is idem as above.note: There is not a lot to wait on the video-hotspot example...
It remains one hair on my head.
Merci pour ta patience , Salut.
-
I make one working and put in on web
-
http://www.job-360.fr/test/test.html
I think I get the solution the path of video
-
cooollll
OT: he Job, i was wondering about your loader.. i can imagine ho you make that but what when you do a multires .. will your logo also come again everytime or just the bar..
will you share xml for this??
Thanx
Tuur
-
I not try with multires with this kind of loader, but I think it's possible if you put [<events onpreviewcomplete="set(plugin[load].visible,false);hideprogressbar" />]
her the code of the pano
Code
Display More<krpano version="1.0.8"onstart="wait(blend);"> <progress showload="bar(center,250,3,0,5%,0, 0x25b5b8,0x682081,0x666666)" /> <progress showwait="none"/> <plugin name="load" url="load.png" zorder="1" autopos="center,-2,28" visible="true" /> <events onpreviewcomplete="set(plugin[load].visible,false);action(playbutton);" /> <view hlookat="270" vlookat="0" fov="90" fovmin="50" fovmax="150" /> <textstyle name="DEFAULT" font="Tahoma" fontsize="12" border="false" background="false" textcolor="0x25b5b8" effect="glow(0x682081,0.7,4,2);dropshadow(2,45,0x682081,3,1);" /> <textstyle name="hotspotstyle" font="Tahoma" fontsize="12" border="false" background="false" textcolor="0x25b5b8" effect="glow(0x682081,0.7,4,2);dropshadow(4,45,0x682081,4,1);" /> <preview type="sphere" url="img/bar/bar.jpg" details="8" /> <image type="CUBE" tilesize="auto"> <left url="img/bar/bar_l.jpg" rotate="0" flip="" /> <front url="img/bar/bar_f.jpg" rotate="0" flip="" /> <right url="img/bar/bar_r.jpg" rotate="0" flip="" /> <back url="img/bar/bar_b.jpg" rotate="0" flip="" /> <up url="img/bar/bar_u.jpg" rotate="0" flip="" /> <down url="img/bar/bar_d.jpg" rotate="0" flip="" /> </image> <hotspot name="videospot" url="../plugins/videoplayer.swf" keep="false" ath="-45.82669292753417" atv="-21.69061464290857" zoom="false" distorted="true" width="320" height="180" scale="1.1339506501468726" scale9grid="" scalechildren="false" rotate="0" rx="-20.8125" ry="60.01249999999999" rz="-1.204283081766899" edge="center" ox="" oy="" crop="" ondowncrop="" onovercrop="" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" refreshrate="auto" onloaded="" onover="" onhover="showtext(© Jean Louis Mourey Peugeot Automobiles);" onout="" ondown="" onup="" onclick="togglepause();" buffertime="0.1" directionalsound="true" ismovie="true" ispaused="" loop="true" onvideocomplete="" pausedonstart="true" range="300" updateeveryframe="true" videourl="test/film2.flv" volume="1" /> <action name="playbutton"> hotspot[videospot].resume(); hotspot[videospot1].resume(); hotspot[videospot2].resume(); </action> </krpano>
-
Hi Job.1,
Ok... Your example works
Then I do not understand why my own do not.I am going to upload them to my web site.... to test purpose... perhaps I am a little bit crazy.
Salut.
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!