Check out example codes for "best free html video player". It will help you in understanding the concepts better.

Code Example 1

<video id=”my-player” class=”video-js” controls preload=”auto” poster=”//” data-setup=’{}’> <source src=”//" type=”video/mp4"></source> <source src=”//” type=”video/webm”></source> <source src=”//” type=”video/ogg”></source> <p class=”vjs-no-js”> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href=”” target=”_blank”> supports HTML5 video </a> </p></video>

Learn ReactJs, React Native from