chore: Follow up audio player mimetype

This commit is contained in:
Christian Kußowski 2026-03-04 14:11:51 +01:00
parent 3c77e2f457
commit 03f8f98e03
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -204,7 +204,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
if (file != null) {
audioPlayer.setFilePath(file.path);
} else if (kIsWeb) {
final blob = html.Blob([matrixFile.bytes], 'audio/mpeg');
final blob = html.Blob([matrixFile.bytes], matrixFile.mimeType);
final url = html.Url.createObjectUrlFromBlob(blob);
await audioPlayer.setAudioSource(AudioSource.uri(Uri.parse(url)));
} else {