addBlackDevice static method

Future<void> addBlackDevice(
  1. String type,
  2. String model
)

type : {FlutterAvpdef.BLACK_DEVICES_H264 / FlutterAvpdef.BLACK_DEVICES_HEVC}

Implementation

static Future<void> addBlackDevice(String type, String model) async {
  var map = {
    'black_type': type,
    'black_device': model,
  };
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("addBlackDevice", map);
}