Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

  • »benjamin ziegler« ist der Autor dieses Themas

Beiträge: 55

Wohnort: FRance

Beruf: rock clinbing, scuba diving, motorbike....

  • Nachricht senden

1

Donnerstag, 25. Juni 2009, 09:53

how to start video once the VR is fully loaded ?

I was wondering if there is a way to check that the VR images are fully loaded before starting to play videos ?

Any idea ?

THanks
Pro website : www.bziegler.com
Blog : blog.bziegler.com

2

Donnerstag, 25. Juni 2009, 11:00

Hi Benjamin,

There is a new attribute onloadcomplete for the xml node <events> .... perhaps this can be a way to do what you expect ... I'm not sure if it is executed when all the elements defined in the xml are loaded or only when the xml itself is loaded... Try it *whistling*

Zitat

new attributes:
....
- <events> - onpreviewcomplete, onloadcomplete (experimental at the moment, warning - can interfere with "onstart")
....
reference: krpano 1.0.8 beta 6 Documentation

Hope this can help. ;-)

Salut

  • »benjamin ziegler« ist der Autor dieses Themas

Beiträge: 55

Wohnort: FRance

Beruf: rock clinbing, scuba diving, motorbike....

  • Nachricht senden

3

Donnerstag, 25. Juni 2009, 12:43

tryed that !

I've a hotspot named = video
i've set its pausedonstart="true"

so it don't start

Then i added this :

Quellcode

1
2
3
4
5
6
7
<action name="startvideo">
onloadcomplete(action(displayvideo));
</action>

<action name="displayvideo">
play(video);
</action>


doesn't work :(
Pro website : www.bziegler.com
Blog : blog.bziegler.com

4

Donnerstag, 25. Juni 2009, 13:24

Quellcode

1
2
3
4
5
<events onpreviewcomplete="action(playbutton);" />

<action name="playbutton">
    hotspot[videospot].resume();
</action>


sur le hotspot video

Quellcode

1
2
3
...
 pausedonstart="true"
...


ça marche chez moi ;-)
it working home

sinon regardes là/see here videoplayer plugin (beta)

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Job.1« (25. Juni 2009, 14:29)


5

Donnerstag, 25. Juni 2009, 14:29

hi job.1,

I have tryed your code but for me it is not working... *sad*
I used the example video-hotspot included in the Kpano package as the base to try...

This is the code:

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


I have tried to put the action(playbutton); in an other <events> attribute, onxmlcomplete (because it is sure it is working... the sowtext() is done from this attribute), but it do not work... *sad*

Can you confirm that is working for you?

Merci, Salut.

6

Donnerstag, 25. Juni 2009, 14:31

I confirm

here I put the action(playbutton) on the onclick of the plugin info *thumbsup*

http://www.visionrhd.com/site/video/bar.html

  • »benjamin ziegler« ist der Autor dieses Themas

Beiträge: 55

Wohnort: FRance

Beruf: rock clinbing, scuba diving, motorbike....

  • Nachricht senden

7

Donnerstag, 25. Juni 2009, 14:32

it works for me !

i used the same code as sugested by Job.1
but i replaced onpreviewcomplete by onloadcomplete

THanks Job.1
Pro website : www.bziegler.com
Blog : blog.bziegler.com

8

Donnerstag, 25. Juni 2009, 14:39

Try with this one

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

9

Donnerstag, 25. Juni 2009, 14:45

it works for me !

i used the same code as sugested by Job.1
but i replaced onpreviewcomplete by onloadcomplete

THanks Job.1


youre welcome, normally it should work with one or the other ;-)

10

Donnerstag, 25. Juni 2009, 15:00

Hi Job.1, Hi Benjmin,

Then I do not understand what I am doing wrong...

After trying again and again, I press the O key to view the debugger window....
there is a WARNING: unknown action command: hotspot[videospot].resume

Why *question*

I am using krpano 1.0.8 beta 8 (build 2009-06-15) on FIREFOX and local server...

an other thing ...

I have tried the following:

Quellcode

1
2
<events onloadcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);"
    />

instead of:

Quellcode

1
2
<events onxmlcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);"
    />

The first code onloadcomplete do not work for me (then I do not understand why it work for Benjamin)
The second code onxmlcomplete work like expected.

*question* *question* *question*

Any idea?
Edited: in a other thread, Klaus explains: link to thread reference

Zitat

maybe you mean - "onloadcomplete" - this will be called when the loading of the images was done
this is why onloadcomplete does not work on my example... there is no <image /> on it *attention* --- End

Thank you, Michel.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (1. Juli 2009, 20:55)


11

Donnerstag, 25. Juni 2009, 15:02

have you the good videoplayer.swf ?¿

12

Donnerstag, 25. Juni 2009, 15:08

Hi Job.1,

Sorry... do not see your reply before my one.... *unsure*

I just tried your code... but for me it does not work... *sad*

The debugger show nothing .. no WARNINGS

But I notice that on your code:

Quellcode

1
onloadcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"

and this make that the showtext() action is not executed yet (edited: not any more executed ) for me. *attention* *attention* *attention*

*question* *question* *question*

Thank you for your help in trying to understand and learn more about Krpano.

Michel.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (25. Juni 2009, 15:23)


13

Donnerstag, 25. Juni 2009, 15:13

Hi,

Sorry again... *unsure* I take a lot of time to write in English *rolleyes*

This the version I have:
Vidoplayer Plugin (Built 2009-6-15) *huh*

Thanks again. *smile*

Michel

14

Donnerstag, 25. Juni 2009, 15:17

perhaps you don't have the good player, le last one is Update - 2009-06-15 krpano 1.0.8 beta 8

15

Donnerstag, 25. Juni 2009, 15:41

Hi Job.1,

I have modified your code this way,
your code:

Quellcode

1
<events onloadcomplete= "showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"/>

modified code,

Quellcode

1
<events onxmlcomplete="showtext([b][i]krpano[br]video hotspot example[/i][/b], infostyle);action(playbutton);"/>


now the showtext() action return to be executed and the Debugger return showing the warning:
WARNING: unknown action command: hotspot[videospot].play

Bizare *attention*

Do not understand.. *cry*

thank you, Michel.

16

Donnerstag, 25. Juni 2009, 15:44

be carefull with the syntax, try with this action

Quellcode

1
2
3
<action name="playbutton">
    hotspot[videospot].resume();
</action>

17

Donnerstag, 25. Juni 2009, 16:00

Hi,

The same... It does not work... and the showtext() action does not appear... *confused*
Syntax must be correct... I do a copy/paste of your code.

2on try changing action on onloadcomplete to onxmlcomplete (like explained before) ...

the result is: the showtext() action is executed correctly... and the Debugger say:

WARNING: unknown action command: hotspot[videospot].resume

*rolleyes* *rolleyes* *rolleyes*

"Qu'est ce que" *question* *attention*

Thanks again, Michel.

18

Donnerstag, 25. Juni 2009, 16:01

Passes ta page complète de code ici

19

Donnerstag, 25. Juni 2009, 16:12

Hi,

Your code: (ma copie de ton code)

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


the modified code: <events onloadcomplete= ... changed to <events onxmlcomplete=...

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


Merci, Michel.

20

Donnerstag, 25. Juni 2009, 16:12

rajoute cette ligne à ton hotspot

Quellcode

1
visible="true" enabled="true" handcursor="true" capture="true" children="true"