So let's say that I embed a youtube video, and when it's done playing, I want it to do this function. How would I detect that the video is done playing?
I'm assuming that the video varies in length. So I know the video will be done in 5 minutes but I want to generalize it so that when an "x" minute video is done playing it calls this function.
This all the HTML that I have if it matters.... (excuse the cat video lol)
<html>
<head>
<title>Discovery</title>
</head>
<body>
<iframe width="560" height="315" src="http://www.youtube.com/embed/bDuLeXx2Gv0?autoplay=1" frameborder="0" allowfullscreen></iframe>
</body>
</html>