fixup video playback on apple platforms

This commit is contained in:
Henry Hiles 2026-11-12 14:42:50 -05:00
commit 0e29690134
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -32,7 +32,7 @@ class const AudioPlayer(
// Keeps the audio loaded after it finishes, so it can be replayed
await player.setReleaseMode(.stop);
try {
// AVFoundation infers the format from the extension, which the cached file lacks
// AVFoundation needs the format, since gomuks caches files without an extension
await player.setSource(
audioplayers.DeviceFileSource(audio.path, mimeType: info?.mimeType),
);