seek method
Set the video playback progress to a specific time and start playing.
将视频播放进度定位到指定的进度进行播放 @param progress 要定位的视频时间,单位 秒 The video playback time to be located, in seconds
Implementation
Future<void> seek(double progress) async {
if (_isNeedDisposed) return;
await _initPlayer.future;
await _vodPlayerApi.seek(DoublePlayerMsg()
..value = progress
..playerId = _playerId);
}