I have been trying to embed Youtube videos in popup layers on my events website. The idea being that they autoplay when somebody clicks the relevant link. The trouble is they all autoplay when the main page loads.

Has anybody found a way? Also there a number of these so conceivably someone could close one popup and open another, so the previous video definitely needs to stop playing when the popup is closed.