How to autoplay iframe with video in Chrome

I googled answer and didn't find any for this. How can you autoplay videos in chrome. This is what I have tried:

<iframe allow="fullscreen; autoplay" allowfullscreen="true" src="https://example.com"></iframe>

1 answer

  • answered 2018-07-12 07:29 commonSenseCode

    I found answer in internet but not in stackoverflow so I would leave it here so someone can find it:

            <iframe allow="autoplay *; fullscreen *" allowfullscreen="true" 
              src="https://example.com">
            </iframe>