audiobookshelf/server/objects
Oliver Marriott d9355ac3aa Force AAC transcode when streaming mka+opus to desktop client
Matroska audio containers (aka mka files) with Opus codec streams inside
were unplayable on the desktop client because hls.js was unable to
decode the stream, resulting in an infinitely "spinning" play button.

When configuring a stream, we now check for the opus codec and force AAC
transcoding.

Matroska containers support other codecs besides Opus, eg: mp3, which do
not require transcoding and work fine before this patch, which is why we
check for opus in codecsToForceAAC instead of AudioMimeType.MKA in
mimeTypesToForceAAC.

The AudioMimeType.OPUS mimetype is already marked as requiring
transcoding but since its inside a container this check does not
evaluate to true, we must check the codec explicitly.
2026-03-11 00:35:12 +11:00
..
files Fix API including basepath in tracks contentUrl 2025-02-01 16:47:36 -06:00
metadata Migrate tools and collapse series. fix continue shelves. remove old objects 2025-01-05 14:09:03 -06:00
settings CORS 2025-08-03 13:52:58 +02:00
Backup.js Update Backup to use key to check for old backups no longer supported 2023-07-14 14:20:35 -05:00
DailyLog.js Update:Log uncaught exceptions to crash_logs.txt #706 & cleanup logger 2024-02-15 16:46:19 -06:00
DeviceInfo.js Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule 2023-07-09 11:39:15 -05:00
Notification.js Init sqlite take 2 2023-07-04 18:14:44 -05:00
PlaybackSession.js Update PlaybackSession to use new library item model 2025-01-03 11:16:03 -06:00
PodcastEpisodeDownload.js Update podcast episode downloads to always attempt embedding meta tags regardless of format 2025-08-17 09:05:29 -05:00
Stream.js Force AAC transcode when streaming mka+opus to desktop client 2026-03-11 00:35:12 +11:00
Task.js Update:Added string localization for tasks #3303 #3352 2024-09-21 14:02:57 -05:00
TrackProgressMonitor.js Improve documentation and arg names in TrackProgressMonitor.js 2024-07-20 21:42:58 +03:00