I’m trying to capture events from a youtube video eg to record if a user clicked play or how much they played etc
Normally this can be done with an existing youtube iframe as per code here
however Webflow doesn’t embed the youtube iframe directly. it embeds an embedly iframe that then embeds the youtube iframe
I have trouble even referencing the youtube iframe
var $embedly = $('.embedly-embed') var $embedPlayer = $embedly.contents().find('#player') // this gives error: $embedly.contents() is not a function var var contentWindow = $embedly.contentWindow // this gives CORS error
is the only way for this to work is skip the embedly embed and put in my own embed code block for the video?