onvideocomplete after 360 Video does nothing

  • 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.

    Edited once, last by 360labs: code formatting (December 4, 2019 at 9:09 PM).

  • I found the solution to this, I figure I might leave this here for anyone else having this problem. There's an "onvideocomplete" event baked in to the vtourskin.xml. If you are basing your own skin on the standard XML, you can go in and comment out that line. Look for onvideocomplete in vtourskin.xml. I didn't need it for anything else, so commenting out this line didn't hurt anything. Once I did that, my onvideocomplete event in tour.xml was behaving as expected.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!