Check out example codes for "html5 audio player". It will help you in understanding the concepts better.

Code Example 1

<audio controls>

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

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

 Your browser does not support the audio element.

 </audio>

Learn ReactJs, React Native from akashmittal.com