seekTo method
Moves the cursor of the playback to an specific time.
Must give the position
of the specific millisecond of playback, if
the position
is bigger than the duration of source the duration
of the video is used as position.
Implementation
Future<bool> seekTo(int position) async {
try {
Map<String, dynamic> args = {"position": position};
await _channel.invokeMethod<void>("player#seekTo", args);
return true;
} catch (ex) {
debugPrint("$ex");
}
return false;
}