Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mp4 in safari fails with htaccess authentication

On a dev site, i've been testing mp4 files for html5 play in safari. The native player loads and plays the mp4 files fine, even without the correct MIME type declaration. But, if I add AuthType Basic to my .htaccess the files fail sometimes fail to play and sometimes play in the quicktime player.

After logging in with a valid user why would this directive stop mp4 files from playing correctly?

like image 414
Matt Ryan Avatar asked May 30 '11 16:05

Matt Ryan


1 Answers

still have the same problem. some people solved it, while adding the mime types to their .htaccess file (didn t work for me) :

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .mov
AddType video/webm .webm

at the moment i m using your already mentioned "add Satisfy All" in htaccess (see code below):

<FilesMatch mp4>
Satisfy any
order allow,deny
allow from all
</FilesMatch>

it s not really a solution, since the files are now accessible, if you know the direct link to the files...for my case still ok, but looking forward to a real working solution!

like image 100
longi Avatar answered Sep 19 '22 22:09

longi