getPosition method

  1. @override
Future<Duration> getPosition(
  1. int textureId
)
override

Gets the video position as Duration from the start.

Implementation

@override
Future<Duration> getPosition(int textureId) async {
  PositionMessage response = await _api.position(TextureMessage()..textureId = textureId);
  return Duration(milliseconds: response.position!);
}