moveTo method

Future<void> moveTo({
  1. @required String? uid,
  2. String? accId,
  3. String? accKey,
  4. String? token,
  5. String? region,
})

移动到指定位置开始准备播放,url播放方式只需要填写uid;sts播放方式,需要更新sts信息 uid 指定资源的uid,代表在列表中的唯一标识

Implementation

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