Right now I have youtube videos loading in via Iframe. Is it even possible to check if the youtube video ended when it is in that sort of state? Can I use OnStateChange() t
you can detect the end of the video like so:
function onPlayerStateChange(event) { if (event.data == YT.PlayerState.ENDED){ // your code to run after video has ended } }