Skip to content
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

Device audios not working #1833

Open
2 tasks done
ahmeddarafat opened this issue Aug 21, 2024 · 1 comment
Open
2 tasks done

Device audios not working #1833

ahmeddarafat opened this issue Aug 21, 2024 · 1 comment
Labels

Comments

@ahmeddarafat
Copy link

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
Copy link

It appears to related to Flutter 3.24. I am encountering the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants