moveToNext method

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

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

Implementation

Future<void> moveToNext(
    {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("moveToNext", wrapWithPlayerId(arg: info));
}