When I tried to play a sound from my app I got an AudioPlayerException

338 views Asked by At

When I play a sound in my project, I get this AudioPlayerException:

its a screenshot for the error

AudioPlayers Exception: AudioPlayerException(
        AssetSource(path: sounds/numbers/number_one_sound.mp3),
        PlatformException(WebAudioError, Failed to set source. For troubleshooting, see
        https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, MediaError: MEDIA_ELEMENT_ERROR: Format error (Code: 4),
        null)

I have tried to change the syntax of the path in the pubspec.yaml file but it's not working.

0

There are 0 answers