View Single Post
Old 11-09-2011, 02:05 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by Squirtit View Post
This is great THANK YOU!


Before reading your post I came across a recomendation to add this to my .htaccess

AddType application/octet-stream .mp4
<FilesMatch "\.(docx?|txt|mp4?)$">
Header add Content-Disposition "attachment"
</FilesMatch>

So far what this does is allows my jwplayer to play .mp4 files, but when a link with an .mp4 file is clicked, the user is prompted to download the file. So I don't need two copies of the video file.

Do you see any drawback to this? I'm not big on programming and have no idea if this doesn't work for everyone.
my method is the same you just reference "file.MP4" for download and "file.mp4" for jwplayer , it pulls the same video you dont need 2 videos

but really you just need the htaccess you posted because the player will stream it either way
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote