Check out example codes for "video and audio tag in html". It will help you in understanding the concepts better.

Code Example 1

<video width="320" height="240" controls>

  <source src="movie.mp4" type="video/mp4">

  <source src="movie.ogg" type="video/ogg">

  Your browser does not support the video tag.

 </video>

Code Example 2

<audio controls>

  <source src="horse.ogg" type="audio/ogg">

  <source src="horse.mp3" type="audio/mpeg">

  Your browser does not support the audio tag.

 </audio>

Learn ReactJs, React Native from akashmittal.com