audioplayers icon indicating copy to clipboard operation
audioplayers copied to clipboard

onPlayerStateChanged don't send playing notification when looping

Open Jon-Salmon opened this issue 3 years ago • 3 comments

onPlayerStateChanged sends AudioPlayerState.COMPLETED but no AudioPlayerState.PLAYING when release mode is set to LOOP after it loops.

As such, if you just subscribe to onPlayerStateChanged the app doesn't know that audio is still playing. I have reproduced on iOS but haven't tested any other platforms.

Jon-Salmon avatar May 02 '21 14:05 Jon-Salmon

Can you confirm on audioplayers: ^1.1.0 ?

Gustl22 avatar Sep 27 '22 14:09 Gustl22

@Gustl22 Same thing happens for me with audioplayers: ^1.1.0 can confirm.

antonkrasov avatar Feb 05 '23 19:02 antonkrasov

also when audio play interuption happens for example on incoming call onPlayerStateChanged is not triggered

fullflash avatar Jan 22 '24 03:01 fullflash