You are not logged in.

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.

21

Thursday, June 25th 2009, 4:16pm

si cela ne marche toujours pas c'est que tu n'a pas le bon krpano.swf ou j'y perd mon latin

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

22

Thursday, June 25th 2009, 4:22pm

No change ... *whistling*

23

Thursday, June 25th 2009, 4:22pm

Ton

Source code

1
videourl="%SWFPATH%/examples/video-hotspot/cats-short.flv"
me semble bizarre vire le %SWFPATH%/ et met le chemin depuis ton dossier

essayes bêtement de faire marcher la vidéo car je pense quelle ne démarre pas

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

24

Thursday, June 25th 2009, 4:24pm

Press O key:
INFO: krpano 1.0.8 beta 8 (build 2009-06-15)
INFO: Flashplayer WIN 10,0,22,87 PlugIn

De quoi en perdre au moins son latin *g* *g* *g* *rolleyes*

25

Thursday, June 25th 2009, 4:26pm

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

26

Thursday, June 25th 2009, 4:28pm

Bon désolé mais je parts en reportage, la suite lundi A+

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

27

Thursday, June 25th 2009, 4:28pm

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 *unsure*

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

28

Thursday, June 25th 2009, 4:30pm

Ok ... A lundi alors. Merci.

29

Tuesday, June 30th 2009, 9:48am

Hi, michel

all is right now ?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

30

Tuesday, June 30th 2009, 1:12pm

Hi Job.1,

The only all right it is that you comes back *attention* *g*

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:

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);"
		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].resume *wacko*

Then I change the scene events attribute onpreviewcomplete="action(playbutton);" to onloadcomplete="action(playbutton);"
Result:
the video does not play at start and the debugger say nothing in particular *wacko*

Then I erase the scene events 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([b]krpano[br]video hotspot example, infostyle);action(playbutton);"[/b]
Result:
the video does not play at start and the debugger say WARNING: unknown action command: hotspot[videospot].resume *wacko*

To 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 *wacko* It seems the onloadcomplete attribute dos not work for me *confused*

I use:
INFO: krpano 1.0.8 beta 8 (build 2009-06-15)
INFO: Flashplayer WIN 10,0,22,87 PlugIn

Vidoplayer Plugin (Built 2009-6-15)

That made a long time that I lost my Latin *g*

Salut.

This post has been edited 1 times, last edit by "michel" (Jul 1st 2009, 8:23pm)


michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

32

Tuesday, June 30th 2009, 2:47pm

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 particular

conclusion:
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 *attention* the action to play de video is executed when your info plugin is clicked... then it is normal that it plays like expected. *evil* No events attribute are used *attention* *rolleyes*

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,

33

Tuesday, June 30th 2009, 2:53pm


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 *attention* the action to play de video is executed when your info plugin is clicked... then it is normal that it plays like expected. *evil* No events attribute are used *attention* *rolleyes*

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,


yes but before this one, it's working on the events

34

Tuesday, June 30th 2009, 3:01pm

I think is working if you put a "wait(blend)" on your "onstart"

try this

Source code

1
<krpano version="1.0.8"onstart="wait(blend);">

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

35

Tuesday, June 30th 2009, 3:23pm

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].resume *sad*

I 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. *sad*

note: There is not a lot to wait on the video-hotspot example...

It remains one hair on my head. *cry* *g*

Merci pour ta patience *thumbup* , Salut.

36

Tuesday, June 30th 2009, 3:26pm

I make one working and put in on web *rolleyes*

37

Tuesday, June 30th 2009, 3:53pm

http://job-360.fr/test/test.html

I think I get the solution the path of video ;-)

Tuur

Sage

Posts: 3,164

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

38

Tuesday, June 30th 2009, 4:02pm

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.. *confused*

will you share xml for this??

Thanx

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

39

Tuesday, June 30th 2009, 4:08pm

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

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<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>

This post has been edited 1 times, last edit by "Job.1" (Jun 30th 2009, 4:20pm)


michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

40

Tuesday, June 30th 2009, 4:10pm

Hi Job.1,

Ok... Your example works *blink*
Then I do not understand why my own do not. *w00t*

I am going to upload them to my web site.... to test purpose... perhaps I am a little bit crazy. *g*

Salut.