.wma

Term side of the Card.
Topic: Audio
Unit title: .wma
Categories: Format
Explanation side of the Card

Explanation: The obsolete proprietary audio format developed by Microsoft for Windows media players. Browsers cannot play it, so web audio uses `.mp3`, `.aac` or `.opus` with the native `<audio>` element.

Example

Wronghtml
<embed src="lecture.wma"
  type="audio/x-ms-wma">
Righthtml
<audio controls>
  <source src="lecture.m4a" type="audio/mp4">
  <source src="lecture.mp3" type="audio/mpeg">
</audio>

Browsers cannot decode WMA, so the audio is converted to AAC and MP3 and played with the native <audio> element.

Common mistakes

  • Linking .wma files on a page and getting silent players in every browser.
  • Converting low bit rate WMA to a high bit rate MP3, which makes the file bigger but not better.

Key points

  • Web audio uses .mp3, .aac or .opus with <audio>, never .wma or a Windows Media plugin.
  • Existing WMA files are converted once at build or upload time, not linked directly.

Interview questions

How do I convert WMA to MP3?

Use an audio converter or FFmpeg, for example ffmpeg -i in.wma -b:a 192k out.mp3. Keep the bit rate close to the original.

Is WMA lossless?

Standard WMA is lossy. A separate WMA Lossless variant exists, but browsers cannot play either one.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy