So I have these samples of videos that I have done and I put them each on different scenes with navigation to them on the main scene, however if you play the videos and leave the scene and return to the main scene before the video is finished it doesn't stop playing. You can hear it continue on. Is there a way to cease the videos when a person clicks on the X to change scenes? Hopefully clear how I've writing this.
video3.hype.zip (1.9 MB)
The general issue is that you are doing this in an iframe within an iframe (HTML Widget), which continues to be loaded.
Hype actually will stop all videos in a scene when you do a scene transition, but being in an iframe it cannot get that deep.
Instead of using an HTML Widget and iframe, you can just use a <video>
tag in an unstyled rectangle element. Then Hype's runtime will automatically pause this video on the scene change. Make sure to include tags like controls.
That works perfectly. Thank you so much!!!
1 Like