What is MIME type "audio/x-pn-realaudio"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

audio/x-pn-realaudio is a MIME type for RealAudio files. It is used for streaming audio over networks.
RealAudio was developed to let media stream in real time. It uses compression to lower file sizes.
This MIME type covers files that come in different formats, such as RPM, RAM, and RA.
For more details, see RealAudio on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: audio/x-pn-realaudio    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="audio/x-pn-realaudio">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'audio/x-pn-realaudio');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

How do I configure Apache to serve RealAudio files correctly?

To serve RealAudio files, you must add the correct MIME type mapping in your .htaccess or main configuration file. Add the line AddType audio/x-pn-realaudio .ra .ram .rpm to ensure browsers and players recognize the streaming format.

Do modern browsers like Chrome or Firefox support audio/x-pn-realaudio?

No, modern browsers do not natively support this legacy MIME type via the HTML5 <audio> element. Users typically need to install RealPlayer or a compatible media player like VLC to play files with extensions like .ram or .ra.

What is the difference between .ra and .ram files using this MIME type?

A .ra file usually contains the actual compressed audio data, whereas a .ram (Real Audio Metafile) is a text file containing the URL to the audio stream. Both often use audio/x-pn-realaudio, but the metafile is designed to launch the media player and initiate streaming immediately.

Should I use audio/x-pn-realaudio for new web projects?

No, this format is considered obsolete and requires proprietary software to play. For modern audio streaming, you should use standard MIME types like audio/mpeg (MP3) or audio/mp4 (AAC), which work natively in all modern web browsers.

How do I map this MIME type in Nginx?

You can add support by editing the mime.types file, usually located in /etc/nginx/. Add the entry audio/x-pn-realaudio ra ram rpm; to the list to ensure Nginx serves these files with the correct headers.

Why does the audio file download instead of playing in the browser?

This happens because the browser does not have a built-in plugin to handle audio/x-pn-realaudio. Instead of streaming the content, the browser treats it as an unknown file type or application/octet-stream and forces a download so the user can open it with a desktop application.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.