addTaskWithURLItem static method

Future<void> addTaskWithURLItem(
  1. TTVideoEnginePreloaderURLItem item
)

Implementation

static Future<void> addTaskWithURLItem(TTVideoEnginePreloaderURLItem item) async {
  registMethodChannelCallHandler();

  Map<dynamic, dynamic> modelMap = item.toJson();
  TTFLogger.i('TTVideoEnginPreload', 'addTaskWithURLItem:$modelMap');
  await _methodChannel.invokeMethod<void>('ls_addTaskWithURLItem', modelMap);
  item.registEvent();
}