-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't play audio on web. throws 'Failed to load because no supported source was found.' #1427
Comments
The link to the audio file is broken. Can you upload it here, e.g. via |
Hi, I have a very similar issue, the error message I get is subtly different:
I have also tried the same audio file using the latest Example App. The audio still does not play but a similar but subtly different error message is recieved:
The odd thing is that this error is coming from a live production web app that has not changed for a number of months. Neither has the source audio. I have tested the web-app on the following platforms and get the same issue:
|
I have the same issue using this plugin for the first time with all packages up to date as well as Flutter up to date. |
@krishnaprasadgandrath-nooor @RedHappyLlama @nitroplr we need the file in order to test your case. Can you upload it here wrapped in a zip file plz? Thx. Otherwise we cannot help :) |
The project was too big to share as a zip but if you try running this project on web it will throw an error. After a lot of playing with this package and other audio packages I'm not sure it's even possible to play from assets on web. https://github.com/nitroplr/audioplayers_web_bug
|
@nitroplr Sure, it is possible, just try our example. Edit: note that the default path in You also need a file type which is supported by your browser: Your provided file seems to be supported:
I can also play your file in our example, when including it as asset and use its asset path in the code :) |
Closing in favor of #1494 |
Checklist
Current bug behaviour
I am trying to play audio on web platofrm using online url. but the audio player throws error stating not supported source.
Expected behaviour
No response
Steps to reproduce
AudioPlayer().play(UrlResource(url));
Code sample
Code sample
Affected platforms
web
Platform details
No response
AudioPlayers Version
3.0.1
Build mode
debug
Audio Files/URLs/Sources
https://file-examples.com/storage/fe1aa0c9d563ea1e4a1fd34/2017/11/file_example_MP3_700KB.mp3
Screenshots
No response
Logs
Related issues / more information
No response
Working on PR
no way
The text was updated successfully, but these errors were encountered: