[Cm. updates! - Works on Android / IOS browsers, but not elsewhere. FireFox, Chrome, Opera, Safari do not work. Although they are certainly HTML5 video tags ready]
Just try to transfer the video using the html5 tag. All I get is video player controls and nothing more. It is so simple, I assumed that it should just work:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Movie title</title> </head> <body> <video id="movie" preload controls> <source src="test.mp4" /> </video> </body>
So where can I go wrong? I tried a lot more than this little snippet. I tried fragments of examples of other nations. I tried many videos, many formats (mp4, flv, ogg). I tried to view it in Chrome, Firefox, Android Embedded, Opera, IE9.
I can transfer the file from the URL in programs like VLC, without any problems.
I'm starting to think that Apache2 may be the problem here, although I believe that I can pass the URL from VLC without problems, assuming Apache2 is not a problem.
Any help appreciated. I pull my hair here.
Update:
Whenever I try to access the URL of the video directory from Chrome, it seems to give me this error: the resource is interpreted as different, but ported with the MIME type undefined
This error, of course, is a server-side problem, should apache2 not have to be configured correctly somewhere?
If I access even the FLV file directory from the URL of my Apache2 server, it gives an error of this type MIME undefined. This is video management. Whenever I press the play button, it spammers the MIME type undefined several times.
Update2:
Checked that my .htaccess is readable
Added the following to my .htaccess:
AddType video / ogg.ogv
AddType video / ogg.ogg
AddType video / mp4.mp4
Still not working, still see MIME TYPE undefined in Chrome.
Update3:
- Firefox and other users can view URL / test.mp4 without problems, but NONE can work correctly with the video tag.
Update4:
- Android can now use the video tag. Changing .htaccess seems to fix this. However, for some reason, no desktop browser can be.
source share