seekTo method

  1. @override
Future<void> seekTo(
  1. int textureId,
  2. Duration position
)
override

Sets the video position to a Duration from the start.

Implementation

@override
Future<void> seekTo(int textureId, Duration position) {
  return _api.seekTo(PositionMessage(
    textureId: textureId,
    position: position.inMilliseconds,
  ));
}