Allain Lalonde
Allain Lalonde

Reputation: 93398

Detecting Youtube video state from JavaScript

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

Upvotes: 5

Views: 3977

Answers (2)

Joseph
Joseph

Reputation: 25523

You should be able listen to the onStateChange event.

Check out the API Reference

Upvotes: 3

Matt
Matt

Reputation: 2902

Sure can - using the javascript API for youtube

Upvotes: 7

Related Questions