moveToPre method

Future<void> moveToPre({
  1. String? accId,
  2. String? accKey,
  3. String? token,
  4. String? region,
})

当前位置移动到上一个进行准备播放 没有入参是url播放方式;有入参是sts播放方式,需要更新sts信息

Implementation

Future<void> moveToPre({
  String? accId,
  String? accKey,
  String? token,
  String? region,
}) async {
  Map<String, dynamic> info = {
    'accId': accId,
    'accKey': accKey,
    'token': token,
    'region': region
  };
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("moveToPre", wrapWithPlayerId(arg: info));
}