Detecting user interactions on a Youtube video

Hi guys

I want to have a video on my Wordpress website. Once the video has finished playing, I want to display a few questions that the user has to fill in.

The video will be hosted on Youtube.

How can I prevent the user scrubbing through the video, or immediately going to the end of the video? Th euser must watch the whole video, and only then, will the questions appear.

How can I do this?

(perhaps this post is more specific to the javascript/php forums)

Thanks

If you were self-hosting the vid, you could use JS (not PHP) but as it’s hosted by Youtube, you’re going to need an API. I’m not sure if this helps.