YouTube Player API Reference for iframe Embeds
developers.google.com
The onYouTubeIframeAPIReady function will execute as soon as the player API code downloads. This portion of the code defines a global variable, player , which ...