
the player should play for six seconds and then stop.

The function indicates that when playing a video (state=1), The API calls this function when the player's state changes. The API will call this function when the video player is ready. This function creates an (and YouTube player) Var firstScriptTag = document.getElementsByTagName('script') į(tag, firstScriptTag) Var tag = document.createElement('script')
ntentDocument to get the document inside the