Audio Files and MIME Types - Rello/audioplayer GitHub Wiki
Formats indexed
| Files | MIME type |
|---|---|
| MP3 | audio/mpeg |
| M4A, M4B, MP4 audio | audio/mp4 |
| Ogg Vorbis, Opus | audio/ogg |
| WAV | audio/wav |
| FLAC | audio/flac |
| AIF, AIFF | audio/x-aiff |
| AAC | audio/aac |
| M3U, M3U8 playlists | audio/mpegurl |
| PLS playlists | audio/x-scpls |
| XSPF playlists | application/xspf+xml |
Playlist files reference audio files or stream URLs; they are not audio codecs.
Use M3U for local tracks with paths relative to the playlist file, or M3U/PLS for stream URLs. XSPF files are detected by the scanner, but there is no dedicated XSPF parser.
Browser support
Indexing a file does not guarantee playback. Codec support depends on your browser and operating system. Check Formats supported by the browser in Nextcloud Personal settings → Audio Player.
Missing MIME types
If Nextcloud assigns an incorrect MIME type, an administrator can add the affected extension to config/mimetypemapping.json. Preserve existing custom entries and leave resources/config/mimetypemapping.dist.json unchanged.
For example:
{
"aif": ["audio/x-aiff"],
"aiff": ["audio/x-aiff"]
}
From the Nextcloud directory, update existing files and scan Audio Player again. Adapt www-data to your web-server user.
sudo -u www-data php occ maintenance:mimetype:update-db --repair-filecache
sudo -u www-data php occ maintenance:mimetype:update-js
sudo -u www-data php occ audioplayer:scan username