You do not need to include h.264 in your html code, you only need to specify the path to your video file and the name of the video file. So, let's say your video file is.mp4, and your file name is myvideo.mp4 , and your myvideo.mp4 is in a folder called videos , and your html file is outside this videos folder in the project folder, then this is what you need to do :
<video width="560" controls> <source src="videos/myvideo.mp4" type="video/mp4"> </video>
This will work if your video is encoded in mp4 format. H264 is a codec, and in this situation it is completely irrelevant.
First you have to find the mp4 encoder on the network, there are many free encoders, encode your video to .mp4, then use the html code above and your video will play perfectly.
Joe T. Boka
source share