addVidPlayerConfigByStringValue static method

Future<void> addVidPlayerConfigByStringValue(
  1. String key,
  2. String value
)

添加vid的playerconfig参数 key: 对应playerConfig中的参数名字 value: 对应key参数的值 调用之前必须先执行createVidPlayerConfigGenerator Android 设置加密类型:key 为 EncryptType,value 可选:Unencrypted,AliyunVoDEncryption,HLSEncryption

Implementation

static Future<void> addVidPlayerConfigByStringValue(
    String key, String value) async {
  Map param = {
    "key": key,
    "value": value,
  };
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("addVidPlayerConfigByStringValue", param);
}