prepare method

Future prepare(
  1. String type,
  2. String vid, {
  3. int? index,
  4. String? region,
  5. String? accessKeyId,
  6. String? accessKeySecret,
  7. String? securityToken,
  8. String? playAuth,
})

准备下载 type {FlutterAvpdef.DOWNLOADTYPE_STS / FlutterAvpdef.DOWNLOADTYPE_AUTH} STS {vid,accessKeyId,accessKeySecret,securityToken} AUTH {vid,playAuth}

Implementation

Future<dynamic> prepare(String type, String vid,
    {int? index,
    String? region,
    String? accessKeyId,
    String? accessKeySecret,
    String? securityToken,
    String? playAuth}) async {
  var map = {
    'type': type,
    'vid': vid,
    'index': index,
    'region': region,
    'accessKeyId': accessKeyId,
    'accessKeySecret': accessKeySecret,
    'securityToken': securityToken,
    'playAuth': playAuth
  };
  return _methodChannel.invokeMethod("prepare", map);
}