Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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
});";

6 Community Answers

Donni

JW Player Support Agent  
-1 rated :

Can you provide a test link? Is it only happening in linux or other OSs?

sfister N/A

User  
0 rated :

Ok, thank you! This appears to only be happening on RHEL/CentOS Linux with Firefox.

The Javascript console is showing an message "No suitable players found and fallback enabled"

It is set to Flash as primary, and I believe it will fallback to HTML5

BTW - This is JWPlayer 6

sfister N/A

User  
0 rated :

This is a closed system; However, if you send me your email address, I can set up a temporary account for you to access the videos... Thank you.

Donni

JW Player Support Agent  
0 rated :

Sure, e-mail support at jwplayer dot com and reference #67788

Donni

JW Player Support Agent  
0 rated :

Actually, FF in linux doesn’t support native HTML5 video playback of MP4. I would set flash as primary or use webm with an MP4 fallback. Let me know if that helps.

sfister

User  
0 rated :

Well, actually I just updated to JWPlayer 7.x and it seems to have fixed the problem...sort of. It now just gives a "No suitable sources found" error, which is totally ok! At least we are avoiding the user being given the option of directly downloading the video.

FYI - I guess it depends on the flavor of Linux being used. Ubuntu 15.4 with Firefox does indeed play MP4s! Must be a RedHat thing....

Thanks for your help though! You can close this now.

This question has received the maximum number of answers.