seekTo method
Set the specified playback progress, Unit is millisecond.
millisecond
Point in time of specified playback progress
Implementation
Future<ZegoUIKitMediaSeekToResult> seekTo(int millisecond) async {
final seekResult = await ZegoUIKitCore.shared.mediaSeekTo(millisecond);
if (ZegoErrorCode.CommonSuccess != seekResult.errorCode) {
ZegoUIKitCore.shared.error.errorStreamCtrl?.add(ZegoUIKitError(
code: ZegoUIKitErrorCode.mediaSeekError,
message: 'seek result:${seekResult.errorCode}',
method: 'seekTo',
));
}
return seekResult;
}