Back

Unable to open aac files in browser

  • 1
  • Flutter
  • Storage
Note
31 Jul, 2024, 20:27

I am a flutter app, when the user uploads an aac audio file, it gets stored in the bucket

The MIME type is audio/x-hx-aac-adts

When i try to open that link in the browser it starts downloading the file

If i upload an mp3 file it works fine and i can listen to it on the browser but aac files no

Another problem is that even those mp3 files, when i try to play them in the app, i cant access their duration for some reason

TL;DR
- Flutter app developer facing issues opening aac files in the browser, they get downloaded instead of playing - MIME type of aac files is audio/x-hx-aac-adts - Able to open and listen to mp3 files in the browser without issues - Also experiencing trouble accessing the duration of mp3 files in the app Solution: Ensure proper MIME type configuration for aac files to allow direct browser playback. For accessing durations of mp3 files in the app, check the code handling audio file properties.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more