Check out example codes for "iframe autoplay". It will help you in understanding the concepts better.

Code Example 1

first add ?autoplay=1 to your video url
then add allow='autoplay' attribute to your iframe element
<iframe src="" allow='autoplay'></iframe>

Code Example 2

<iframe width="560" height="315" src="" allowfullscreen></iframe>

Code Example 3

<iframe id="ytplayer" type="text/html" width="640" height="360"

Code Example 4

<iframe width="420" height="315"

Learn ReactJs, React Native from