Apache handling mpg and mp4
Hello all I am having an issue with apache handling these types of files, i've added the AddType for both in the .htaccess file and in the httpd.conf and still nothing
here's what im getting "GET /profile_videos/tdatech/1368814103-ResizedVideo_1360449282341.mpg HTTP/1.1" 304 - any help please? |
|
Quote:
TypesConfig /etc/mime.types in there i have video/mp4 mp4 mpg4 video/MP4V-ES video/mpeg mpeg mpg mpe video/mpeg4-generic Which is stock with the config so i know that's ok and here is my HTML. Code:
<video width="715" height="303" controls autoplay> |
I am still struggling with this one if anyone has another idea it would be very much appreciated.
|
Why don't you use the player to play the files. Use this code in your html file.
Quote:
http://localhost/flv-avi-mpg-mov-mkv-mp4-player/b.flv Give the proper path of the video file with sufficient permissions. Now open this html file in browser and see if you are able to play the files or not. |
Thanks mate! how come it wouldn't play nice with HTML5 though?
|
Right then found a few issues with this way , can't play these videos on all browsers
|
Have you flash installed in all your browsers?
Read these threads. http://stackoverflow.com/questions/1...luding-firefox http://stackoverflow.com/questions/7...s-all-browsers |
Well yes but I'm looking for a method of users to upload videos in their profiles. How come html5 doesn't work any other methods you can suggest?
|
The HTML5 video may play in Safari, Chrome and IE 9 but not Firefox or IE 7-8. If you fix the MIME-type issue, it will play in Firefox.
If you’re using the Apache web server or some derivative of Apache, you can use an AddType directive in your site-wide httpd.conf or in an .htaccess file in the directory where you store your video files. (If you use some other web server, consult your server’s documentation on how to set the Content-Type HTTP header for specific file types.) Quote:
http://stackoverflow.com/questions/6...ot-from-server http://stackoverflow.com/questions/1...eo-not-playing http://stackoverflow.com/questions/6...145629#6145629 |
All times are GMT -5. The time now is 07:29 AM. |