audioplayers icon indicating copy to clipboard operation
audioplayers copied to clipboard

Device audios not working

Open ahmeddarafat opened this issue 1 year ago • 1 comments

Checklist

  • [X] I read the troubleshooting guide before raising this issue
  • [X] 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

ahmeddarafat avatar Aug 21 '24 01:08 ahmeddarafat

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

Codel1417 avatar Aug 25 '24 04:08 Codel1417