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 »

Visual Studio 2013

Visual Studio 2013

Visual Studio 2013 is now available. Make sure to upgrade to the latest version of Visual Studio. 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.

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

    1. 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.

    2. Anonymous says:

      For Linux the option is media.gstreamer.enabled

    Leave a Reply

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

    CAPTCHA Image

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">