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
<?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>
Alles anzeigen
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