HTML5 videos showing “No Video With Supported format and MIME type Found” in FireFox browser

HTML5 video supported in file when saved as .html when I include the same html code in php its not working.
Here i shared my code:

<video width="600" controls>
  <source src="final demo.mp4" type="video/mp4">

Is the video stored in the same folder as the PHP script?

final demo.mp4

Probably not a good idea to have a space in a file name. If you must then URL encode it final%20demo.mp4.

Edit: It’s also advisable to provide at least one alternative video format in case the browser doesn’t support MP4.

Are you outputting exactly the same html page from your PHP, all the same doctype and so on? View source and compare.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.