playableDuration property

Future<Duration> get playableDuration

Buffered playback duration.

Implementation

Future<Duration> get playableDuration async {
  double duration = await engineInstanceMethodChannel.invokeMethod("getPlayableDuration") ?? 0;
  return Duration(milliseconds: duration.ceil());
}