Pause stops instead of pause
arkaray opened this issue · comments
Arka Ray commented
I copied, pasted (and modified the names a bit) this code from here:
void _pause() async {
final result = await player.pause();
if (result == 1) setState(() => playerState = PlayerState.paused);
}
but player starts from the start when following is invoked:
void _play() async {
final result = await player.play(kUrl);
if (result == 1) setState(() => playerState = PlayerState.playing);
}
I am using Android 7.1.1 on Moto G5S to test.
Console message on pause:
W/MediaPlayer(24746): mediaplayer went away with unhandled events
Erick Ghaumez commented
hi, does the pause button works for you in the example app ?
Arka Ray commented
yes