![](https://secure.gravatar.com/avatar/dd740112a9f7a4ff8c565252467a55af?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
How to prevent MP4 files from downloading on Linux & Firefox with JWPlayer
I have JWPlayer running on my system, with no issues -except one. For some reason, on Firefox on a Linux CentOS machine, JWPlayer will not automatically play the MP4 video. I will give the user an option to "Open with" (Media Player/Default) or "Save File".
How do I prevent users from being able to download the MP4 file? My JWPlayer setup is set up for streaming & HTML5 fallback, as shown below. These are served from Amazon CloudFront.
jwplayer('container').setup({
playlist: [{
ga: { },
title: '$title',
image: 'XXX.png',
sources: [{
file: '$cf_stream_uri$stream_url'
},{
file: '$down_url'
}]
}],
height: 600,
primary: 'flash',
width: 800
});";