seekTo method

  1. @override
Future<void> seekTo(
  1. int viewId,
  2. double millisecond
)
override

Implementation

@override
Future<void> seekTo(int viewId, double millisecond) async {
  try {
    var methodChannel = MethodChannel('${channelPrefix}_$viewId');
    await methodChannel.invokeMethod<void>('seekTo', {
      'millisecond': millisecond,
    });
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
  }
}