Created
May 10, 2018 08:49
-
-
Save itsKnight847/24ab0d2ae4ea028693a79f559e66e7fd to your computer and use it in GitHub Desktop.
youtube iframe fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add the following attribute: | |
allow="autoplay; encrypted-media" | |
example: | |
<iframe width="100%" src="https://www.youtube.com/embed/hCgokw_cmxA?modestbranding=1&autoplay=1&showinfo=0&controls=0&playlist=hCgokw_cmxA&loop=1" allow="autoplay; encrypted-media" frameborder="0" allowfullscreen=""></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment