Welcome Guest, Not a member yet? Register   Sign In
MIME type for playing mp4 video in firefox
#2

I'm not sure why it would work on the same server without CI, but you may need to add something to your server configuration. For example, in .htaccess you should be able to do something like this:
Code:
<IfModule mod_mime.c>
  AddType audio/mp4 m4a f4a f4b
  AddType video/mp4 mp4 m4v f4v f4p
</IfModule>

and make sure that your rewrite configuration doesn't route your request to index.php if it's a valid file:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

Note: the RewriteRule line is just there to give you an idea of where the RewriteCond lines go. I would not recommend changing your existing RewriteRule line.
Reply


Messages In This Thread
RE: MIME type for playing mp4 video in firefox - by mwhitney - 07-27-2015, 08:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB