Files
SpotiFLAC-Mobile/lib
zarzet 5f3d6fa287 fix(ios): play formats AVPlayer cannot open and skip unplayable songs
AVPlayer, the iOS and macOS engine, cannot open APE, WavPack, DSF/DFF,
TTA, TAK, Musepack, WMA, Matroska, WebM, DTS or Ogg Vorbis, nor local
files without a usable extension. Such songs now play from a temporary
FLAC copy that FFmpeg makes (first audio stream, tags kept, 4096-sample
blocks that Apple's decoder accepts, DSD at 176.4 kHz 24-bit). Formats
some system versions open (Ogg, Opus) and local files AVPlayer refuses
get the copy after the failure. Copies are keyed by song source, bounded
to three files and 1 GiB, pinned while playing or prepared, and used by
gapless and AutoMix preparation.

A song that still cannot play names its format in a snackbar and the
next queue item plays, stopping after one pass over the queue or ten
songs in a row. Missing files, network failures and other platforms keep
the existing error.

The NAS playback proxy now serves byte ranges itself when a server
answers a range request with the whole file; AVPlayer otherwise fails
every format but MP3 with AVErrorServerIncorrectlyConfigured (-11850).
2026-11-04 04:04:18 +07:00
..