It is not a timeout issue, and you should not need to fire this function manually.
Make sure your onYouTubeIframeAPIReady function is available at the global level, not nested (hidden away) within another function.
It is not a timeout issue, and you should not need to fire this function manually.
Make sure your onYouTubeIframeAPIReady function is available at the global level, not nested (hidden away) within another function.