You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks 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.
Hi, First of all,
Thanks 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.
So, the following minor changes in YoutubePlayer.react.js get it working again:
Instead of:
script.src = 'https://www.youtube.com/player_api?playerapiid=ytplayer';
script.onload = onload;
Replace:
script.src = 'https://www.youtube.com/iframe_api';
onYouTubeIframeAPIReady = onload;
Regards,
--Parikshit N. Samant.
The text was updated successfully, but these errors were encountered: