Sie sind nicht angemeldet.

1

Freitag, 2. September 2011, 11:44

Strange issue with video transition with flat pano

Hello, I have a strange issue with my videoplayer on flat pano.
In my tour, I display a book in a flat pano, you can open the book with an hotspot to go to the next page, and between each page I play a little video of the turning page.
Most of the time the first page video plays well but after the video is blocked only few millisecond of the video is played, the cursor looks an hand on all the screen as if all the screen was an hotspot with no action.
Here is my code, could you tell me what is wrong and how to resolve this issue ?
Thanks

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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?xml version="1.0" encoding="windows-1250"?>

<krpano version="1.0.8" onstart="loadscene(histoire0);">
<!--
	<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" keep="true" /> 
	<plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" />
-->
	<plugin name="soundinterface" url="%SWFPATH%/plugins/soundinterface.swf" rootpath="%CURRENTXML%/sounds/" preload="true" />
	
	<display fps="100" details="16" flash10="on" movequality10="HIGH" stillquality10="HIGHSHARP" stilltime="0.2" />
	<action name="showpic">
		action(hidepic, %1);
		set(plugin[%1].enabled,%2);
		set(plugin[%1].visible,true);
		tween(plugin[%1].alpha, 1, 0.50);
	</action>
	
	<action name="hidepic">
		set(plugin[%1].enabled,false);
		tween(plugin[%1].alpha, 0, 0.25, default, set(plugin[%1].visible,false) );
	</action>
	
	<action name="startvideo">
		set(plugin[%1].visible,true);
		plugin[%1].play();
	</action>
	<action name="loadnext">
		loadscene(%2);
		set(plugin[%1].visible,false);
	</action>


	<scene name="histoire0" onstart="">
		<progress showload="none" showwait="none" />
		<display fps="30" details="16" flash10="off" movequality="HIGH" stillquality="HIGH" />
		<view fovtype="HFOV" />
		<image type="CYLINDER" hfov="1.0" vfov="0.75" voffset="1">
			<cylinder url="images/Bureau/BT-Histoire.jpg" />
		</image>
	<plugin name="video-page1"
			url="%SWFPATH%/plugins/videoplayer.swf"
			visible="false" enabled="true" handcursor="true"
			zorder="0"
			align="lefttop"
			ath="-53" atv="-31"
			alpha="1.00"
			refreshrate="auto"
			buffertime="0.1"
			iscomplete="false"
			isvideoready="true"
			loop="false"
			onvideocomplete="closevideo();action(loadnext,video-page1,histoire1);"
			pausedonstart="true"
			updateeveryframe="false"
			videourl="%SWFPATH%/video/BT-Couv.flv"
			volume="1"
			/>
		<hotspot name="retour-bureau"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire1);lookat(8.96,49.51, 80)"
				>
			<point ath="-0.497627" atv=" 1.334759" />
			<point ath=" 0.497627" atv=" 1.334759" />
			<point ath=" 0.498882" atv=" 1.371007" />
			<point ath="-0.498883" atv=" 1.373507" />
		</hotspot>
		<hotspot name="page1"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="action(startvideo,video-page1);"
					keep="false"
					zorder="0"
					details="8"
					effect=""
					flying="0"
					inverserotation="false"
					usecontentsize="false"
				>
			<point ath=" 0.125009" atv=" 0.663549" />
			<point ath=" 0.243767" atv=" 0.659794" />
			<point ath=" 0.303832" atv=" 1.331041" />
			<point ath=" 0.131286" atv=" 1.331056" />
		</hotspot>
	</scene>
	
	<scene name="histoire1" >
		<progress showload="none" showwait="none" />
		<display fps="30" details="16" flash10="off" movequality="HIGH" stillquality="HIGH" />
		<view fovtype="HFOV" />
		<image type="CYLINDER" hfov="1.0" vfov="0.75" voffset="1">
			<cylinder url="images/Bureau/BT-Histoire1.jpg" />
		</image>
		<plugin name="video-page2"
			url="%SWFPATH%/plugins/videoplayer.swf"
			visible="false" enabled="true" handcursor="true"
			zorder="0"
			align="lefttop"
			ath="-53" atv="-31"
			alpha="1.00"
			refreshrate="auto"
			buffertime="0.1"
			iscomplete="false"
			isvideoready="true"
			loop="false"
			onvideocomplete="closevideo();action(loadnext,video-page2,histoire2);"
			pausedonstart="true"
			updateeveryframe="false"
			videourl="%SWFPATH%/video/BT-1.flv"
			volume="1"
			/>
		<hotspot name="retour-page0"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire0);playsound(c2,General/BT-cahier-couverture.mp3,1);"
				>
			<point ath="-0.498779" atv=" 0.693524" />
			<point ath="-0.390025" atv=" 0.678534" />
			<point ath="-0.405107" atv=" 1.338526" />
			<point ath="-0.498877" atv=" 1.336009" />
		</hotspot>
		<hotspot name="page2"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="action(startvideo,video-page2);"
					keep="false"
					zorder="0"
					details="8"
					effect=""
					flying="0"
					inverserotation="false"
					usecontentsize="false"
				>
			<point ath=" 0.125009" atv=" 0.663549" />
			<point ath=" 0.243767" atv=" 0.659794" />
			<point ath=" 0.303832" atv=" 1.331041" />
			<point ath=" 0.131286" atv=" 1.331056" />
		</hotspot>
		<hotspot name="retour-bureau"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire1);playsound(c2,General/BT-cahier-couverture.mp3,1);lookat(8.96,49.51, 80)"
				>
			<point ath="-0.497627" atv=" 1.334759" />
			<point ath=" 0.497627" atv=" 1.334759" />
			<point ath=" 0.498882" atv=" 1.371007" />
			<point ath="-0.498883" atv=" 1.373507" />
		</hotspot>
	</scene>
	
	<scene name="histoire2">
		<progress showload="none" showwait="none" />
		<display fps="30" details="16" flash10="off" movequality="HIGH" stillquality="HIGH" />
		<view fovtype="HFOV" />
		<image type="CYLINDER" hfov="1.0" vfov="0.75" voffset="1">
			<cylinder url="images/Bureau/BT-Histoire2.jpg" />
		</image>
		<plugin name="video-page3"
			url="%SWFPATH%/plugins/videoplayer.swf"
			visible="false" enabled="true" handcursor="true"
			zorder="0"
			align="lefttop"
			ath="-53" atv="-31"
			alpha="1.00"
			refreshrate="auto"
			buffertime="0.1"
			iscomplete="false"
			isvideoready="true"
			loop="false"
			onvideocomplete="closevideo();action(loadnext,video-page3,histoire3);"
			pausedonstart="true"
			updateeveryframe="false"
			videourl="%SWFPATH%/video/BT-2.flv"
			volume="1"
			/>
		<hotspot name="retour-page1"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire1);playsound(c3,General/BT-cahier-papier.mp3,1);"
				>
			<point ath="-0.498779" atv=" 0.693524" />
			<point ath="-0.390025" atv=" 0.678534" />
			<point ath="-0.405107" atv=" 1.338526" />
			<point ath="-0.498877" atv=" 1.336009" />
		</hotspot>
		<hotspot name="page3"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="action(startvideo,video-page3);"
					keep="false"
					zorder="0"
					details="8"
					effect=""
					flying="0"
					inverserotation="false"
					usecontentsize="false"
				>
			<point ath=" 0.125009" atv=" 0.663549" />
			<point ath=" 0.243767" atv=" 0.659794" />
			<point ath=" 0.303832" atv=" 1.331041" />
			<point ath=" 0.131286" atv=" 1.331056" />
		</hotspot>
		<hotspot name="retour-bureau"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire1);playsound(c2,General/BT-cahier-couverture.mp3,1);lookat(8.96,49.51, 80)"
				>
			<point ath="-0.497627" atv=" 1.334759" />
			<point ath=" 0.497627" atv=" 1.334759" />
			<point ath=" 0.498882" atv=" 1.371007" />
			<point ath="-0.498883" atv=" 1.373507" />
		</hotspot>
	</scene>
	
	<scene name="histoire3">
		<progress showload="none" showwait="none" />
		<display fps="30" details="16" flash10="off" movequality="HIGH" stillquality="HIGH" />
		<view fovtype="HFOV" />
		<image type="CYLINDER" hfov="1.0" vfov="0.75" voffset="1">
			<cylinder url="images/Bureau/BT-Histoire3.jpg" />
		</image>
		<hotspot name="retour-page2"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire2);playsound(c3,General/BT-cahier-papier.mp3,1);"
				>
			<point ath="-0.498779" atv=" 0.693524" />
			<point ath="-0.390025" atv=" 0.678534" />
			<point ath="-0.405107" atv=" 1.338526" />
			<point ath="-0.498877" atv=" 1.336009" />
		</hotspot>
		<hotspot name="retour-bureau"
					visible="true" enabled="true" handcursor="true" capture="true" children="true"
					alpha="0"
					onclick="loadscene(histoire0);playsound(c2,General/BT-cahier-couverture.mp3,1)"
				>
			<point ath="-0.497627" atv=" 1.334759" />
			<point ath=" 0.497627" atv=" 1.334759" />
			<point ath=" 0.498882" atv=" 1.371007" />
			<point ath="-0.498883" atv=" 1.373507" />
		</hotspot>
	</scene>
	
</krpano>


Second little question when the video works I got a little black screen before displaying the next flat pano.
How can I remove it also knowing there is no black end frame at the end of the video.
Thanks a lot for your help

2

Dienstag, 6. September 2011, 18:57

Any help ?
Any sugestion ?
Thanks

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Dienstag, 6. September 2011, 20:34

Try posting a link.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen