User Agents

Web browsers and everyday web tech, explained

Change Default Media Player in Firefox: Full Guide

· 7 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing the default media player in Firefox involves adjusting how the browser handles media files, shifting from the built-in internal player to an external application like VLC or MPC-HC. By default, Firefox uses its own integrated HTML5 player to stream audio and video directly in the browser tab. However, users often prefer external players for better codec support, advanced playback controls, or the ability to use system-wide shortcuts. To achieve this, you must modify the browser's internal configuration settings (about:config) and ensure your operating system is configured to associate specific file types with your preferred software.

What You'll Need

  • A computer with Mozilla Firefox installed.
  • An external media player installed on your system (e.g., VLC Media Player, PotPlayer, or Windows Media Player).
  • Administrative privileges on your computer to change system-level default app associations.
  • A stable internet connection to verify playback of various media formats.

Step-by-Step

  1. Install Your Preferred Media Player: Before changing settings in Firefox, ensure the software you want to use is already installed. If you want to use VLC, for example, download and install it from the official website. If the software is not installed, Firefox will have no external target to send the media files to.
  2. Open the Firefox Configuration Editor: Launch Firefox and click on the address bar at the top of the window. Type about:config and press Enter. You will see a warning page stating that changing settings here could be risky. Click the button labeled "Accept the Risk and Continue." This area allows you to modify hidden preferences that are not available in the standard settings menu.
  3. Search for Media Action Preferences: In the search bar at the top of the Configuration Editor page, type media.play-with-os-app. This specific preference tells Firefox whether it should attempt to use the operating system's default application for certain media types rather than the internal browser player.
  4. Toggle the Preference: Once you find the media.play-with-os-app entry, double-click it (or click the toggle button on the right) to change its value from false to true. This tells Firefox to defer to the OS when deciding how to handle a media file.
  5. Configure Application Action Settings: Now, navigate back to the standard Firefox settings. Click the menu button (three horizontal lines) in the top right corner and select "Settings." In the left-hand sidebar, click on "General." Scroll down to the "Files and Applications" section.
  6. Set Specific File Type Actions: Under the "Applications" subsection, you will see a list of content types (such as "MP4 Video," "MP3 Audio," or "WebM"). Locate the file type you wish to change. Click the drop-down menu in the "Action" column next to that file type.
  7. Select Use Other Application: From the drop-down list, select "Use Other..." or "Always ask." If you select "Use Other," a system dialog will appear allowing you to browse your computer for the executable file (.exe on Windows or .app on macOS) of your chosen media player.
  8. Confirm System Defaults: To ensure a seamless transition, you should also set the media player as the default at the OS level. On Windows, go to Settings > Apps > Default Apps. Search for the media format (e.g., .mkv) and select your preferred player. On macOS, right-click a file of that type, select "Get Info," and under "Open with," choose your player and click "Change All."
  9. Restart Firefox: While many changes take effect immediately, it is best practice to close all Firefox windows and restart the browser to ensure the new configuration is fully loaded.
  10. Test the Functionality: Navigate to a website that hosts a direct link to a media file (not an embedded player like YouTube, which uses a proprietary API). Click the link. Firefox should now prompt you to open the file in your external player or launch it automatically.

Common Mistakes

One of the most frequent mistakes is confusing embedded players with direct media links. Many modern websites use custom HTML5 wrappers or proprietary streaming protocols (like HLS or DASH) that are designed specifically for browser playback. Changing the default media player will not force a YouTube video or a Netflix stream to open in VLC, as those sites do not provide a direct file link to the browser; they stream data in chunks. This guide applies to direct links to files like .mp3, .wav, .ogg, .mp4, and .mkv.

Another common error is forgetting to set the system-level default. If media.play-with-os-app is set to true, but the operating system doesn't know which app to use for an .mkv file, the browser may either do nothing or trigger a generic "Open With" system prompt every single time, which defeats the purpose of a "default" setting.

Some users also mistakenly search for these settings in the standard "Settings" menu without entering about:config. The standard menu allows you to choose what happens to a file once it is downloaded or requested, but the deep-level instruction to bypass the internal player often requires the configuration editor for certain versions of the browser.

Tips

To maximize your experience, consider using a media player that supports "Network Streams." If you use a player like VLC, you can often right-click a video on a webpage, select "Copy Link Address," and then go to VLC and select Media > Open Network Stream. This is often more reliable than relying on browser hand-offs for complex streaming sites.

If you frequently switch between different players for different formats (e.g., using one player for high-fidelity audio and another for 4K video), use the "Always Ask" option in the Firefox Applications menu. This prevents the browser from making an automatic choice and instead gives you a pop-up menu every time a media file is triggered, allowing you to choose the best tool for that specific file.

Keep your browser updated. Mozilla frequently updates the way it handles MIME types (the labels that tell the browser what a file is). If a certain file type isn't appearing in your Applications list, updating Firefox may add the necessary definitions to recognize that format.

Troubleshooting

If the media still opens in the Firefox internal player despite your changes, first verify that the media.play-with-os-app setting in about:config is definitely set to true. Sometimes, a browser update can reset these advanced preferences to their default state.

If Firefox asks you to "Save File" instead of opening it in a player, check the "Applications" list in the General Settings. You likely have the action set to "Save File" for that specific MIME type. If the player you want isn't listed, ensure the player is installed in a standard directory (like Program Files) so Firefox can locate the executable.

In cases where the external player opens but cannot play the file, the issue is likely a codec problem within the media player, not a Firefox setting. Ensure your external player is updated to the latest version. For example, if you are trying to play a HEVC/H.265 file and it fails in the external player, you may need to install the appropriate codec pack or switch to a player with native HEVC support.

If the browser freezes when attempting to hand off a file to an external application, this may be caused by a conflict with security software. Some antivirus programs block browsers from launching external .exe files to prevent malware. Check your security software's logs to see if Firefox is being blocked from executing a system command.

Frequently Asked Questions

Will this work for YouTube or Netflix?

No. These services use embedded streaming players and proprietary protocols rather than direct links to media files. This method only works for direct links to files like .mp4 or .mp3.

Is changing about:config settings dangerous?

Changing a single, well-documented preference like media.play-with-os-app is generally safe. However, changing random settings without knowing their function can lead to browser instability or security vulnerabilities.

Why isn't my preferred player appearing in the list?

This usually happens if the player was installed in a non-standard folder or if the OS hasn't registered it as a handler for that file type. Use the "Browse" or "Use Other" option to manually find the .exe file.

Can I set different players for different file types?

Yes. In the "Applications" section of the General Settings, you can assign a different action or application to each specific content type listed.

Does this work on Firefox for Android or iOS?

No. Mobile versions of Firefox have significantly different architectures and do not provide access to about:config in the same way, nor do they handle external app hand-offs via the same mechanism as the desktop version.

Do I need to restart my computer after these changes?

Generally, no. Restarting the Firefox browser is sufficient for the changes to take effect, although a system restart can help if you changed the OS-level default app associations.