Unfortunately browser security blocks the attempt.
Uncaught DOMException: Blocked a frame with origin "https://code-d142c6.webflow.io" from accessing a cross-origin frame.
I’m not sure if streamable will allow us to manipulate the document contents of the iframe. Maybe someone else here knows a good way to get around that?
Doesn’t necessarily need to be embedded through streamable. If I host it through webflow, would I just create different interactions for play button & “watch demo” video?
Thank you! Only issue I’m running into now is that I’d like for the user to scroll forward or backward in the video. Is this something I’d be able to implement?
Try turning off the “include play/pause button” in background video settings of Webflow and add this line of custom code.
document.querySelector('video').controls = true
Also you are currently getting an error in console:
Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
You need to move this code into the “before closing body tag” section. It is trying to select the demoButton which doesn’t exist yet because the DOM has not fully loaded.