getPlayableDuration method

Future<double> getPlayableDuration()

Get the playable duration of the current video.

Implementation

Future<double> getPlayableDuration() async {
  if (_isNeedDisposed) return 0;
  await _initPlayer.future;
  final result = await _mc!.invoke<double>('getPlayableDuration');
  return result ?? 0;
}