getProgress method

  1. @override
Future<Map<String, Duration>> getProgress(
  1. TauPlayerCallback callback
)
override

Implementation

@override
Future<Map<String, Duration>> getProgress(TauPlayerCallback callback, ) async
{
  Map<String, int> m = (await invokeMethod( callback, 'getPlayerState', Map<String, dynamic>(),) as Map) as Map<String, int>;
  Map<String, Duration> r = {'duration': Duration(milliseconds: m['duration']!), 'progress': Duration(milliseconds: m['progress']!),};
  return r;
}