-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels