.wma
Example
<embed src="lecture.wma"
type="audio/x-ms-wma"><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
.wmafiles 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,.aacor.opuswith<audio>, never.wmaor 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.