JW Player播放WMA文件报错Task Queue failed at step 5相关咨询
Hey there, let’s walk through your problem and solutions clearly:
1. First, your hunch is correct: JW Player doesn’t support WMA
You nailed the core issue right off the bat. JW Player’s officially supported audio formats are MP3, AAC, Ogg Vorbis, and FLAC—WMA (Windows Media Audio) isn’t included. The "Playlist could not be loaded" error pops up because the player can’t recognize or decode WMA files at all, no matter how you configure your playlist settings.
2. Configuring file types won’t fix this
Even if you tried adding WMA to any player configuration settings, it won’t help. The problem is missing codec support, not a configuration gap—JW Player simply doesn’t have the code needed to process WMA files.
3. How to play both WMA and MP3 on your site?
You’ve got two reliable paths here:
Option 1: Convert WMA to MP3 during upload (highly recommended)
Using ffmpeg is the go-to automated solution for this. Here’s a simple command to convert WMA to high-quality MP3:
ffmpeg -i your-file.wma -codec:a libmp3lame -q:a 2 converted-file.mp3
- The
-q:a 2flag sets a top-tier MP3 quality (you can adjust this from 0-9; lower numbers mean better quality). - You can hook this command into your site’s upload workflow (via server-side scripts like PHP or Node.js) so conversions happen automatically when someone uploads a WMA file. This way, all your audio is in a format JW Player (and every modern browser/device) can handle.
Option 2: Use a fallback player for WMA (less ideal)
If you must keep WMA files as-is, you can set up a conditional player system:
- Detect the file format on your server before loading the player.
- For MP3s, use JW Player like normal.
- For WMAs, load a player that supports the format (like the native HTML5 audio element with a WMA codec plugin, or an embedded Windows Media Player). Note that this will only work on limited browsers (mostly older Windows systems), so many users still won’t be able to play the WMA files.
Quick pro tip: MP3 is the universal standard for web audio—sticking with it ensures maximum compatibility across all platforms.
内容的提问来源于stack exchange,提问作者Sabeena

