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 the sound many times, I can't hear after some moment #766

Closed
minikupa opened this issue Feb 15, 2021 · 2 comments
Closed

play the sound many times, I can't hear after some moment #766

minikupa opened this issue Feb 15, 2021 · 2 comments
Labels

Comments

@minikupa
Copy link

I'm using audioplayers, but if I play the sound many times, I can't hear you some moment. I'm playing the asset file on the emulator. Some devices work well, and some devices generate this error.

error code : E/MediaPlayerNative(25773): pause called in state 0, mPlayer(0xb5889c10)
E/MediaPlayerNative(25773): error (-38, 0)
E/MediaPlayerNative(25773): Attempt to perform seekTo in wrong state: mPlayer=0xb5889c10, mCurrentState=0
E/MediaPlayerNative(25773): error (-38, 0)
I/flutter (25773): _platformCallHandler call audio.onError {playerId: 52696506-da95-4d5f-89d7-05b5c7cc870e, value: MediaPlayer error with what:MEDIA_ERROR_UNKNOWN {extra:-19} extra:MEDIA_ERROR_UNKNOWN {extra:-19}}

my code : _cache.play('music/dont_run.mp3');
in https://github.com/minikupa/sorryKane/blob/master/lib/widget/Kane.dart

@minikupa minikupa added the bug label Feb 15, 2021
@minikupa
Copy link
Author

same #661

@minikupa
Copy link
Author

Downgrading to audioplayers: ^0.12.0 solve it for me. Maybe

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

1 participant