I'm trying to add a 360 video as an option in a virtual tour, where the user selects it from a menu to take a guided linear tour. When they finish watching it, I want to take them back to the main menu scene. It works fine, but onvideocomplete doesn't seem to be working. The screen goes black when the video finishes, and nothing else happens. For some reason it doesn't seem like onvideocomplete is firing. My code for this scene is below. Is there a better way for me to go about doing this? I just want it to load scene scene_SFS_00 when the 360 video is finished playing.
Code
<scene name="videopano" title="Store Tour" isvideopano="true">
<view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="150" distortion="0.0" />
<image><sphere url="plugin:video" /></image>
<plugin name="video"
url.html5="plugins/videoplayer.js"
url.flash="plugins/videoplayer.swf"
videourl="video/intro_1920.mp4"
posterurl="video/intro_1920_poster.jpg"
align="center" x="0" y="0"
pausedonstart="false"
loop="false"
volume="1.0"
onvideoready="skin_showloading(false);"
onvideocomplete="loadscene(scene_SFS_00, null, BLEND(0.2));"
/>
</scene>
Alles anzeigen