You are not logged in.

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

1

Friday, November 19th 2010, 12:29am

Video as intro ? ( @Klaus )

Is it possible to use video as intro to panorama ?

Check: http://www.bergans.no/#/panorama/

Bad pano, and viewer but great idea.

Tuur

Sage

Posts: 3,184

Location: Netherlands

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

  • Send private message

2

Friday, November 19th 2010, 12:44am

i think it's easy..

i do the same with flash intro..

you can load the pano but hide the area.. play that video (time it ) set a wait and let the area come.. when wanted..

here example without area

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
<krpano version="1.0.8" onstart="intro();">

<plugin name="ilovekrpano" url="ilovekrpano.swf" visible="false" align="center" keep="true" height="prop" width="60%" alpha="1" zorder="100"/>

<display fps="20" />

<action name="intro" >
			
			set(plugin[ilovekrpano].visible,true);
			
			wait(2);
			tween(plugin[ilovekrpano].alpha,0,0.5);
			
			load1();
			set(plugin[ilovekrpano].visible,false);
			
			set(display.fps,60);
			</action>
			
			
<action name="load1">			 
loadpano(3.xml,null,MERGE,BLEND(1));

</action>

	
</krpano>


this is a short flash animation taht was running to fast because of the FPS.. but with a video you can do the same..


-set area 0
-loadpano
-set video
- when finished set area


etc

hope this helps

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

Tuur

Sage

Posts: 3,184

Location: Netherlands

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

  • Send private message

3

Friday, November 19th 2010, 12:49am

so

<action name="intro">



set(area.y, 0);
set(area.height, 00%);
set(area.width, 0%);
set(area.x, 0%);

- load pano
- play video
- time wait(10)
- tween or set area




</action>
http://www.virtualtuur.com
Skype:studiotuur

esys

Intermediate

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

4

Monday, December 6th 2010, 11:43pm

Wait before play a video ?

Hi,

I'd just like to know how to set a wait function for my video, before playing ?

I've tried the buffertime, proposed by klaus in an other topic about a jittery video, it didn't work. Wherever i put a wait function, action, events, even in the hotspot itself, it locks the navigation but not the video!?

Source code

1
2
3
4
5
6
<action name="playbutton">
    
               wait(10);
               hotspot[video].resume();
    
            </action>

or

Source code

1
2
             onloaded="wait(10);
                        playbutton();" 


or

Source code

1
2
	 <events onloadcomplete="wait(10);
	                           action(playbutton);" />


Thanks. *smile*
Steph

This post has been edited 4 times, last edit by "esys" (Dec 6th 2010, 11:55pm)


5

Wednesday, December 8th 2010, 7:41pm

Hi,

try that:

Source code

1
delayedcall(10, hotspot[video].resume() );


best regards,
Klaus

esys

Intermediate

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

6

Thursday, December 9th 2010, 9:52pm

Thanks again for the time you spend to answer to the beginners klaus ! But it doesn't work with me..

Here the code

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
    <action name="playbutton">
    
          delayedcall(10, hotspot[video].resume());
    
    </action>

...

	<scene name="scene_light_+2" title="light_+2" onstart="wait(LOAD); moveto(97.497,23.698, linear(10))" thumburl="light_+2.tiles/thumb.jpg">

	<plugin name="videoplayer" url="%SWFPATH%/plugins/videoplayer.swf" keep="true" />
	

	<view hlookat="141.23" vlookat="22.91" fovtype="MFOV" fov="100" maxpixelzoom="" fovmin="35" fovmax="100" />

		<preview url="light_+2.tiles/preview.jpg" />

	 <events onloadcomplete="playbutton();" />

		<image>....


    <hotspot name="video"
             url="plugins/videoplayer.swf"
             videourl="bouee-video.flv"
             width="800"
             height="600"
             visible="true" 
             enabled="true" 
             handcursor="true" 
             capture="true" 
             children="true"
             ath="12"
             atv="10"
             origin="" 
	     edge=""
             scale="0.5"
             rx="0" ry="0" rz="0"
             distorted="true"
             pausedonstart="false"
             buffertime=""
             loop="false"
             volume="0.7"
             directionalsound="true"
             range="120"
             onloaded=""
             onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
             onclick="togglepause();"
             onvideocomplete="set(visible,false);"
             />	     


Thanks. Best wishes. *smile*
Steph

7

Monday, December 20th 2010, 11:31am

Hi,

set - "pausedonstart" to "true" - otherwise the video will start at the begin,

best regards,
Klaus

esys

Intermediate

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

8

Saturday, January 8th 2011, 4:21pm

Hi Klaus,

Best wishes to start.. Sorry to thank you only now, i was off for a month.

It works! You just go over with the mouse to start. Where can i set this function in the code (for example to wait for a click on it before starting) ?

Thanks again.
Steph

9

Sunday, July 10th 2011, 9:01am

Hi Klaus ,

can you please answer Where can i set this function in the code (for example to wait for a click on it before starting) ?

Thank you

10

Sunday, July 10th 2011, 9:36am

See the example-code from esys:
pausedonstart="false"
onclick="togglepause();"

but instead of false you set true for the pausendonstart-tag. The onclick-tag toggles the pause with every click on the video.

Best regards,
Nupsi

Similar threads