setLoop method

Future<void> setLoop(
  1. bool loop
)

Set whether to loop playback or not

设置是否循环播放

Implementation

Future<void> setLoop(bool loop) async {
  if (_isNeedDisposed) return;
  await _initPlayer.future;
  await _vodPlayerApi.setLoop(BoolPlayerMsg()
    ..value = loop
    ..playerId = _playerId);
}