You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Android 12, and audioplayers has the same issue. it works, thankyou @marc7garcia .
But for long media files or streams, lowLatency has some limitations.
Thank you for the report. It is hard for us to support all devices. We're happy if you could help us fix this. Keep in mind, that we're currently working on using Exoplayer instead.
Checklist
Current bug behaviour
In API 23, when I pause or stop Media Player running with loop mode, I get the next error and player never stops:
E/MediaPlayer( 3828): pause called in state 8
E/MediaPlayer( 3828): error (-38, 0)
E/MediaPlayer( 3828): Attempt to call getDuration without a valid mediaplayer
E/MediaPlayer( 3828): error (-38, 0)
E/MediaPlayer( 3828): Attempt to call getDuration without a valid mediaplayer
E/MediaPlayer( 3828): error (-38, 0)
E/MediaPlayer( 3828): Attempt to perform seekTo in wrong state: mPlayer=0x7654172180, mCurrentState=0
E/MediaPlayer( 3828): error (-38, 0)
E/MediaPlayer( 3828): Error (-38,0)
E/MediaPlayer( 3828): Error (-38,0)
E/MediaPlayer( 3828): Error (-38,0)
E/MediaPlayer( 3828): Error (-38,0)
I/flutter ( 3828): AudioPlayers Exception: AudioPlayerException(
I/flutter ( 3828): AssetSource(path: sounds/alert.mp3),
I/flutter ( 3828): PlatformException(AndroidAudioError, MEDIA_ERROR_UNKNOWN {what:-38}, MEDIA_ERROR_UNKNOWN {extra:0}, null)
Expected behaviour
Stop playing audio in API 23. It works well in API < 23.
Steps to reproduce
Code sample
Code sample
Affected platforms
Android
Platform details
Android 6 (API 23), Android Emulator
AudioPlayers Version
5.2.1
Build mode
debug
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
No response
Related issues / more information
No response
Working on PR
no way
The text was updated successfully, but these errors were encountered: