I am using just_audio in flutter to play audio files. All is lovely, except that just_audio uses the file-name extension to determine the file type. Therefore, if your URL does not end with the appropriate few characters, then you cannot play the file. From reading the issues on GitHub there appears to be a way to side-step this problem (#86 and #87) but I'm afraid I don't understand the answer.
Can some-one point me to an easy way to play such a URL?
Ways to replicate the issue:
- Download the example project from just_audio
- Replace one of the URIs with https://www.dropbox.com/s/egtn3aavqggpdj2/Bible_ResurrectionLife.mp3%3Fdl=1
- When you attempt to play the audio file, you should see the following error:
flutter: An error occured (-11800) The operation could not be completed
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: PlatformException(-11800, The operation could not be completed, null, null)