Autoplay for youtube does not work for http: scheme. If you try for example, to develop in http://localhost:3000 won't work because getYoutubeUrl does not return scheme.
One way to bypass this, is to use data-video-url with the url of your choice. For example: https://www.youtube.com/embed/<YOUR_VIDEO_ID>?autoplay=1&<MORE_PARAMS>
Autoplay for youtube does not work for http: scheme. If you try for example, to develop in http://localhost:3000 won't work because
getYoutubeUrl
does not return scheme.One way to bypass this, is to use
data-video-url
with the url of your choice. For example:https://www.youtube.com/embed/<YOUR_VIDEO_ID>?autoplay=1&<MORE_PARAMS>