seekAbsPlayback method

Future seekAbsPlayback(
  1. String seekTime
)

按绝对时间回放定位 seekTime 定位时间 格式为 yyyy-MMdd'T'HH:mm:ss.SSSZ

Implementation

Future<dynamic> seekAbsPlayback(String seekTime) async {
  //ios设备需要将时间转为时间戳
  // if (defaultTargetPlatform == TargetPlatform.iOS) {
  //   DateTime seek = DateTime.parse(seekTime);
  //   seekTime = (seek.millisecondsSinceEpoch / 1000).toString();
  // }
  return await _channel.invokeMethod('seekAbsPlayback', <String, dynamic>{
    "seekTime": seekTime,
  });
}