getPlayed method

  1. @override
Future<List<TimeRange?>> getPlayed()
override

Implementation

@override
Future<List<PlatformInterface.TimeRange?>> getPlayed() {
  List<PlatformInterface.TimeRange> ranges = [];
  for (var i = 0; i < _theoPlayerJS.played.length; i++) {
    ranges.add(PlatformInterface.TimeRange(start: _theoPlayerJS.played.start(i), end: _theoPlayerJS.played.end(i)));
  }
  return Future.value(ranges);
}