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

play multiple times #1762

Open
2 tasks done
Jorge-Saieg opened this issue Feb 27, 2024 · 2 comments
Open
2 tasks done

play multiple times #1762

Jorge-Saieg opened this issue Feb 27, 2024 · 2 comments
Labels
bug platform-android Affects the android platform

Comments

@Jorge-Saieg
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 want to play a sound multiple times in a second, and is playing only once and getting:
D/AudioManager( 7529): dispatching onAudioFocusChange(-1) to android.media.AudioManager@181a27axyz.luan.audioplayers.player.FocusManager$$ExternalSyntheticLambda0@6459b34
This is the sound:
https://github.com/bluefireteam/audioplayers/assets/61739438/8f66177c-bb23-4474-91ff-1242f9922967

Thanks!

Expected behaviour

Play a short sound multiple times in a second

Steps to reproduce

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

Code sample

Code sample
void main() {
}

Affected platforms

Android

Platform details

No response

AudioPlayers Version

main 5.2.1

Build mode

debug

Audio Files/URLs/Sources

beep.mov

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

@Gustl22 Gustl22 added the platform-android Affects the android platform label Mar 24, 2024
@Gustl22
Copy link
Collaborator

Gustl22 commented Mar 24, 2024

Did you try AudioPool? Also not quite sure if, mov is supported, but could be.

@gerablin
Copy link

I ran into the same problem. My issue was fixed when I added
player.setReleaseMode(ReleaseMode.stop);

right after setting the source of the player. Unfortunately I cannot see your example code if this might be same for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-android Affects the android platform
Projects
None yet
Development

No branches or pull requests

3 participants