Hello, I have a strange issue with onvideocomplete :
A first video is played at the beginning of the pano, a the end of this video I remove the video and play another one in loop and display a ? hotspot image.
All was working fine when I just displayed the first video and at the end played the second one in loop, but now I added a hotspot to be displayed with the second video the first one stops before it's end...
Here is the pano : http://360images.fr/hall6/
here is the code :
Code
<hotspot name="video1"
url="videoplayer.swf"
alturl="videoplayer.js"
videourl="video11.ipad.mp4"
distorted="true"
loop="false"
pausedonstart="false"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(79, -4.42, 32.09, -0.5);"
enabled="false"
onvideocomplete="videostep2()"
preload="true"
/>
<action name="videostep2">
removehotspot(video1);
set(hotspot[video2].visible,true);
hotspot[video2].play();
set(hotspot[what].visible,true);
</action>
<hotspot name="video2"
url="videoplayer.swf"
alturl="videoplayer.js"
videourl="boucle.ipad.mp4"
distorted="true"
loop="true"
pausedonstart="true"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(79, -4.42, 32.09, -0.5);"
visible="false"
enabled="false"
preload="true"
/>
<hotspot name="video3"
url="videoplayer.swf"
alturl="videoplayer.js"
videourl="video12.ipad.mp4"
distorted="true"
loop="false"
pausedonstart="true"
onloaded="calc_pos_from_hfov_yaw_pitch_roll(79, -4.42, 32.09, -0.5);"
visible="false"
enabled="false"
preload="false"
onvideocomplete="videostep2()"
/>
<hotspot name="what" url="skin/icons/what.png"
ath="8.9" atv="-7.4" width="48" height="48" visible="false"
onclick="askquestion()"
/>
<action name="askquestion">
set(hotspot[video2].visible,false);
set(hotspot[video3].visible,true);
hotspot[video3].play();
set(hotspot[what].visible,false);
</action>
Alles anzeigen
what is wrong with this code, I just can't find where is the problem..
Many thanx !