modal-video icon indicating copy to clipboard operation
modal-video copied to clipboard

Youtube autoplay does not work for http: scheme

Open simplegr opened this issue 2 years ago • 0 comments

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>

simplegr avatar May 30 '22 15:05 simplegr