getCurrentTime method

Future<Duration> getCurrentTime()

Get the current playback position

Implementation

Future<Duration> getCurrentTime() async {
  final currentTimeInMilliseconds = await _nativeApi.getCurrentTime();
  return Duration(milliseconds: currentTimeInMilliseconds);
}