setLoop method
设置循环播放
Enable or disable loop playback.
loop
Whether to enable loop playback.
Implementation
Future<void> setLoop(bool loop) async {
await _aliPlayer.setLoop(loop);
bool newValue = await _aliPlayer.isLoop();
logi("setLoop: $loop, real: $newValue");
isLoopNotifier.value = newValue;
}