getSeekable method

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

Implementation

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