What is MIME type "audio/x-ms-wax"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
The MIME type audio/x-ms-wax is a Microsoft format for streaming audio content. It tells software like Windows Media Player to treat the file as audio with embedded instructions for playback.Files tagged with this type, such as WAX, act as containers. They often do not hold the full audio data themselves. Instead, they include metadata that points the media player to the actual streaming source. Related file identifiers like ASX and WXV are used in similar contexts to manage playlists and redirections for media streams.
- Streaming Coordination: Manages the delivery of Windows Media audio over networks.
- Redirection & Metadata: Contains instructions that guide media players to the correct audio source.
- Compatibility: Works best with Microsoft’s media software and compatible players.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: audio/x-ms-wax
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="audio/x-ms-wax">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-ms-wax');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the purpose of the audio/x-ms-wax MIME type?
This MIME type is used for Windows Media Audio Redirector files. Unlike actual audio files, a .wax file is a text-based metafile that contains the URL of the audio stream, essentially telling the media player where to find and stream the actual .wma content.
How do I configure Apache to serve .wax files?
To ensure your Apache server sends the correct headers, add the following directive to your .htaccess file or httpd.conf: AddType audio/x-ms-wax .wax. This ensures that client software recognizes the file as a playlist wrapper rather than a generic text file.
Why won't .wax files play directly in Chrome or Firefox?
Modern web browsers have dropped support for NPAPI plugins, including the Windows Media Player plugin. Consequently, browsers cannot play audio/x-ms-wax streams natively; they will usually download the file and prompt you to open it in an external desktop player like VLC or Windows Media Player.
How do I add support for audio/x-ms-wax in Nginx?
You should edit your mime.types file (usually located in /etc/nginx/) or the types block in your config. Add the mapping: audio/x-ms-wax wax;. Reload Nginx using sudo nginx -s reload to apply the changes.
What is the difference between .wax and .wma?
A .wma file contains the actual binary audio data. A .wax file served as audio/x-ms-wax is a small text file containing a playlist or a URL pointing to that .wma file. The .wax file allows for streaming logic, such as redirection, without downloading the whole audio file first.
Can I use audio/x-ms-wax for HTML5 web audio?
No, the HTML5 <audio> tag does not support Windows Media formats or their metafile wrappers. For web compatibility, you should convert your media to standard formats like MP3 (audio/mpeg) or AAC (audio/mp4) instead of using .wax wrappers.
How do I troubleshoot a broken .wax stream?
Since .wax files are plain text, you can open the file in a text editor like Notepad. Check that the Reference URL (Ref tag) inside points to a valid and accessible location. If the internal link is broken or blocked by a firewall, the media player will fail to play the content.
Are .asx and .wxv files related to this MIME type?
Yes, they are all Microsoft Advanced Stream Redirector formats. While audio/x-ms-wax is specific to audio, .asx is a generic playlist format, and .wxv is typically used for video redirection. They share similar XML-based structures and server handling requirements.
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.