seekToMediaSource method

void seekToMediaSource(
  1. int position,
  2. bool playWhenReady
)

Seek to index of a media-item

Implementation

void seekToMediaSource(int position, bool playWhenReady) async {
  await _methodChannel.invokeMethod("seek_source_to_index",
      {"source_index": position, "play_when_ready": playWhenReady});
}