getVideoDuration method

Future<num?> getVideoDuration()

Gets the duration of the currently loaded video.

Returns the video duration in seconds.

Implementation

Future<num?> getVideoDuration() async {
  return await TargetvideoFlutterPluginPlatform.instance.getVideoDuration(playerReference);
}