Device audios not working
ahmeddarafat opened this issue · 1 comments
ahmeddarafat commented
Checklist
- I read the troubleshooting guide before raising this issue
- I made sure that the issue I am raising doesn't already exist
Current bug behaviour
I try to play device's audio
Expected behaviour
but it doesn't work
Steps to reproduce
when i try to play asset audio it works correctly
but when I try to play a device audio it doesn't work
Code sample
Code sample
player.play(DeviceFileSource("content://media/external/audio/media/181888"));
Affected platforms
Android
Platform details
No response
AudioPlayers Version
6.0.0
Build mode
debug
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(AndroidAudioError, setDataSource failed.: status=0x80000000, java.io.IOException: setDataSource failed.: status=0x80000000
Full Logs
my full logs or a link to a gist
Flutter doctor:
Output of: flutter doctor -v
Related issues / more information
No response
Working on PR
no way
Codel1417 commented
It appears to related to Flutter 3.24. I am encountering the same issue.