Press Enter to Search

Play MP4 videos in HTML

January 31st, 2013

I was just creating an ‘index.html’ page (nothing specific) and came across how to add an MP4 video to my page.

So, what I wanted was that the video (with .mp4 extension) should reside over my server and any remote user should be able to stream that video on my HTML page using ‘Play’, ‘Pause’ buttons, a Streaming Bar & a Volume controller.

Below is the HTML code:

<video width="480" height="320" controls="controls">
<source src="http://serverIP_or_domain/location_of_video.mp4" type="video/mp4">

Have a Look:

Enhanced by Zemanta