views:

294

answers:

2

Is there a way of detecting when a Youtube Video has finished playing from JavaScript?

+7  A: 

Sure can - using the javascript API for youtube

Matt
+3  A: 

You should be able listen to the onStateChange event.

Check out the API Reference

Joseph