getVideoDuration method

Future<double?> getVideoDuration()

Returns the duration of the currently playing video in seconds

Implementation

Future<double?> getVideoDuration() async {
  return await _methodChannel.invokeMethod<double>('getVideoDuration');
}