react-player
react-player copied to clipboard
YouTube videos aren't closed automatically in iOS
This started happening since last version (0.5.4) probably because of this addition https://github.com/CookPete/react-player/commit/b99e6d94e7534e7a8d8e434eaf4473b4ca480601#diff-c961f5a0c04a6c2c13facafb6564468fR75
Which seems to be the only change that can make a difference. I used this config for the player in my Cordova app and I never set the param origin before:
var youtubeConfig : {
fs : 0,
iv_load_policy : 0,
modestbranding : 1,
playsinline : 1,
rel : 0,
theme : 'dark'
};
Found the bug, it was my es6 handler that didn't support merge