2
I’m trying to insert a video into a page that uses html and php.
I tried to use this tag <video src="video.mp4"></video>
tried also as <video><source="video.mp4" type="video/mp4"></video>
when I open the page in my browser, it works, but when I open it through the site it is inserted, the message appears Video Format or MIME type not supported.
I already tried to convert the video to "Webm", but continues the same message.
The browser is Firefox.
What you mean by "through the site that it is inserted"?
– user60252
@Uzumakiartanis the extension does not define the type, the extension is more for Desktop computers and "magicmime" servers assume one that may be a specific type at the time of sending Content-Type via Apache for example, but if the file is corrupted as I assume it is (since the video works locally) then the problem may be in the upload ;)
– Guilherme Nascimento
Also compare the size of the local file with the remote, in bytes. Another thing you can do to see if it’s the same is to calculate the file md5, create a simple page by doing this check and compare the location with the remote: https://www.w3schools.com/php/func_string_md5_file.asp (Edit) only note that if the file is too large, routine can take too long...
– Dudaskank