mediaelement
mediaelement copied to clipboard
Url format of YouTube nocookie domain
When the wrong URL format is used with the nocookie option, the API will instead load a version of the video WITH cookies.
The Url format https://www.youtube-nocookie.com/watch?v=VIDEOID results in a 404. It seems like the domain www.youtube-nocookie.com accepts only the default url format for embeds. See documentation for the url format: https://developers.google.com/youtube/player_parameters#Manual_IFrame_Embeds
The format mentioned in the documentation is working: https://www.youtube-nocookie.com/embed/VIDEOID
So a fix could be in getYouTubeNoCookieUrl() to change the url format to the /embed/ version.