addTaskWithVidItem static method

Future<void> addTaskWithVidItem(
  1. TTVideoEnginePreloaderVidItem item
)

Implementation

static Future<void> addTaskWithVidItem(TTVideoEnginePreloaderVidItem item) async {
  registMethodChannelCallHandler();

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