I’m using Hype 3 Pro and in the Scene Inspector I do not see an On Scene Unload behavior, only a On Layout Unload. I tried creating a new behavior for On Scene Unload and included the following js function and applied it to the behavior but the audio is not stopping on scene change. Any tips?
function stopHTMLAudio(hypeDocument, element, event) {
var emptyInnerHTML = ‘’;
hypeDocument.getElementById(“video1”).innerHTML = emptyInnerHTML
}
EDIT: The letter T was removed from the code above --@daniel
That makes sense Daniel. Thanks. I’ve included the hype document here. The video is on the 3rd scene (accessed via the “watch video” CTA) at the middle breakpoint (300 width) - simulating a medium rectangle ad unit. The video isn’t included in the 720 or 160 breakpoints.