How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

Force Firefox to prompt to save mp3 and videos rather than play them in the browser

You might have noticed that in a lot of Firefox versions the browser starts playing .mp3, or other sound/video formats, directly in the browser rather than displaying a prompt asking if you want to save the file. Moreover, setting the format under Tools > Options > Applications to either Always ask or Save File doesn’t really change this behavior.

Firefox Application Options

Luckily there is a workaround to alter this functionality.

  1. Enter about:config in your Firefox’s address bar and press enter.
  2. Search for media.windows-media-foundation.enabled
  3. Set the value of the property to false

media.windows-media-foundation.enabled

And you are done. Now everytime you click on an .mp3 file or any other format that is supported by Windows media foundation you should get a prompt asking you if you want to save the file or if you want to open it directly.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

6 Responses to Force Firefox to prompt to save mp3 and videos rather than play them in the browser

  1. Anon says:

    Hey, this worked great for me, thanks a lot. It was driving me insane.

    One thing to note, though. In the current Firefox version, the name of the value to change is media.wmf.enabled. I imagined “wmf” being the initials of windows-media-foundation.

  2. Jed says:

    Doesn’t work for MP3 either. Toggling to FALSE makes no difference. It still plays in FF and doesn’t show MP3s in the application list either. WTF!

  3. Anonymous says:

    For Linux the option is media.gstreamer.enabled

  4. Entranced says:

    Thanks, this was totally going over my head as to why it keeps playing even though I set it to download or prompt for action. (Whats the point of having the setting if it doesn’t do anything?)

    • CooLMinE says:

      I wish I had an answer for that. It took me a while as well to figure out that the setting didn’t seem to work as intended.

Leave a Reply

Your email address will not be published. Required fields are marked *