You can use JW Player to play the video on demand or live stream.
Example if your video saved on AWS S3 bucket
<div id="myElement"></div>
<script>
jwplayer("myElement").setup({
file: "https://s3.amazonaws.com/TestBucket/Video/video.mp4",
width: 640,
height: 360
});
</script>
for more information click
here[
^]