YouTube API onPlayerReady is Never Getting Called
问题 Follow this tutorial, I have been trying to integrate the YouTube API into my website. Specifically, when a button is pressed I want to play a video hosted on YouTube in fullscreen mode. Unfortunately, I can't even get the code given in that tutorial to work. I'm using Slim for markup so I added an empty div with the ID of player as the tutorial suggests .body .player I then added this javascript at the end of my markup $(document).ready( function() { loadYoutubeAPI(); }); Which should start