Check out example codes for "how to play youtube videos in html". It will help you in understanding the concepts better.
Code Example 1
<!DOCTYPE html>
<html>
<body>
<iframe width="420" height="345"
src="https://https://www.youtube.com/watch?v=dQw4w9WgXcQ">
</iframe>
</body>
</html>
Code Example 2
<video controls="controls"
class="video-stream"
x-webkit-airplay="allow"
data-youtube-id="N9oxmRT2YWw"
src="http://v20.lscache8.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass%2Coc%3AU0hPRVRMVV9FSkNOOV9MRllD&itag=43&ipbits=0&signature=D2BCBE2F115E68C5FF97673F1D797F3C3E3BFB99.59252109C7D2B995A8D51A461FF9A6264879948E&sver=3&ratebypass=yes&expire=1300417200&key=yt1&ip=0.0.0.0&id=37da319914f6616c"></video>
Learn ReactJs, React Native from akashmittal.com