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