On my website I have an embedded YouTube player on one of my top page slides. When the video status is 'playing', I want to target an iframe within my page and call a function in it. This unfortunately isn't working either on its own.
When the YouTube player is paused or ends, I want to call a different function:
How can I script this? I've included a jsfiddle: