{"action":"opened","issue":{"url":"https://api.github.com/repos/mdebbar/YoutubePlayer.react/issues/1","labels_url":"https://api.github.com/repos/mdebbar/YoutubePlayer.react/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mdebbar/YoutubePlayer.react/issues/1/comments","events_url":"https://api.github.com/repos/mdebbar/YoutubePlayer.react/issues/1/events","html_url":"https://github.com/mdebbar/YoutubePlayer.react/issues/1","id":79804783,"number":1,"title":"Slight changes with latest ","user":{"login":"samantp","id":5500426,"avatar_url":"https://avatars.githubusercontent.com/u/5500426?v=3","gravatar_id":"","url":"https://api.github.com/users/samantp","html_url":"https://github.com/samantp","followers_url":"https://api.github.com/users/samantp/followers","following_url":"https://api.github.com/users/samantp/following{/other_user}","gists_url":"https://api.github.com/users/samantp/gists{/gist_id}","starred_url":"https://api.github.com/users/samantp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samantp/subscriptions","organizations_url":"https://api.github.com/users/samantp/orgs","repos_url":"https://api.github.com/users/samantp/repos","events_url":"https://api.github.com/users/samantp/events{/privacy}","received_events_url":"https://api.github.com/users/samantp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-23T10:19:32Z","updated_at":"2015-05-23T10:19:32Z","closed_at":null,"body":"Hi, First of all, \r\n\r\nThanks for this component. Saved a lot of effort. Just one thing I noticed with the latest API. Seems Google Youtube API has slightly changed and now needs a global \"onYouTubeIframeAPIReady\" that is called (ref: https://developers.google.com/youtube/iframe_api_reference) on the API being ready.\r\n\r\nSo, the following minor changes in YoutubePlayer.react.js get it working again:\r\nInstead of: \r\nscript.src = 'https://www.youtube.com/player_api?playerapiid=ytplayer';\r\nscript.onload = onload;\r\n\r\nReplace: \r\nscript.src = 'https://www.youtube.com/iframe_api';\r\nonYouTubeIframeAPIReady = onload;\r\n \r\nRegards,\r\n--Parikshit N. Samant."}}