setLoop method

  1. @override
Future<void> setLoop({
  1. required bool loopPlaylists,
})

This function indicates whether the video player should continuously play a playlist or if it should stop playing after the last video in the playlist ends. The default behavior is that playlists do not loop.

This setting will persist even if you load or cue a different playlist, which means that if you load a playlist, call the setLoop function with a value of true, and then load a second playlist, the second playlist will also loop.

If loopPlaylists is true, then the video player will continuously play playlists. After playing the last video in a playlist, the video player will go back to the beginning of the playlist and play it again.

Implementation

@override
Future<void> setLoop({required bool loopPlaylists}) {
  return _eval('player.setLoop($loopPlaylists)');
}