The core conversion helper is in [includes/db.php (line
1161)](/Users/tyemeclifford/Documents/GH/mediaplayer/includes/db.php:1161).
The upload flows insert the converted MP4 first for playback and retain
the original M4A as a separate source in [admin/add.php (line
129)](/Users/tyemeclifford/Documents/GH/mediaplayer/admin/add.php:129)
and [admin/edit.php (line
172)](/Users/tyemeclifford/Documents/GH/mediaplayer/admin/edit.php:172).
I also updated the admin upload hints, [README.md (line
77)](/Users/tyemeclifford/Documents/GH/mediaplayer/README.md:77), and
[changelog.md (line
14)](/Users/tyemeclifford/Documents/GH/mediaplayer/changelog.md:14).
What changed:
Added uploaded/direct audio playback paths in
[index.php](/Users/tyemeclifford/Documents/GH/mediaplayer/index.php) and
[embed.php](/Users/tyemeclifford/Documents/GH/mediaplayer/embed.php).
Added common audio upload support: MP3, M4A, AAC, WAV, FLAC, OGG, OGA,
OPUS.
Added waveform poster generation for uploaded audio via ffmpeg, stored
like normal thumbnails under media/thumbs/.
Updated add/edit forms to accept media files, not just video files.
Added audio-friendly labels like Audio, 320kbps, 256kbps, 128kbps.
Updated docs and changelog.
It now recalculates video sort_order from created_at newest-first, so
videos with corrected/original publish dates appear first in the
homepage and public catalogue. I also updated
catalogue/admin/latest-video ordering to use publish date as a
tie-breaker after stored sort order.
Also updated
[README.md](/Users/tyemeclifford/Documents/GH/mediaplayer/README.md) and
[changelog.md](/Users/tyemeclifford/Documents/GH/mediaplayer/changelog.md).