If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

It works well (thanks to John Scheuer, who suggested this in some previous post). The video is of type 'watch_popup'.
What I want to add is some code producing an alert (or something else, like a redirect to another page etc.) when the video has finished. I tried everything, but no luck so far.
Any ideas?EDIT: demo here.

But you have two new YT.Player() calls. I'm not sure why or if in fact you really need both of them or how they would be combined, or if you need both which or if both should get the events object assigned to it.