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.

    Einmal editiert, zuletzt von 360labs (4. Dezember 2019 um 21:09) aus folgendem Grund: code formatting

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!