prepare method
准备下载 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);
}