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

In the latest audioplayers: ^6.1.0 audio not playing in background IOS #1840

Open
2 tasks done
Nagaraj-kumaravel opened this issue Sep 16, 2024 · 1 comment
Open
2 tasks done
Labels

Comments

@Nagaraj-kumaravel
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

In the latest audioplayers: ^6.1.0 audio not playing in background.
Even i added background mode as audio in info.plist and enabled audio in signincapabilities
UIBackgroundModes

audio
fetch

Expected behaviour

It should play the sound even in the background mode

Steps to reproduce

  1. Execute flutter run on the code sample
  2. ...
  3. ...

Code sample

Code sample
void main() {
}

Affected platforms

iOS

Platform details

No response

AudioPlayers Version

6.1.0

Build mode

debug

Audio Files/URLs/Sources

No response

Screenshots

No response

Logs

my relevant logs
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

@ferryfernandez
Copy link

Have you tried this?

If the file is placed in assets, for example:
- assets/musics/hulahula.mp3

await player.play(DeviceFileSource('musics/hulahula.mp3));

#https://github.com/bluefireteam/audioplayers/blob/main/getting_started.md

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