commit cc34f13777b2eff58523fef3a96a827dc3bfda86 Author: laiiihz Date: Mon Oct 26 21:34:10 2020 +0800 init diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..827e08d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +## 0.1.0 +- feat: 主体功能已完成 + +## 0.0.1 +- feat: Android端能够推流; iOS端能够推流 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..365e27f --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ +Copyright (C) 2020 yohom + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2685437 --- /dev/null +++ b/README.md @@ -0,0 +1,150 @@ +![Logo](https://github.com/fluttify-project/fluttify-core-example/blob/develop/other/Logo-Landscape.png?raw=true) + +# 腾讯直播 Flutter插件 +[![pub package](https://img.shields.io/pub/v/tencent_live_fluttify.svg)](https://pub.Flutter-io.cn/packages/tencent_live_fluttify) + +**专业版为付费插件, 如有需要请联系qq 382146139** + +**专业版为付费插件, 如有需要请联系qq 382146139** + +**专业版为付费插件, 如有需要请联系qq 382146139** + +# Fluttify系列插件 +| 名称 | 描述 | 仓库 | +|:-----:|:-----:|:-----:| +| [高德地图](https://github.com/fluttify-project/amap_map_fluttify) | 高德地图地图组件, 提供地图控件 | [![pub package](https://img.shields.io/pub/v/amap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_map_fluttify) | +| [高德定位](https://github.com/fluttify-project/amap_location_fluttify) | 高德地图定位组件, 提供独立的定位功能 | [![pub package](https://img.shields.io/pub/v/amap_location_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_location_fluttify) | +| [高德搜索](https://github.com/fluttify-project/amap_search_fluttify) | 高德地图搜索组件, 提供poi搜索等功能 | [![pub package](https://img.shields.io/pub/v/amap_search_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_search_fluttify) | +| [百度地图](https://github.com/fluttify-project/bmap_map_fluttify) | 百度地图, 包含了地图控件, 定位以及搜索poi等功能 | [![pub package](https://img.shields.io/pub/v/bmap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/bmap_map_fluttify) | +| [百度人脸识别](https://github.com/fluttify-project/baidu_face_flutter) | 百度人脸识别, 提供活体检测等功能 | [![pub package](https://img.shields.io/pub/v/baidu_face_flutter.svg)](https://pub.Flutter-io.cn/packages/baidu_face_flutter) | +| [网易直播](https://github.com/fluttify-project/netease_live_fluttify) | 网易直播推流组件 | [![pub package](https://img.shields.io/pub/v/netease_live_fluttify.svg)](https://pub.Flutter-io.cn/packages/netease_live_fluttify) | +| [网易云信](https://github.com/fluttify-project/nim_fluttify) | 网易云信 IM组件 | [![pub package](https://img.shields.io/pub/v/nim_fluttify.svg)](https://pub.Flutter-io.cn/packages/nim_fluttify) | +| [腾讯直播](https://github.com/fluttify-project/tencent_live_fluttify) | 腾讯直播, 包含推流组件和播放组件 | [![pub package](https://img.shields.io/pub/v/tencent_live_fluttify.svg)](https://pub.Flutter-io.cn/packages/tencent_live_fluttify) | +| [腾讯IM](https://github.com/fluttify-project/tim_fluttify) | 腾讯IM组件 | [![pub package](https://img.shields.io/pub/v/tim_fluttify.svg)](https://pub.Flutter-io.cn/packages/tim_fluttify) | +| [腾讯地图](https://github.com/fluttify-project/tmap_map_fluttify) | 腾讯地图组件 | [![pub package](https://img.shields.io/pub/v/tmap_map_fluttify.svg)](https://pub.Flutter-io.cn/packages/tmap_map_fluttify) | +| [讯飞语音合成](https://github.com/fluttify-project/xftts_fluttify) | 腾讯语言合成组件, 提供文字转语言功能 | [![pub package](https://img.shields.io/pub/v/xftts_fluttify.svg)](https://pub.flutter-io.cn/packages/xftts_fluttify) | +| [极光统计](https://github.com/fluttify-project/janalytics_fluttify) | 极光统计组件, 提供异常上报等功能 | [![pub package](https://img.shields.io/pub/v/janalytics_fluttify.svg)](https://pub.flutter-io.cn/packages/janalytics_fluttify) | +| [阿里云RTC](https://github.com/fluttify-project/ali_rtc_fluttify) | 阿里云实时音视频 | [![pub package](https://img.shields.io/pub/v/ali_rtc_fluttify.svg)](https://pub.flutter-io.cn/packages/ali_rtc_fluttify) | +| [环信](https://github.com/fluttify-project/easemob_im_fluttify) | 环信IM | [![pub package](https://img.shields.io/pub/v/easemob_im_fluttify.svg)](https://pub.flutter-io.cn/packages/easemob_im_fluttify) | +| [未完待续...](https://github.com/fluttify-project) | 如有其它需求, 请联系qq 382146139 | ![fluttify](https://img.shields.io/badge/fluttify-welcom-green) | + +## 依赖 +```yaml +dependencies: + flutter: + sdk: flutter + tencent_live_fluttify: ^x.x.x +``` + +## 配置 +### Android +1. 如果你的AndroidManifest.xml的application标签配置了`android:label`属性, 那么编译时会出错, 报错信息为: +```text +/Users/xxx/AndroidManifest.xml:10:9-41 Error: + Attribute application@label value=(new_project_test) from AndroidManifest.xml:10:9-41 + is also present at [com.tencent.liteavsdk:LiteAVSDK_Smart:7.2.8927] AndroidManifest.xml:30:9-41 value=(@string/app_name). + Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:8:5-46:19 to override. + +FAILURE: Build failed with an exception. +``` +你需要做的是按照错误提示, 添加`tools:replace="android:label"`到application标签下, 注意`tools:`命名空间需要另外导入. +完整的修改后的AndroidManifest.xml示例: +```xml + + package="xxx"> + + android:icon="@mipmap/ic_launcher"> + ... + + +``` + +### iOS +1. 推流需要摄像头和麦克风权限, 并且需要配置为UiKitView使能, 在Info.plist中添加: +```xml +NSMicrophoneUsageDescription +需要麦克风 +NSCameraUsageDescription +需要相机 +io.flutter.embedded_views_preview +YES +``` +2. 腾讯直播的pod比较大, 有198M, `pod install`时间比较久, 请耐心等待, `pod install --verbose`可以观察下载进度. + +## 导入 +```dart +import 'package:tencent_live_fluttify/tencent_live_fluttify.dart'; +``` + +## 使用 +参考[wiki](https://github.com/fluttify-project/tencent_live_fluttify/wiki). + +## 社区 +| QQ群 | +| :----------: | +| | + +## 社区版与专业版 +| 推流 | 社区版 | 专业版 | +|:-----:|:-----:|:-----:| +| 预览 | ✅ | ✅ | +| 推流 | ✅ | ✅ | +| 暂停推流 | ✅ | ✅ | +| 停止推流 | ✅ | ✅ | +| 停止预览 | ✅ | ✅ | +| 切换前后摄像头 | ✅ | ✅ | +| 打开/关闭闪光灯 | ✅ | ✅ | +| 播放背景音乐 | ✅ | ✅ | +| 停止背景音乐 | ✅ | ✅ | +| 暂停背景音乐 | ✅ | ✅ | +| 恢复背景音乐 | ✅ | ✅ | +| 麦克风音量大小 | ✅ | ✅ | +| 背景音乐音量大小 | ✅ | ✅ | +| 背景音乐音调高低 | ✅ | ✅ | +| 事件处理 | ✅ | ✅ | +| 设置观众看到的画面清晰度 | ☑️ | ✅ | +| 美颜 | ☑️ | ✅ | +| 滤镜 | ☑️ | ✅ | +| 调整摄像头的焦距 | ☑️ | ✅ | +| 设置曝光比例 | ☑️ | ✅ | +| 观众端镜像效果 | ☑️ | ✅ | +| 横屏推流 | ☑️ | ✅ | +| 隐私模式(垫片推流) | ☑️ | ✅ | +| 设置混音效果 | ☑️ | ✅ | +| 设置变调效果 | ☑️ | ✅ | +| 设置 Logo 水印 | ☑️ | ✅ | +| 开始本地录制 | ☑️ | ✅ | +| 停止本地录制 | ☑️ | ✅ | +| 发送 SEI 消息 | ☑️ | ✅ | + +| 拉流 | 社区版 | 专业版 | +|:-----:|:-----:|:-----:| +| 播放 | ✅ | ✅ | +| 恢复播放 | ✅ | ✅ | +| 恢复直播 | ✅ | ✅ | +| 是否在播放中 | ✅ | ✅ | +| 暂停播放 | ✅ | ✅ | +| 停止播放 | ✅ | ✅ | +| 事件处理 | ✅ | ✅ | +| 清晰度无缝切换 | ☑️ | ✅ | +| 画面调整 | ☑️ | ✅ | + +## LICENSE +> Copyright (C) 2020 yohom +> +> This program is free software: you can redistribute it and/or modify +> it under the terms of the GNU General Public License as published by +> the Free Software Foundation, either version 3 of the License, or +> (at your option) any later version. +> +> This program is distributed in the hope that it will be useful, +> but WITHOUT ANY WARRANTY; without even the implied warranty of +> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +> GNU General Public License for more details. +> +> You should have received a copy of the GNU General Public License +> along with this program. If not, see . diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..c6cbe56 --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,8 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..7c38603 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,75 @@ +group 'com.fluttify.tencent_live_fluttify' +version '1.0-SNAPSHOT' + +buildscript { + repositories { + google() + jcenter() + maven { url 'http://download.flutter.io' } + maven { url "https://oss.sonatype.org/content/groups/public" } + maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } + maven { url "https://dl.bintray.com/aweme-open-sdk-team/public" } + maven { url 'http://developer.huawei.com/repo/' } + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + } +} + +rootProject.allprojects { + repositories { + google() + jcenter() + maven { url 'http://download.flutter.io' } + maven { url "https://oss.sonatype.org/content/groups/public" } + maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } + maven { url "https://dl.bintray.com/aweme-open-sdk-team/public" } + maven { url 'http://developer.huawei.com/repo/' } + } +} + +apply plugin: 'com.android.library' + +android { + compileSdkVersion 28 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + main.jniLibs.srcDir 'libs' + } + defaultConfig { + minSdkVersion 16 + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + lintOptions { + disable 'InvalidPackage' + } + compileOptions { + targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_1_8 + } + packagingOptions { + merge 'res/values/values.xml' + merge 'AndroidManifest.xml' + merge 'R.txt' + merge 'classes.jar' + merge 'proguard.txt' + } + buildTypes { + release { + consumerProguardFiles "proguard-rules.pro" + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) + implementation 'androidx.annotation:annotation:1.1.0' + implementation 'androidx.appcompat:appcompat:1.1.0' + compileOnly rootProject.findProject(":foundation_fluttify") + // flutter plugin dependency + + // sdk dependency + api 'com.tencent.liteav:LiteAVSDK_Professional:7.2.8927' +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..38c8d45 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx1536M +android.enableR8=true +android.useAndroidX=true +android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..917840c --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip diff --git a/android/proguard-rules.pro b/android/proguard-rules.pro new file mode 100755 index 0000000..e24218b --- /dev/null +++ b/android/proguard-rules.pro @@ -0,0 +1 @@ +-keep class com.tencent.** { *; } diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..d90da26 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'tencent_live_fluttify' diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..38e601c --- /dev/null +++ b/android/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/TXCloudVideoViewFactory.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/TXCloudVideoViewFactory.java new file mode 100644 index 0000000..3e11f73 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/TXCloudVideoViewFactory.java @@ -0,0 +1,828 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify; + +import android.content.Context; +import android.view.View; +import android.util.Log; +import android.app.Activity; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.HashMap; + +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMessageCodec; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformView; +import io.flutter.plugin.platform.PlatformViewFactory; + +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; + +@SuppressWarnings("ALL") +class TXCloudVideoViewFactory extends PlatformViewFactory { + + TXCloudVideoViewFactory(BinaryMessenger messenger, Activity activity) { + super(StandardMessageCodec.INSTANCE); + + this.messenger = messenger; + this.activity = activity; + + new MethodChannel(messenger, "com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView", new StandardMethodCodec(new FluttifyMessageCodec())).setMethodCallHandler((methodCall, methodResult) -> { + Map args = (Map) methodCall.arguments; + TencentLiveFluttifyPlugin.Handler handler = handlerMap.get(methodCall.method); + if (handler != null) { + try { + handler.call(args, methodResult); + } catch (Exception e) { + e.printStackTrace(); + methodResult.error(e.getMessage(), null, null); + } + } else { + methodResult.notImplemented(); + } + }); + } + + private BinaryMessenger messenger; + private Activity activity; + + private final Map handlerMap = new HashMap() {{ + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onResume", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onResume(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onResume(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onPause", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onPause(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onPause(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeVideoView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::removeVideoView(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.removeVideoView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeFocusIndicatorView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::removeFocusIndicatorView(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.removeFocusIndicatorView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onDestroy", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onDestroy(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onDestroy(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getSurfaceView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::getSurfaceView(" + "" + ")"); + } + + // invoke native method + android.view.SurfaceView __result__ = null; + try { + __result__ = __this__.getSurfaceView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderMode", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setRenderMode(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderMode(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderRotation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setRenderRotation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLastFrame", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::clearLastFrame(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.clearLastFrame(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouchFocus", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onTouchFocus(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onTouchFocus(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setMirror", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setMirror(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::disableLog", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::disableLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.disableLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showLog", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::showLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.showLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLog", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::clearLog(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.clearLog(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogText", (__args__, __methodResult__) -> { + // args + // ref arg + android.os.Bundle var1 = (android.os.Bundle) ((Map) __args__).get("var1"); + // ref arg + android.os.Bundle var2 = (android.os.Bundle) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogText(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogText(var1, var2, var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::updateVideoViewSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::updateVideoViewSize(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.updateVideoViewSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::appendEventInfo", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::appendEventInfo(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.appendEventInfo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showVideoDebugLog", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::showVideoDebugLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.showVideoDebugLog(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMargin", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogMargin(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMargin(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMarginRatio", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogMarginRatio(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMarginRatio(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getUserId", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::getUserId(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUserId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setUserId", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setUserId(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setUserId(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::px2dip", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView::px2dip(" + var0 + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = com.tencent.rtmp.ui.TXCloudVideoView.px2dip(var0, var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::stop", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::stop(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stop(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouch", (__args__, __methodResult__) -> { + // args + // ref arg + android.view.View var1 = (android.view.View) ((Map) __args__).get("var1"); + // ref arg + android.view.MotionEvent var2 = (android.view.MotionEvent) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onTouch(" + var1 + var2 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.onTouch(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + }}; + + @Override + public PlatformView create(Context __, int id, Object params) { + Map __args__ = (Map) params; + + ////////////////////////////////初始化AndroidView//////////////////////////////////////// + + ////////////////////////////////初始化AndroidView//////////////////////////////////////// + + com.tencent.rtmp.ui.TXCloudVideoView view = new com.tencent.rtmp.ui.TXCloudVideoView(activity); + + // 同时存放viewId和refId的对象, 供后续viewId转refId使用 + getHEAP().put(String.valueOf(Integer.MAX_VALUE - id), view); + getHEAP().put(String.valueOf(System.identityHashCode(view)), view); + return new PlatformView() { + + // add to HEAP + @Override + public View getView() { + return view; + } + + @Override + public void dispose() {} + }; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/TencentLiveFluttifyPlugin.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/TencentLiveFluttifyPlugin.java new file mode 100644 index 0000000..a8e81c1 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/TencentLiveFluttifyPlugin.java @@ -0,0 +1,158 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify; + +import android.os.Bundle; +import android.util.Log; +import android.app.Activity; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.embedding.engine.plugins.activity.ActivityAware; +import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.sub_handler.*; +import com.fluttify.tencent_live_fluttify.sub_handler.custom.SubHandlerCustom; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class TencentLiveFluttifyPlugin implements FlutterPlugin, MethodChannel.MethodCallHandler, ActivityAware { + + private static List> handlerMapList; + + // v1 android embedding for compatible + public static void registerWith(Registrar registrar) { + final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.fluttify/tencent_live_fluttify", new StandardMethodCodec(new FluttifyMessageCodec())); + + TencentLiveFluttifyPlugin plugin = new TencentLiveFluttifyPlugin(); + + BinaryMessenger messenger = registrar.messenger(); + PlatformViewRegistry platformViewRegistry = registrar.platformViewRegistry(); + Activity activity = registrar.activity(); + + plugin.messenger = messenger; + plugin.platformViewRegistry = platformViewRegistry; + + handlerMapList = new ArrayList<>(); + handlerMapList.add(SubHandler0.getSubHandler(messenger)); + handlerMapList.add(SubHandler1.getSubHandler(messenger)); + handlerMapList.add(SubHandler2.getSubHandler(messenger)); + handlerMapList.add(SubHandler3.getSubHandler(messenger)); + handlerMapList.add(SubHandler4.getSubHandler(messenger)); + handlerMapList.add(SubHandlerCustom.getSubHandler(messenger, registrar.activity())); + + channel.setMethodCallHandler(plugin); + + // register platform view + platformViewRegistry.registerViewFactory("com.fluttify/com.tencent.rtmp.ui.TXCloudVideoView", new TXCloudVideoViewFactory(messenger, activity)); + } + + private BinaryMessenger messenger; + private PlatformViewRegistry platformViewRegistry; + + // v2 android embedding + @Override + public void onAttachedToEngine(FlutterPluginBinding binding) { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onAttachedToEngine@" + binding); + } + + final MethodChannel channel = new MethodChannel(binding.getBinaryMessenger(), "com.fluttify/tencent_live_fluttify", new StandardMethodCodec(new FluttifyMessageCodec())); + + messenger = binding.getBinaryMessenger(); + platformViewRegistry = binding.getPlatformViewRegistry(); + + handlerMapList = new ArrayList<>(); + handlerMapList.add(SubHandler0.getSubHandler(messenger)); + handlerMapList.add(SubHandler1.getSubHandler(messenger)); + handlerMapList.add(SubHandler2.getSubHandler(messenger)); + handlerMapList.add(SubHandler3.getSubHandler(messenger)); + handlerMapList.add(SubHandler4.getSubHandler(messenger)); + + channel.setMethodCallHandler(this); + } + + @Override + public void onDetachedFromEngine(FlutterPluginBinding binding) { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onDetachedFromEngine@" + binding); + } + } + + @Override + public void onAttachedToActivity(ActivityPluginBinding binding) { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onAttachedToActivity@" + binding); + } + Activity activity = binding.getActivity(); + + handlerMapList.add(SubHandlerCustom.getSubHandler(messenger, activity)); + + // register platform view + platformViewRegistry.registerViewFactory("com.fluttify/com.tencent.rtmp.ui.TXCloudVideoView", new TXCloudVideoViewFactory(messenger, activity)); + } + + @Override + public void onDetachedFromActivity() { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onDetachedFromActivity"); + } + } + + @Override + public void onReattachedToActivityForConfigChanges(ActivityPluginBinding binding) { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onReattachedToActivityForConfigChanges@" + binding); + } + } + + @Override + public void onDetachedFromActivityForConfigChanges() { + if (getEnableLog()) { + Log.d("fluttify-java", "TencentLiveFluttifyPlugin::onDetachedFromActivityForConfigChanges"); + } + } + + @Override + public void onMethodCall(@NonNull MethodCall methodCall, @NonNull MethodChannel.Result methodResult) { + Handler handler = null; + for (Map handlerMap : handlerMapList) { + if (handlerMap.containsKey(methodCall.method)) { + handler = handlerMap.get(methodCall.method); + break; + } + } + if (handler != null) { + try { + handler.call(methodCall.arguments, methodResult); + } catch (Exception e) { + e.printStackTrace(); + methodResult.error(e.getMessage(), null, null); + } + } else { + methodResult.notImplemented(); + } + } + + @FunctionalInterface + public static interface Handler { + void call(Object args, MethodChannel.Result methodResult) throws Exception; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler0.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler0.java new file mode 100644 index 0000000..76e5017 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler0.java @@ -0,0 +1,5499 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandler0 { + public static Map getSubHandler(BinaryMessenger messenger) { + return new HashMap() {{ + // getter + put("com.tencent.rtmp.TXBitrateItem::get_index", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.index; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_width", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.width; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_height", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.height; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_bitrate", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.bitrate; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + Long __result__ = __this__.sessionId; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + com.tencent.rtmp.sharp.jni.AudioDecoder __result__ = __this__.audioDecoder; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + byte[] __result__ = __this__._tempBufdec; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_c_totalSize", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.c_totalSize; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_pBuf", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + byte[] __result__ = __this__.m_pBuf; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_read", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.m_read; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_write", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.m_write; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_isEmpty", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Boolean __result__ = __this__.m_isEmpty; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.QLog::get_sBuildNumber", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.QLog __this__ = (com.tencent.rtmp.sharp.jni.QLog) __args__.get("__this__"); + + String __result__ = __this__.sBuildNumber; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get_sessionId", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) __args__.get("__this__"); + + Long __result__ = __this__.sessionId; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get__traeAs", (__rawArgs__, __methodResult__) -> { + Map __args__ = (Map) __rawArgs__; + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) __args__.get("__this__"); + + com.tencent.rtmp.sharp.jni.TraeAudioSession __result__ = __this__._traeAs; + + __methodResult__.success(__result__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_index_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.index; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_width_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.width; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_height_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.height; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.TXBitrateItem::get_bitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) __args__.get("__this__"); + + Integer __result__ = __this__.bitrate; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + Long __result__ = __this__.sessionId; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + com.tencent.rtmp.sharp.jni.AudioDecoder __result__ = __this__.audioDecoder; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) __args__.get("__this__"); + + byte[] __result__ = __this__._tempBufdec; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_c_totalSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.c_totalSize; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_pBuf_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + byte[] __result__ = __this__.m_pBuf; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_read_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.m_read; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_write_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Integer __result__ = __this__.m_write; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_isEmpty_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) __args__.get("__this__"); + + Boolean __result__ = __this__.m_isEmpty; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.QLog::get_sBuildNumber_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.QLog __this__ = (com.tencent.rtmp.sharp.jni.QLog) __args__.get("__this__"); + + String __result__ = __this__.sBuildNumber; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get_sessionId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) __args__.get("__this__"); + + Long __result__ = __this__.sessionId; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // getter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get__traeAs_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) __args__.get("__this__"); + + com.tencent.rtmp.sharp.jni.TraeAudioSession __result__ = __this__._traeAs; + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // setter + put("com.tencent.rtmp.TXBitrateItem::set_index", (__args__, __methodResult__) -> { + // ref arg + Number index = (Number) ((Map) __args__).get("index"); + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.index = index.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.TXBitrateItem::set_width", (__args__, __methodResult__) -> { + // ref arg + Number width = (Number) ((Map) __args__).get("width"); + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.width = width.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.TXBitrateItem::set_height", (__args__, __methodResult__) -> { + // ref arg + Number height = (Number) ((Map) __args__).get("height"); + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.height = height.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.TXBitrateItem::set_bitrate", (__args__, __methodResult__) -> { + // ref arg + Number bitrate = (Number) ((Map) __args__).get("bitrate"); + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.bitrate = bitrate.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId", (__args__, __methodResult__) -> { + // ref arg + Number sessionId = (Number) ((Map) __args__).get("sessionId"); + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__.sessionId = sessionId.longValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder", (__args__, __methodResult__) -> { + // ref arg + com.tencent.rtmp.sharp.jni.AudioDecoder audioDecoder = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("audioDecoder"); + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__.audioDecoder = audioDecoder; + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec", (__args__, __methodResult__) -> { + // ref arg + byte[] _tempBufdec = (byte[]) ((Map) __args__).get("_tempBufdec"); + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__._tempBufdec = _tempBufdec; + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_c_totalSize", (__args__, __methodResult__) -> { + // ref arg + Number c_totalSize = (Number) ((Map) __args__).get("c_totalSize"); + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.c_totalSize = c_totalSize.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_pBuf", (__args__, __methodResult__) -> { + // ref arg + byte[] m_pBuf = (byte[]) ((Map) __args__).get("m_pBuf"); + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_pBuf = m_pBuf; + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_read", (__args__, __methodResult__) -> { + // ref arg + Number m_read = (Number) ((Map) __args__).get("m_read"); + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_read = m_read.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_write", (__args__, __methodResult__) -> { + // ref arg + Number m_write = (Number) ((Map) __args__).get("m_write"); + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_write = m_write.intValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_isEmpty", (__args__, __methodResult__) -> { + // ref arg + boolean m_isEmpty = (boolean) ((Map) __args__).get("m_isEmpty"); + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_isEmpty = m_isEmpty; + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set_sessionId", (__args__, __methodResult__) -> { + // ref arg + Number sessionId = (Number) ((Map) __args__).get("sessionId"); + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) ((Map) __args__).get("__this__"); + + __this__.sessionId = sessionId.longValue(); + __methodResult__.success("success"); + }); + // setter + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set__traeAs", (__args__, __methodResult__) -> { + // ref arg + com.tencent.rtmp.sharp.jni.TraeAudioSession _traeAs = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("_traeAs"); + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) ((Map) __args__).get("__this__"); + + __this__._traeAs = _traeAs; + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.TXBitrateItem::set_index_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number index = (Number) ((Map) __args__).get("index"); + + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.index = index.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.TXBitrateItem::set_width_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number width = (Number) ((Map) __args__).get("width"); + + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.width = width.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.TXBitrateItem::set_height_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number height = (Number) ((Map) __args__).get("height"); + + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.height = height.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.TXBitrateItem::set_bitrate_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number bitrate = (Number) ((Map) __args__).get("bitrate"); + + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + __this__.bitrate = bitrate.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number sessionId = (Number) ((Map) __args__).get("sessionId"); + + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__.sessionId = sessionId.longValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + com.tencent.rtmp.sharp.jni.AudioDecoder audioDecoder = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("audioDecoder"); + + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__.audioDecoder = audioDecoder; + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + byte[] _tempBufdec = (byte[]) ((Map) __args__).get("_tempBufdec"); + + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo) ((Map) __args__).get("__this__"); + + __this__._tempBufdec = _tempBufdec; + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_c_totalSize_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number c_totalSize = (Number) ((Map) __args__).get("c_totalSize"); + + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.c_totalSize = c_totalSize.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_pBuf_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + byte[] m_pBuf = (byte[]) ((Map) __args__).get("m_pBuf"); + + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_pBuf = m_pBuf; + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_read_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number m_read = (Number) ((Map) __args__).get("m_read"); + + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_read = m_read.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_write_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number m_write = (Number) ((Map) __args__).get("m_write"); + + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_write = m_write.intValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.RingBuffer::set_m_isEmpty_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + boolean m_isEmpty = (boolean) ((Map) __args__).get("m_isEmpty"); + + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + __this__.m_isEmpty = m_isEmpty; + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set_sessionId_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + Number sessionId = (Number) ((Map) __args__).get("sessionId"); + + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) ((Map) __args__).get("__this__"); + + __this__.sessionId = sessionId.longValue(); + } + + __methodResult__.success("success"); + }); + // setter batch + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set__traeAs_batch", (__argsBatch__, __methodResult__) -> { + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // ref arg + com.tencent.rtmp.sharp.jni.TraeAudioSession _traeAs = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("_traeAs"); + + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo) ((Map) __args__).get("__this__"); + + __this__._traeAs = _traeAs; + } + + __methodResult__.success("success"); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setStatusTextSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXDashBoard@" + __this__ + "::setStatusTextSize(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setStatusTextSize(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setEventTextSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXDashBoard@" + __this__ + "::setEventTextSize(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEventTextSize(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setLogMsgLenLimit", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXDashBoard@" + __this__ + "::setLogMsgLenLimit(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMsgLenLimit(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setShowLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXDashBoard@" + __this__ + "::setShowLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setShowLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onResume", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onResume(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onResume(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onPause", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onPause(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onPause(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeVideoView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::removeVideoView(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.removeVideoView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeFocusIndicatorView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::removeFocusIndicatorView(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.removeFocusIndicatorView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onDestroy", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onDestroy(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onDestroy(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getSurfaceView", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::getSurfaceView(" + "" + ")"); + } + + // invoke native method + android.view.SurfaceView __result__ = null; + try { + __result__ = __this__.getSurfaceView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderMode", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setRenderMode(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderMode(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderRotation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setRenderRotation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLastFrame", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::clearLastFrame(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.clearLastFrame(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouchFocus", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onTouchFocus(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onTouchFocus(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setMirror", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setMirror(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::disableLog", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::disableLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.disableLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showLog", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::showLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.showLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLog", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::clearLog(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.clearLog(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogText", (__args__, __methodResult__) -> { + // args + // ref arg + android.os.Bundle var1 = (android.os.Bundle) ((Map) __args__).get("var1"); + // ref arg + android.os.Bundle var2 = (android.os.Bundle) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogText(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogText(var1, var2, var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::updateVideoViewSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::updateVideoViewSize(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.updateVideoViewSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::appendEventInfo", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::appendEventInfo(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.appendEventInfo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showVideoDebugLog", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::showVideoDebugLog(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.showVideoDebugLog(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMargin", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogMargin(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMargin(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMarginRatio", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setLogMarginRatio(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMarginRatio(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getUserId", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::getUserId(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUserId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setUserId", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::setUserId(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setUserId(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::px2dip", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView::px2dip(" + var0 + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = com.tencent.rtmp.ui.TXCloudVideoView.px2dip(var0, var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::stop", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::stop(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stop(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouch", (__args__, __methodResult__) -> { + // args + // ref arg + android.view.View var1 = (android.view.View) ((Map) __args__).get("var1"); + // ref arg + android.view.MotionEvent var2 = (android.view.MotionEvent) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.ui.TXCloudVideoView@" + __this__ + "::onTouch(" + var1 + var2 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.onTouch(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setConfig", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.TXLivePlayConfig var1 = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setConfig(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConfig(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setPlayListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setPlayListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayListener(new com.tencent.rtmp.ITXLivePlayListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePlayer::setPlayListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onPlayEvent(int var1, android.os.Bundle var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onPlayEvent(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.ITXLivePlayListener::onPlayEvent", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onNetStatus(android.os.Bundle var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onNetStatus(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.ITXLivePlayListener::onNetStatus", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setPlayerView", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.ui.TXCloudVideoView var1 = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setPlayerView(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayerView(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::startPlay", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::startPlay(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startPlay(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::stopPlay", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::stopPlay(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopPlay(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::isPlaying", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::isPlaying(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isPlaying(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::pause", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::pause(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.pause(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::resume", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::resume(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.resume(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setSurfaceSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setSurfaceSize(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setSurfaceSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRenderMode", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setRenderMode(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderMode(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRenderRotation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setRenderRotation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::enableHardwareDecode", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::enableHardwareDecode(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.enableHardwareDecode(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setMute", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setMute(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setVolume", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setVolume(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVolume(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAudioRoute", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setAudioRoute(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioRoute(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::switchStream", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::switchStream(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.switchStream(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAudioVolumeEvaluationListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setAudioVolumeEvaluationListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioVolumeEvaluationListener(new com.tencent.rtmp.TXLivePlayer.ITXAudioVolumeEvaluationListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePlayer::setAudioVolumeEvaluationListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onAudioVolumeEvaluationNotify(int var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onAudioVolumeEvaluationNotify(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioVolumeEvaluationListener::onAudioVolumeEvaluationNotify", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::enableAudioVolumeEvaluation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::enableAudioVolumeEvaluation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioVolumeEvaluation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::callExperimentalAPI", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::callExperimentalAPI(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.callExperimentalAPI(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::startRecord", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::startRecord(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startRecord(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::stopRecord", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::stopRecord(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopRecord(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::snapshot", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::snapshot(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.snapshot(new com.tencent.rtmp.TXLivePlayer.ITXSnapshotListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePlayer::snapshot::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onSnapshot(android.graphics.Bitmap var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onSnapshot(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePlayer.ITXSnapshotListener::onSnapshot", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::addVideoRawData", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::addVideoRawData(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.addVideoRawData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setVideoRawDataListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setVideoRawDataListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoRawDataListener(new com.tencent.rtmp.TXLivePlayer.ITXVideoRawDataListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePlayer::setVideoRawDataListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onVideoRawDataAvailable(byte[] var1, int var2, int var3, int var4) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onVideoRawDataAvailable(" + var1 + var2 + var3 + var4 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePlayer.ITXVideoRawDataListener::onVideoRawDataAvailable", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + put("var4", var4); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAudioRawDataListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setAudioRawDataListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioRawDataListener(new com.tencent.rtmp.TXLivePlayer.ITXAudioRawDataListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePlayer::setAudioRawDataListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onPcmDataAvailable(byte[] var1, long var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onPcmDataAvailable(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioRawDataListener::onPcmDataAvailable", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onAudioInfoChanged(int var1, int var2, int var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onAudioInfoChanged(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioRawDataListener::onAudioInfoChanged", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::prepareLiveSeek", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::prepareLiveSeek(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.prepareLiveSeek(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::seek", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::seek(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.seek(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::resumeLive", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::resumeLive(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.resumeLive(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAutoPlay", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setAutoPlay(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoPlay(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayer@" + __this__ + "::setRate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRate(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onCreate", (__args__, __methodResult__) -> { + // args + // ref arg + android.os.Bundle var1 = (android.os.Bundle) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __this__ = (com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity@" + __this__ + "::onCreate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onCreate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onActivityResult", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + android.content.Intent var3 = (android.content.Intent) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __this__ = (com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity@" + __this__ + "::onActivityResult(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onActivityResult(var1.intValue(), var2.intValue(), var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setConfig", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.TXLivePushConfig var1 = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setConfig(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConfig(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getConfig", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::getConfig(" + "" + ")"); + } + + // invoke native method + com.tencent.rtmp.TXLivePushConfig __result__ = null; + try { + __result__ = __this__.getConfig(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setPushListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setPushListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPushListener(new com.tencent.rtmp.ITXLivePushListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::setPushListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onPushEvent(int var1, android.os.Bundle var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onPushEvent(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.ITXLivePushListener::onPushEvent", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onNetStatus(android.os.Bundle var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onNetStatus(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.ITXLivePushListener::onNetStatus", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startCameraPreview", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.ui.TXCloudVideoView var1 = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::startCameraPreview(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.startCameraPreview(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopCameraPreview", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::stopCameraPreview(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopCameraPreview(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startPusher", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::startPusher(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startPusher(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopPusher", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::stopPusher(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopPusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startScreenCapture", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::startScreenCapture(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.startScreenCapture(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopScreenCapture", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::stopScreenCapture(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopScreenCapture(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::pausePusher", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::pausePusher(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.pausePusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::resumePusher", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::resumePusher(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.resumePusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::isPushing", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::isPushing(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isPushing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setVideoQuality", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + boolean var2 = (boolean) ((Map) __args__).get("var2"); + // ref arg + boolean var3 = (boolean) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setVideoQuality(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoQuality(var1.intValue(), var2, var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::switchCamera", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::switchCamera(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.switchCamera(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMirror", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setMirror(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setRenderRotation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setRenderRotation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::turnOnFlashLight", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::turnOnFlashLight(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.turnOnFlashLight(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getMaxZoom", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::getMaxZoom(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMaxZoom(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setZoom", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setZoom(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setZoom(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setExposureCompensation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setExposureCompensation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setExposureCompensation(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBeautyFilter", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setBeautyFilter(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBeautyFilter(var1.intValue(), var2.intValue(), var3.intValue(), var4.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFilter", (__args__, __methodResult__) -> { + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setFilter(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFilter(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setSpecialRatio", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setSpecialRatio(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setSpecialRatio(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setEyeScaleLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setEyeScaleLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEyeScaleLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceSlimLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setFaceSlimLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceVLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setFaceVLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceVLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setChinLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setChinLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setChinLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceShortLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setFaceShortLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceShortLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setNoseSlimLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setNoseSlimLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setNoseSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setGreenScreenFile", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setGreenScreenFile(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setGreenScreenFile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMotionTmpl", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setMotionTmpl(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMotionTmpl(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMotionMute", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setMotionMute(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMotionMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMute", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setMute(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMNofify", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setBGMNofify(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setBGMNofify(new com.tencent.rtmp.TXLivePusher.OnBGMNotify() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::setBGMNofify::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onBGMStart() { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onBGMStart(" + "" + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMStart", + new HashMap() {{ + + }} + ); + } + }); + + // method result + + } + + @Override + public void onBGMProgress(long var1, long var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onBGMProgress(" + var1 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMProgress", + new HashMap() {{ + put("var1", var1); + put("var3", var3); + }} + ); + } + }); + + // method result + + } + + @Override + public void onBGMComplete(int var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onBGMComplete(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMComplete", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::playBGM", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::playBGM(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.playBGM(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopBGM", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::stopBGM(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.stopBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::pauseBGM", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::pauseBGM(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.pauseBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::resumeBGM", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::resumeBGM(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.resumeBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getMusicDuration", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::getMusicDuration(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMusicDuration(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMVolume", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setBGMVolume(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBGMVolume(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMicVolume", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setMicVolume(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setMicVolume(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMPitch", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setBGMPitch(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setBGMPitch(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setReverb", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setReverb(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setReverb(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setVoiceChangerType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setVoiceChangerType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVoiceChangerType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMPosition", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setBGMPosition(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBGMPosition(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setAudioVolumeEvaluationListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setAudioVolumeEvaluationListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioVolumeEvaluationListener(new com.tencent.rtmp.TXLivePusher.ITXAudioVolumeEvaluationListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::setAudioVolumeEvaluationListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onAudioVolumeEvaluationNotify(int var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onAudioVolumeEvaluationNotify(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.ITXAudioVolumeEvaluationListener::onAudioVolumeEvaluationNotify", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::enableAudioVolumeEvaluation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::enableAudioVolumeEvaluation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioVolumeEvaluation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startRecord", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::startRecord(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startRecord(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopRecord", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::stopRecord(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopRecord(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::snapshot", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::snapshot(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.snapshot(new com.tencent.rtmp.TXLivePusher.ITXSnapshotListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::snapshot::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onSnapshot(android.graphics.Bitmap var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onSnapshot(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.ITXSnapshotListener::onSnapshot", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomVideoTexture", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::sendCustomVideoTexture(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.sendCustomVideoTexture(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomVideoData", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::sendCustomVideoData(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.sendCustomVideoData(var1, var2.intValue(), var3.intValue(), var4.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomPCMData", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::sendCustomPCMData(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.sendCustomPCMData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setVideoProcessListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setVideoProcessListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoProcessListener(new com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::setVideoProcessListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public int onTextureCustomProcess(int var1, int var2, int var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onTextureCustomProcess(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onTextureCustomProcess", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + return 0; + } + + @Override + public void onDetectFacePoints(float[] var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDetectFacePoints(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onDetectFacePoints", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onTextureDestoryed() { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onTextureDestoryed(" + "" + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onTextureDestoryed", + new HashMap() {{ + + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setAudioProcessListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setAudioProcessListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioProcessListener(new com.tencent.rtmp.TXLivePusher.AudioCustomProcessListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLivePusher::setAudioProcessListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onRecordRawPcmData(byte[] var1, long var2, int var4, int var5, int var6, boolean var7) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onRecordRawPcmData(" + var1 + var2 + var4 + var5 + var6 + var7 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.AudioCustomProcessListener::onRecordRawPcmData", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var4", var4); + put("var5", var5); + put("var6", var6); + put("var7", var7); + }} + ); + } + }); + + // method result + + } + + @Override + public void onRecordPcmData(byte[] var1, long var2, int var4, int var5, int var6) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onRecordPcmData(" + var1 + var2 + var4 + var5 + var6 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.TXLivePusher.AudioCustomProcessListener::onRecordPcmData", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var4", var4); + put("var5", var5); + put("var6", var6); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setSurfaceSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setSurfaceSize(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setSurfaceSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFocusPosition", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::setFocusPosition(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFocusPosition(var1.floatValue(), var2.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendMessageEx", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::sendMessageEx(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.sendMessageEx(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendMessage", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::sendMessage(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.sendMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::onLogRecord", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePusher@" + __this__ + "::onLogRecord(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onLogRecord(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getInstance", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::getInstance(" + "" + ")"); + } + + // invoke native method + com.tencent.rtmp.TXLiveBase __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getInstance(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLicence", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + // ref arg + String var3 = (String) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLiveBase __this__ = (com.tencent.rtmp.TXLiveBase) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase@" + __this__ + "::setLicence(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLicence(var1, var2, var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getLicenceInfo", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLiveBase __this__ = (com.tencent.rtmp.TXLiveBase) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase@" + __this__ + "::getLicenceInfo(" + var1 + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getLicenceInfo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setListener", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setListener(new com.tencent.rtmp.ITXLiveBaseListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.TXLiveBase::setListener::Callback", new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void OnLog(int var1, String var2, String var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: OnLog(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.ITXLiveBaseListener::OnLog", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLogLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var0 = (Number) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setLogLevel(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setLogLevel(var0.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setConsoleEnabled", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var0 = (boolean) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setConsoleEnabled(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setConsoleEnabled(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setAppVersion", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setAppVersion(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setAppVersion(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLibraryPath", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setLibraryPath(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setLibraryPath(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::isLibraryPathValid", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::isLibraryPathValid(" + var0 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.isLibraryPathValid(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getSDKVersionStr", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::getSDKVersionStr(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getSDKVersionStr(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setPituLicencePath", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setPituLicencePath(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setPituLicencePath(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getPituSDKVersion", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::getPituSDKVersion(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getPituSDKVersion(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setAppID", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLiveBase::setAppID(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setAppID(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getAppId", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getAppId(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getAppId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getFileId", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getFileId(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getFileId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getTimeout", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getTimeout(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getTimeout(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getExper", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getExper(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getExper(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getSign", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getSign(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getSign(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getUs", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::getUs(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUs(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::isHttps", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::isHttps(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isHttps(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setAppId", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setAppId(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAppId(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + }}; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler1.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler1.java new file mode 100644 index 0000000..f0bd8b2 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler1.java @@ -0,0 +1,6392 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandler1 { + public static Map getSubHandler(BinaryMessenger messenger) { + return new HashMap() {{ + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setFileId", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setFileId(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFileId(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setTimeout", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setTimeout(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setTimeout(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setUs", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setUs(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setUs(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setExper", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setExper(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setExper(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setSign", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setSign(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setSign(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setHttps", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXPlayerAuthBuilder@" + __this__ + "::setHttps(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHttps(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDataSource", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getDataSource(" + "" + ")"); + } + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadDataSource __result__ = null; + try { + __result__ = __this__.getDataSource(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDuration", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getDuration(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDuration(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getSize", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getSize(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDownloadSize", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getDownloadSize(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDownloadSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getProgress", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getProgress(" + "" + ")"); + } + + // invoke native method + Float __result__ = null; + try { + __result__ = __this__.getProgress(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getPlayPath", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getPlayPath(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getPlayPath(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getTaskId", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getTaskId(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getTaskId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getUrl", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@" + __this__ + "::getUrl(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUrl(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::setToken", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadDataSource@" + __this__ + "::setToken(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setToken(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getAuthBuilder", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadDataSource@" + __this__ + "::getAuthBuilder(" + "" + ")"); + } + + // invoke native method + com.tencent.rtmp.TXPlayerAuthBuilder __result__ = null; + try { + __result__ = __this__.getAuthBuilder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getQuality", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadDataSource@" + __this__ + "::getQuality(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getQuality(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getTemplateName", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadDataSource@" + __this__ + "::getTemplateName(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getTemplateName(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getToken", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadDataSource@" + __this__ + "::getToken(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getToken(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance(" + "" + ")"); + } + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadManager __result__ = null; + try { + __result__ = com.tencent.rtmp.downloader.TXVodDownloadManager.getInstance(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::setDownloadPath", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::setDownloadPath(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setDownloadPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::setHeaders", (__args__, __methodResult__) -> { + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::setHeaders(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::setListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::setListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setListener(new com.tencent.rtmp.downloader.ITXVodDownloadListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.downloader.TXVodDownloadManager::setListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onDownloadStart(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDownloadStart(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadStart", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDownloadProgress(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDownloadProgress(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadProgress", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDownloadStop(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDownloadStop(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadStop", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDownloadFinish(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDownloadFinish(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadFinish", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDownloadError(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1, int var2, String var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDownloadError(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadError", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + + } + + @Override + public int hlsKeyVerify(com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1, String var2, byte[] var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: hlsKeyVerify(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::hlsKeyVerify", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + return 0; + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::startDownloadUrl", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::startDownloadUrl(" + var1 + ")"); + } + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __result__ = null; + try { + __result__ = __this__.startDownloadUrl(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::startDownload", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.downloader.TXVodDownloadDataSource var1 = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::startDownload(" + var1 + ")"); + } + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __result__ = null; + try { + __result__ = __this__.startDownload(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::stopDownload", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1 = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::stopDownload(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopDownload(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::deleteDownloadFile", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.downloader.TXVodDownloadManager@" + __this__ + "::deleteDownloadFile(" + var1 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.deleteDownloadFile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setHomeOrientation", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setHomeOrientation(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHomeOrientation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setTouchFocus", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setTouchFocus(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setTouchFocus(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setEnableZoom", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setEnableZoom(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableZoom(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__int__int", (__args__, __methodResult__) -> { + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setWatermark(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setWatermark(var1, var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__double__double__double", (__args__, __methodResult__) -> { + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setWatermark(" + var1 + var2 + var3 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setWatermark(var1, var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setLocalVideoMirrorType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setLocalVideoMirrorType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setLocalVideoMirrorType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseImg__android_graphics_Bitmap", (__args__, __methodResult__) -> { + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setPauseImg(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseImg(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseImg__int__int", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setPauseImg(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseImg(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseFlag", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setPauseFlag(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseFlag(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoResolution", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVideoResolution(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoResolution(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoFPS", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVideoFPS(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoFPS(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoEncodeGop", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVideoEncodeGop(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoEncodeGop(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVideoBitrate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMaxVideoBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setMaxVideoBitrate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMinVideoBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setMinVideoBitrate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMinVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAutoAdjustBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setAutoAdjustBitrate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustBitrate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAutoAdjustStrategy", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setAutoAdjustStrategy(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustStrategy(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAudioSampleRate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setAudioSampleRate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioSampleRate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAudioChannels", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setAudioChannels(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioChannels(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enablePureAudioPush", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enablePureAudioPush(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enablePureAudioPush(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableScreenCaptureAutoRotate", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableScreenCaptureAutoRotate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableScreenCaptureAutoRotate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableHighResolutionCaptureMode", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableHighResolutionCaptureMode(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableHighResolutionCaptureMode(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoEncoderXMirror", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVideoEncoderXMirror(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoEncoderXMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAudioEarMonitoring", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableAudioEarMonitoring(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioEarMonitoring(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setConnectRetryCount", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setConnectRetryCount(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setConnectRetryInterval", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setConnectRetryInterval(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomModeType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setCustomModeType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomModeType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAEC", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableAEC(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAEC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAGC", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableAGC(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAGC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableANS", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableANS(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableANS(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVolumeType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setVolumeType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVolumeType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setHardwareAcceleration", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setHardwareAcceleration(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHardwareAcceleration(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableVideoHardEncoderMainProfile", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableVideoHardEncoderMainProfile(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableVideoHardEncoderMainProfile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMetaData", (__args__, __methodResult__) -> { + // args + // ref arg + java.util.HashMap var1 = (java.util.HashMap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setMetaData(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMetaData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setFrontCamera", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setFrontCamera(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFrontCamera(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setBeautyFilter", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setBeautyFilter(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setBeautyFilter(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setEyeScaleLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setEyeScaleLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEyeScaleLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setFaceSlimLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setFaceSlimLevel(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setRtmpChannelType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setRtmpChannelType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRtmpChannelType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableNearestIP", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::enableNearestIP(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableNearestIP(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomVideoPreProcessLibrary", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setCustomVideoPreProcessLibrary(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomVideoPreProcessLibrary(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomAudioPreProcessLibrary", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePushConfig@" + __this__ + "::setCustomAudioPreProcessLibrary(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomAudioPreProcessLibrary(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXBitrateItem::compareTo", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.TXBitrateItem var1 = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXBitrateItem@" + __this__ + "::compareTo(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.compareTo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setAutoAdjustCacheTime", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setAutoAdjustCacheTime(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustCacheTime(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setCacheTime", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setCacheTime(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMaxAutoAdjustCacheTime", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setMaxAutoAdjustCacheTime(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxAutoAdjustCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMinAutoAdjustCacheTime", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setMinAutoAdjustCacheTime(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMinAutoAdjustCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setVideoBlockThreshold", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setVideoBlockThreshold(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoBlockThreshold(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setConnectRetryCount", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setConnectRetryCount(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setConnectRetryInterval", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setConnectRetryInterval(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableMessage", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setEnableMessage(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::enableAEC", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::enableAEC(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.enableAEC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableMetaData", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setEnableMetaData(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableMetaData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setFlvSessionKey", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setFlvSessionKey(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setFlvSessionKey(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableNearestIP", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setEnableNearestIP(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableNearestIP(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setRtmpChannelType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setRtmpChannelType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setRtmpChannelType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setCacheFolderPath", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setCacheFolderPath(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheFolderPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMaxCacheItems", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setMaxCacheItems(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxCacheItems(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setHeaders", (__args__, __methodResult__) -> { + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXLivePlayConfig@" + __this__ + "::setHeaders(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setConnectRetryCount", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setConnectRetryCount(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setConnectRetryInterval", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setConnectRetryInterval(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setTimeout", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setTimeout(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setTimeout(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setCacheFolderPath", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setCacheFolderPath(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheFolderPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setMaxCacheItems", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setMaxCacheItems(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxCacheItems(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setPlayerType", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setPlayerType(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayerType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setHeaders", (__args__, __methodResult__) -> { + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setHeaders(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setEnableAccurateSeek", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setEnableAccurateSeek(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableAccurateSeek(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setAutoRotate", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setAutoRotate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoRotate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setSmoothSwitchBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setSmoothSwitchBitrate(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setSmoothSwitchBitrate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setCacheMp4ExtName", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setCacheMp4ExtName(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheMp4ExtName(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setProgressInterval", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setProgressInterval(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setProgressInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setMaxBufferSize", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXVodPlayConfig@" + __this__ + "::setMaxBufferSize(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxBufferSize(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::setVTTUrlAndImageUrls", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + java.util.List var2 = (java.util.List) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXImageSprite@" + __this__ + "::setVTTUrlAndImageUrls(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVTTUrlAndImageUrls(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::getThumbnail", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXImageSprite@" + __this__ + "::getThumbnail(" + var1 + ")"); + } + + // invoke native method + android.graphics.Bitmap __result__ = null; + try { + __result__ = __this__.getThumbnail(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::release", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.TXImageSprite@" + __this__ + "::release(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::find", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@" + __this__ + "::find(" + var1 + ")"); + } + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __result__ = null; + try { + __result__ = __this__.find(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::add", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@" + __this__ + "::add(" + var1 + ")"); + } + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __result__ = null; + try { + __result__ = __this__.add(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::remove", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@" + __this__ + "::remove(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.remove(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::createAACDecoder", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@" + __this__ + "::createAACDecoder(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.createAACDecoder(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeAACFrame", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@" + __this__ + "::decodeAACFrame(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.decodeAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeInternalAACFrame", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@" + __this__ + "::decodeInternalAACFrame(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.decodeInternalAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::releaseAACDecoder", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@" + __this__ + "::releaseAACDecoder(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.releaseAACDecoder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId(" + "" + ")"); + } + + // invoke native method + Long __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.TraeAudioSession.requestSessionId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice(" + var0 + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.TraeAudioSession.ExConnectDevice(var0, var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::release", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::release(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::setCallback", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::setCallback(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setCallback(new com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.sharp.jni.TraeAudioSession::setCallback::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void onServiceStateUpdate(boolean var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onServiceStateUpdate(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onServiceStateUpdate", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDeviceListUpdate(String[] var1, String var2, String var3, String var4) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDeviceListUpdate(" + var1 + var2 + var3 + var4 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onDeviceListUpdate", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + put("var4", var4); + }} + ); + } + }); + + // method result + + } + + @Override + public void onDeviceChangabledUpdate(boolean var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onDeviceChangabledUpdate(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onDeviceChangabledUpdate", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onStreamTypeUpdate(int var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onStreamTypeUpdate(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onStreamTypeUpdate", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onGetDeviceListRes(int var1, String[] var2, String var3, String var4, String var5) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onGetDeviceListRes(" + var1 + var2 + var3 + var4 + var5 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetDeviceListRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + put("var4", var4); + put("var5", var5); + }} + ); + } + }); + + // method result + + } + + @Override + public void onConnectDeviceRes(int var1, String var2, boolean var3) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onConnectDeviceRes(" + var1 + var2 + var3 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onConnectDeviceRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + put("var3", var3); + }} + ); + } + }); + + // method result + + } + + @Override + public void onIsDeviceChangabledRes(int var1, boolean var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onIsDeviceChangabledRes(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onIsDeviceChangabledRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onGetConnectedDeviceRes(int var1, String var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onGetConnectedDeviceRes(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetConnectedDeviceRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onGetConnectingDeviceRes(int var1, String var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onGetConnectingDeviceRes(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetConnectingDeviceRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onGetStreamTypeRes(int var1, int var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onGetStreamTypeRes(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetStreamTypeRes", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onRingCompletion(int var1, String var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onRingCompletion(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onRingCompletion", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onVoicecallPreprocessRes(int var1) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onVoicecallPreprocessRes(" + var1 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onVoicecallPreprocessRes", + new HashMap() {{ + put("var1", var1); + }} + ); + } + }); + + // method result + + } + + @Override + public void onAudioRouteSwitchStart(String var1, String var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onAudioRouteSwitchStart(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onAudioRouteSwitchStart", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + @Override + public void onAudioRouteSwitchEnd(String var1, long var2) { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: onAudioRouteSwitchEnd(" + var1 + var2 + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onAudioRouteSwitchEnd", + new HashMap() {{ + put("var1", var1); + put("var2", var2); + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::startService", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::startService(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startService(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::disableDeviceSwitch", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::disableDeviceSwitch(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.disableDeviceSwitch(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::stopService", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::stopService(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopService(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getDeviceList", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::getDeviceList(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDeviceList(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getStreamType", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::getStreamType(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getStreamType(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::connectDevice", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::connectDevice(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.connectDevice(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::connectHighestPriorityDevice", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::connectHighestPriorityDevice(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.connectHighestPriorityDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::EarAction", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::EarAction(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.EarAction(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::isDeviceChangabled", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::isDeviceChangabled(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.isDeviceChangabled(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectedDevice", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::getConnectedDevice(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getConnectedDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectingDevice", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::getConnectingDevice(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getConnectingDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPreprocess", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::voiceCallPreprocess(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallPreprocess(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPostprocess", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::voiceCallPostprocess(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallPostprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallAudioParamChanged", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::voiceCallAudioParamChanged(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallAudioParamChanged(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::stopRing", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::stopRing(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopRing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::requestReleaseAudioFocus", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::requestReleaseAudioFocus(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.requestReleaseAudioFocus(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::recoverAudioFocus", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::recoverAudioFocus(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.recoverAudioFocus(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceiveCallback", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Intent var1 = (android.content.Intent) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::onReceiveCallback(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onReceiveCallback(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceive", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + // ref arg + android.content.Intent var2 = (android.content.Intent) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSession@" + __this__ + "::onReceive(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.onReceive(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::find", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@" + __this__ + "::find(" + var1 + ")"); + } + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __result__ = null; + try { + __result__ = __this__.find(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::add", (__args__, __methodResult__) -> { + // args + // ref arg + com.tencent.rtmp.sharp.jni.TraeAudioSession var1 = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + android.content.Context var4 = (android.content.Context) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@" + __this__ + "::add(" + var1 + var2 + var4 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.add(var1, var2.longValue(), var4); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::remove", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@" + __this__ + "::remove(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.remove(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::sendToAudioSessionMessage", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Intent var1 = (android.content.Intent) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@" + __this__ + "::sendToAudioSessionMessage(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.sendToAudioSessionMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getSampleRate", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::getSampleRate(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getSampleRate(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getChannels", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::getChannels(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getChannels(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getFileTotalMs", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::getFileTotalMs(" + "" + ")"); + } + + // invoke native method + Long __result__ = null; + try { + __result__ = __this__.getFileTotalMs(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getFrameSize", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::getFrameSize(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getFrameSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setIOPath", (__args__, __methodResult__) -> { + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::setIOPath(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setIOPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setIndex", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::setIndex(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setIndex(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::prepare", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::prepare(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.prepare(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::SeekTo", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::SeekTo(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.SeekTo(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::ReadOneFrame", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::ReadOneFrame(" + var1 + var2 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.ReadOneFrame(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::release", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::release(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setOnCompleteListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::setOnCompleteListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setOnCompleteListener(new com.tencent.rtmp.sharp.jni.AudioDecoder.OnCompleteListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.sharp.jni.AudioDecoder::setOnCompleteListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void completed() { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: completed(" + "" + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.AudioDecoder.OnCompleteListener::completed", + new HashMap() {{ + + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setOnProgressListener", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDecoder@" + __this__ + "::setOnProgressListener(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setOnProgressListener(new com.tencent.rtmp.sharp.jni.AudioDecoder.OnProgressListener() { + // method channel + MethodChannel callbackChannel = new MethodChannel(messenger, "com.tencent.rtmp.sharp.jni.AudioDecoder::setOnProgressListener::Callback@" + String.valueOf(System.identityHashCode(__this__)), new StandardMethodCodec(new FluttifyMessageCodec())); + android.os.Handler handler = new android.os.Handler(android.os.Looper.getMainLooper()); + + // call dart method + @Override + public void progress() { + // print log + if (getEnableLog()) { + Log.d("java-callback", "fluttify-java-callback: progress(" + "" + ")"); + } + + // call dart method + handler.post(new Runnable() { + @Override + public void run() { + callbackChannel.invokeMethod( + "Callback::com.tencent.rtmp.sharp.jni.AudioDecoder.OnProgressListener::progress", + new HashMap() {{ + + }} + ); + } + }); + + // method result + + } + + }); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Push", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.RingBuffer@" + __this__ + "::Push(" + var1 + var2 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.Push(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::RemainRead", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.RingBuffer@" + __this__ + "::RemainRead(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.RemainRead(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::RemainWrite", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.RingBuffer@" + __this__ + "::RemainWrite(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.RemainWrite(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Clear", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.RingBuffer@" + __this__ + "::Clear(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.Clear(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Pop", (__args__, __methodResult__) -> { + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.RingBuffer@" + __this__ + "::Pop(" + var1 + var2 + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.Pop(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::init", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.QLog::init(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.QLog.init(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::isColorLevel", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.QLog::isColorLevel(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.isColorLevel(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.isDevelopLevel(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::getReportLevel", (__args__, __methodResult__) -> { + // args + // ref arg + Number var0 = (Number) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.QLog::getReportLevel(" + var0 + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.getReportLevel(var0.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.QLog.dumpCacheToFile(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setContext", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::setContext(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setContext(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo(" + "" + ")"); + } + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.AudioDeviceInterface.getTraceInfo(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry", (__args__, __methodResult__) -> { + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioDeviceInterface.LogTraceEntry(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioDeviceInterface.LogTraceExit(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::call_preprocess(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_preprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::call_postprocess(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_postprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_media", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::call_preprocess_media(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_preprocess_media(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_media", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::call_postprocess_media(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_postprocess_media(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setJavaInterface", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::setJavaInterface(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setJavaInterface(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getAudioRouteSwitchState", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::getAudioRouteSwitchState(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getAudioRouteSwitchState(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::hasLightSensorManager", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::hasLightSensorManager(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.hasLightSensorManager(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getNumberOfCPUCores", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::getNumberOfCPUCores(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getNumberOfCPUCores(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACSupported", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::checkAACSupported(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.checkAACSupported(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACMediaCodecSupported", (__args__, __methodResult__) -> { + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@" + __this__ + "::checkAACMediaCodecSupported(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.checkAACMediaCodecSupported(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::stopRing", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@" + __this__ + "::stopRing(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.stopRing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getStreamType", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@" + __this__ + "::getStreamType(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getStreamType(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getDuration", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@" + __this__ + "::getDuration(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDuration(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::hasCall", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@" + __this__ + "::hasCall(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.hasCall(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate", (__args__, __methodResult__) -> { + // args + + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate.DeleteAudioSessionDuplicate(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate(" + var0 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate.NewAudioSessionDuplicate(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::createAACEncoder", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@" + __this__ + "::createAACEncoder(" + var1 + var2 + var3 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.createAACEncoder(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeAACFrame", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@" + __this__ + "::encodeAACFrame(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.encodeAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeInternalAACFrame", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@" + __this__ + "::encodeInternalAACFrame(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.encodeInternalAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::releaseAACEncoder", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@" + __this__ + "::releaseAACEncoder(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.releaseAACEncoder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::setAACEncodeBitrate", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@" + __this__ + "::setAACEncodeBitrate(" + var1 + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.setAACEncodeBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance", (__args__, __methodResult__) -> { + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance(" + var0 + ")"); + } + + // invoke native method + com.tencent.rtmp.sharp.jni.VivoKTVHelper __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.VivoKTVHelper.getInstance(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::isDeviceSupportKaraoke", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::isDeviceSupportKaraoke(" + "" + ")"); + } + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isDeviceSupportKaraoke(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::openKTVDevice", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::openKTVDevice(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.openKTVDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::closeKTVDevice", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::closeKTVDevice(" + "" + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.closeKTVDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setMicVolParam", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::setMicVolParam(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setMicVolParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setVoiceOutParam", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::setVoiceOutParam(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setVoiceOutParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPreModeParam", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::setPreModeParam(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPreModeParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPlayFeedbackParam", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::setPlayFeedbackParam(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayFeedbackParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setExtSpeakerParam", (__args__, __methodResult__) -> { + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::setExtSpeakerParam(" + var1 + ")"); + } + + // invoke native method + Void __result__ = null; + try { + __this__.setExtSpeakerParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getExtSpeakerParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getExtSpeakerParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getExtSpeakerParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPlayFeedbackParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getPlayFeedbackParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getPlayFeedbackParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPreModeParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getPreModeParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getPreModeParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicTypeParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getMicTypeParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMicTypeParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getVoiceOutParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getVoiceOutParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getVoiceOutParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicVolParam", (__args__, __methodResult__) -> { + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // print log + if (getEnableLog()) { + Log.d("fluttify-java", "fluttify-java: com.tencent.rtmp.sharp.jni.VivoKTVHelper@" + __this__ + "::getMicVolParam(" + "" + ")"); + } + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMicVolParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __methodResult__.success(__result__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setStatusTextSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setStatusTextSize(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setEventTextSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEventTextSize(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + }}; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler2.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler2.java new file mode 100644 index 0000000..7f98934 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler2.java @@ -0,0 +1,6470 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandler2 { + public static Map getSubHandler(BinaryMessenger messenger) { + return new HashMap() {{ + // method + put("com.tencent.rtmp.ui.TXDashBoard::setLogMsgLenLimit_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMsgLenLimit(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXDashBoard::setShowLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXDashBoard __this__ = (com.tencent.rtmp.ui.TXDashBoard) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setShowLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onResume_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onResume(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onPause_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onPause(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeVideoView_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.removeVideoView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::removeFocusIndicatorView_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.removeFocusIndicatorView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onDestroy_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onDestroy(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getSurfaceView_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + android.view.SurfaceView __result__ = null; + try { + __result__ = __this__.getSurfaceView(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderMode_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderMode(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setRenderRotation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLastFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.clearLastFrame(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouchFocus_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onTouchFocus(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setMirror_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::disableLog_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.disableLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showLog_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.showLog(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::clearLog_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.clearLog(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogText_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.os.Bundle var1 = (android.os.Bundle) ((Map) __args__).get("var1"); + // ref arg + android.os.Bundle var2 = (android.os.Bundle) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLogText(var1, var2, var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::updateVideoViewSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.updateVideoViewSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::appendEventInfo_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.appendEventInfo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::showVideoDebugLog_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.showVideoDebugLog(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMargin_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMargin(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setLogMarginRatio_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLogMarginRatio(var1.floatValue(), var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::getUserId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUserId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::setUserId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setUserId(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::px2dip_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + + + // invoke native method + Integer __result__ = null; + try { + __result__ = com.tencent.rtmp.ui.TXCloudVideoView.px2dip(var0, var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::stop_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stop(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.ui.TXCloudVideoView::onTouch_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.view.View var1 = (android.view.View) ((Map) __args__).get("var1"); + // ref arg + android.view.MotionEvent var2 = (android.view.MotionEvent) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.ui.TXCloudVideoView __this__ = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.onTouch(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setConfig_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.TXLivePlayConfig var1 = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConfig(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setPlayerView_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.ui.TXCloudVideoView var1 = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayerView(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::startPlay_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startPlay(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::stopPlay_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopPlay(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::isPlaying_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isPlaying(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::pause_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.pause(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::resume_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.resume(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setSurfaceSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setSurfaceSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRenderMode_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderMode(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRenderRotation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::enableHardwareDecode_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.enableHardwareDecode(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setMute_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setVolume_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVolume(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAudioRoute_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioRoute(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::switchStream_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.switchStream(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::enableAudioVolumeEvaluation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioVolumeEvaluation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::callExperimentalAPI_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.callExperimentalAPI(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::startRecord_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startRecord(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::stopRecord_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopRecord(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::addVideoRawData_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.addVideoRawData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::prepareLiveSeek_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.prepareLiveSeek(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::seek_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.seek(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::resumeLive_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.resumeLive(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setAutoPlay_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoPlay(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayer::setRate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayer __this__ = (com.tencent.rtmp.TXLivePlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRate(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onCreate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.os.Bundle var1 = (android.os.Bundle) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __this__ = (com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onCreate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onActivityResult_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + android.content.Intent var3 = (android.content.Intent) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __this__ = (com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onActivityResult(var1.intValue(), var2.intValue(), var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setConfig_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.TXLivePushConfig var1 = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConfig(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getConfig_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.TXLivePushConfig __result__ = null; + try { + __result__ = __this__.getConfig(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startCameraPreview_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.ui.TXCloudVideoView var1 = (com.tencent.rtmp.ui.TXCloudVideoView) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.startCameraPreview(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopCameraPreview_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopCameraPreview(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startPusher_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startPusher(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopPusher_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopPusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startScreenCapture_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.startScreenCapture(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopScreenCapture_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopScreenCapture(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::pausePusher_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.pausePusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::resumePusher_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.resumePusher(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::isPushing_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isPushing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setVideoQuality_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + boolean var2 = (boolean) ((Map) __args__).get("var2"); + // ref arg + boolean var3 = (boolean) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoQuality(var1.intValue(), var2, var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::switchCamera_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.switchCamera(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMirror_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setRenderRotation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRenderRotation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::turnOnFlashLight_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.turnOnFlashLight(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getMaxZoom_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMaxZoom(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setZoom_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setZoom(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setExposureCompensation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setExposureCompensation(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBeautyFilter_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBeautyFilter(var1.intValue(), var2.intValue(), var3.intValue(), var4.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFilter_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFilter(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setSpecialRatio_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setSpecialRatio(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setEyeScaleLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEyeScaleLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceSlimLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceVLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceVLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setChinLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setChinLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFaceShortLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceShortLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setNoseSlimLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setNoseSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setGreenScreenFile_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setGreenScreenFile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMotionTmpl_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMotionTmpl(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMotionMute_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMotionMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMute_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMute(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::playBGM_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.playBGM(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopBGM_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.stopBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::pauseBGM_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.pauseBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::resumeBGM_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.resumeBGM(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::getMusicDuration_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMusicDuration(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMVolume_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBGMVolume(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setMicVolume_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setMicVolume(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMPitch_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setBGMPitch(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setReverb_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setReverb(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setVoiceChangerType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVoiceChangerType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setBGMPosition_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.setBGMPosition(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::enableAudioVolumeEvaluation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioVolumeEvaluation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::startRecord_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startRecord(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::stopRecord_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopRecord(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomVideoTexture_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.sendCustomVideoTexture(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomVideoData_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.sendCustomVideoData(var1, var2.intValue(), var3.intValue(), var4.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendCustomPCMData_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.sendCustomPCMData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setSurfaceSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setSurfaceSize(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::setFocusPosition_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFocusPosition(var1.floatValue(), var2.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendMessageEx_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.sendMessageEx(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::sendMessage_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.sendMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePusher::onLogRecord_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePusher __this__ = (com.tencent.rtmp.TXLivePusher) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onLogRecord(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getInstance_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + com.tencent.rtmp.TXLiveBase __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getInstance(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLicence_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + // ref arg + String var3 = (String) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLiveBase __this__ = (com.tencent.rtmp.TXLiveBase) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLicence(var1, var2, var3); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getLicenceInfo_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLiveBase __this__ = (com.tencent.rtmp.TXLiveBase) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getLicenceInfo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLogLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var0 = (Number) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setLogLevel(var0.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setConsoleEnabled_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var0 = (boolean) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setConsoleEnabled(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setAppVersion_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setAppVersion(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setLibraryPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setLibraryPath(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::isLibraryPathValid_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.isLibraryPathValid(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getSDKVersionStr_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getSDKVersionStr(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setPituLicencePath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setPituLicencePath(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::getPituSDKVersion_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.TXLiveBase.getPituSDKVersion(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLiveBase::setAppID_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.TXLiveBase.setAppID(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getAppId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getAppId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getFileId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getFileId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getTimeout_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getTimeout(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getExper_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getExper(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getSign_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getSign(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::getUs_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUs(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::isHttps_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isHttps(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setAppId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAppId(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setFileId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFileId(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setTimeout_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setTimeout(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setUs_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setUs(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setExper_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setExper(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setSign_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setSign(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXPlayerAuthBuilder::setHttps_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXPlayerAuthBuilder __this__ = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHttps(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDataSource_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadDataSource __result__ = null; + try { + __result__ = __this__.getDataSource(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDuration_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDuration(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDownloadSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDownloadSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getProgress_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + Float __result__ = null; + try { + __result__ = __this__.getProgress(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getPlayPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getPlayPath(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getTaskId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getTaskId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getUrl_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __this__ = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getUrl(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::setToken_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setToken(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getAuthBuilder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.TXPlayerAuthBuilder __result__ = null; + try { + __result__ = __this__.getAuthBuilder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getQuality_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getQuality(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getTemplateName_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getTemplateName(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadDataSource::getToken_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.downloader.TXVodDownloadDataSource __this__ = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("__this__"); + + // invoke native method + String __result__ = null; + try { + __result__ = __this__.getToken(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadManager __result__ = null; + try { + __result__ = com.tencent.rtmp.downloader.TXVodDownloadManager.getInstance(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::setDownloadPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setDownloadPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::setHeaders_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::startDownloadUrl_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __result__ = null; + try { + __result__ = __this__.startDownloadUrl(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::startDownload_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.downloader.TXVodDownloadDataSource var1 = (com.tencent.rtmp.downloader.TXVodDownloadDataSource) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __result__ = null; + try { + __result__ = __this__.startDownload(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::stopDownload_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo var1 = (com.tencent.rtmp.downloader.TXVodDownloadMediaInfo) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopDownload(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.downloader.TXVodDownloadManager::deleteDownloadFile_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.downloader.TXVodDownloadManager __this__ = (com.tencent.rtmp.downloader.TXVodDownloadManager) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.deleteDownloadFile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setHomeOrientation_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHomeOrientation(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setTouchFocus_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setTouchFocus(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setEnableZoom_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableZoom(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__int__int_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setWatermark(var1, var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__double__double__double_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + // ref arg + Number var4 = (Number) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setWatermark(var1, var2.floatValue(), var3.floatValue(), var4.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setLocalVideoMirrorType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setLocalVideoMirrorType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseImg__android_graphics_Bitmap_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.graphics.Bitmap var1 = (android.graphics.Bitmap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseImg(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseImg__int__int_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseImg(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setPauseFlag_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPauseFlag(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoResolution_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoResolution(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoFPS_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoFPS(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoEncodeGop_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoEncodeGop(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMaxVideoBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMinVideoBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMinVideoBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAutoAdjustBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustBitrate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAutoAdjustStrategy_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustStrategy(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAudioSampleRate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioSampleRate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setAudioChannels_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAudioChannels(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enablePureAudioPush_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enablePureAudioPush(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableScreenCaptureAutoRotate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableScreenCaptureAutoRotate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableHighResolutionCaptureMode_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableHighResolutionCaptureMode(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVideoEncoderXMirror_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoEncoderXMirror(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAudioEarMonitoring_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAudioEarMonitoring(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setConnectRetryCount_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setConnectRetryInterval_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomModeType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomModeType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAEC_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAEC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableAGC_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAGC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableANS_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableANS(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setVolumeType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVolumeType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setHardwareAcceleration_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHardwareAcceleration(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableVideoHardEncoderMainProfile_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableVideoHardEncoderMainProfile(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setMetaData_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + java.util.HashMap var1 = (java.util.HashMap) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMetaData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setFrontCamera_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFrontCamera(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setBeautyFilter_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setBeautyFilter(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setEyeScaleLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEyeScaleLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setFaceSlimLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFaceSlimLevel(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setRtmpChannelType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRtmpChannelType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::enableNearestIP_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableNearestIP(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomVideoPreProcessLibrary_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomVideoPreProcessLibrary(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePushConfig::setCustomAudioPreProcessLibrary_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXLivePushConfig __this__ = (com.tencent.rtmp.TXLivePushConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCustomAudioPreProcessLibrary(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXBitrateItem::compareTo_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.TXBitrateItem var1 = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXBitrateItem __this__ = (com.tencent.rtmp.TXBitrateItem) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.compareTo(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setAutoAdjustCacheTime_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoAdjustCacheTime(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setCacheTime_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMaxAutoAdjustCacheTime_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxAutoAdjustCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + }}; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler3.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler3.java new file mode 100644 index 0000000..bd8be5b --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler3.java @@ -0,0 +1,5262 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandler3 { + public static Map getSubHandler(BinaryMessenger messenger) { + return new HashMap() {{ + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMinAutoAdjustCacheTime_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMinAutoAdjustCacheTime(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setVideoBlockThreshold_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVideoBlockThreshold(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setConnectRetryCount_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setConnectRetryInterval_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableMessage_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::enableAEC_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.enableAEC(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableMetaData_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableMetaData(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setFlvSessionKey_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setFlvSessionKey(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setEnableNearestIP_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableNearestIP(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setRtmpChannelType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setRtmpChannelType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setCacheFolderPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheFolderPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setMaxCacheItems_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxCacheItems(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXLivePlayConfig::setHeaders_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXLivePlayConfig __this__ = (com.tencent.rtmp.TXLivePlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setConnectRetryCount_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryCount(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setConnectRetryInterval_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setConnectRetryInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setTimeout_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setTimeout(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setCacheFolderPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheFolderPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setMaxCacheItems_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxCacheItems(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setPlayerType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayerType(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setHeaders_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + java.util.Map var1 = (java.util.Map) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setHeaders(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setEnableAccurateSeek_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setEnableAccurateSeek(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setAutoRotate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setAutoRotate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setSmoothSwitchBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setSmoothSwitchBitrate(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setCacheMp4ExtName_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setCacheMp4ExtName(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setProgressInterval_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setProgressInterval(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXVodPlayConfig::setMaxBufferSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXVodPlayConfig __this__ = (com.tencent.rtmp.TXVodPlayConfig) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMaxBufferSize(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::setVTTUrlAndImageUrls_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + // ref arg + java.util.List var2 = (java.util.List) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVTTUrlAndImageUrls(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::getThumbnail_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // invoke native method + android.graphics.Bitmap __result__ = null; + try { + __result__ = __this__.getThumbnail(var1.floatValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.TXImageSprite::release_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.TXImageSprite __this__ = (com.tencent.rtmp.TXImageSprite) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::find_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __result__ = null; + try { + __result__ = __this__.find(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::add_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo __result__ = null; + try { + __result__ = __this__.add(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioCodecList::remove_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioCodecList) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.remove(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::createAACDecoder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.createAACDecoder(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeAACFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.decodeAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeInternalAACFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.decodeInternalAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecDecoder::releaseAACDecoder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.releaseAACDecoder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Long __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.TraeAudioSession.requestSessionId(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.TraeAudioSession.ExConnectDevice(var0, var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::release_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::startService_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.startService(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::disableDeviceSwitch_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.disableDeviceSwitch(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::stopService_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopService(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getDeviceList_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDeviceList(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getStreamType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getStreamType(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::connectDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.connectDevice(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::connectHighestPriorityDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.connectHighestPriorityDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::EarAction_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.EarAction(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::isDeviceChangabled_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.isDeviceChangabled(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectedDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getConnectedDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectingDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getConnectingDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPreprocess_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallPreprocess(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPostprocess_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallPostprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallAudioParamChanged_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.voiceCallAudioParamChanged(var1.intValue(), var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::stopRing_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.stopRing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::requestReleaseAudioFocus_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.requestReleaseAudioFocus(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::recoverAudioFocus_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.recoverAudioFocus(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceiveCallback_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Intent var1 = (android.content.Intent) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onReceiveCallback(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceive_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + // ref arg + android.content.Intent var2 = (android.content.Intent) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSession __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.onReceive(var1, var2); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::find_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // invoke native method + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo __result__ = null; + try { + __result__ = __this__.find(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::add_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + com.tencent.rtmp.sharp.jni.TraeAudioSession var1 = (com.tencent.rtmp.sharp.jni.TraeAudioSession) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + android.content.Context var4 = (android.content.Context) ((Map) __args__).get("var4"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.add(var1, var2.longValue(), var4); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::remove_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.remove(var1.longValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::sendToAudioSessionMessage_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Intent var1 = (android.content.Intent) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __this__ = (com.tencent.rtmp.sharp.jni.TraeAudioSessionHost) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.sendToAudioSessionMessage(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getSampleRate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getSampleRate(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getChannels_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getChannels(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getFileTotalMs_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Long __result__ = null; + try { + __result__ = __this__.getFileTotalMs(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::getFrameSize_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getFrameSize(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setIOPath_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var1 = (String) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setIOPath(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::setIndex_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setIndex(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::prepare_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.prepare(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::SeekTo_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.SeekTo(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::ReadOneFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.ReadOneFrame(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDecoder::release_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDecoder __this__ = (com.tencent.rtmp.sharp.jni.AudioDecoder) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.release(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Push_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.Push(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::RemainRead_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.RemainRead(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::RemainWrite_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.RemainWrite(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Clear_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.Clear(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.RingBuffer::Pop_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + byte[] var1 = (byte[]) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // ref + com.tencent.rtmp.sharp.jni.RingBuffer __this__ = (com.tencent.rtmp.sharp.jni.RingBuffer) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.Pop(var1, var2.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::init_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.QLog.init(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::isColorLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.isColorLevel(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Boolean __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.isDevelopLevel(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::getReportLevel_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var0 = (Number) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.QLog.getReportLevel(var0.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.QLog.dumpCacheToFile(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setContext_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setContext(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + String __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.AudioDeviceInterface.getTraceInfo(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + String var0 = (String) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioDeviceInterface.LogTraceEntry(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioDeviceInterface.LogTraceExit(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_preprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_postprocess(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_media_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_preprocess_media(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_media_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.call_postprocess_media(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setJavaInterface_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setJavaInterface(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getAudioRouteSwitchState_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getAudioRouteSwitchState(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::hasLightSensorManager_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.hasLightSensorManager(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getNumberOfCPUCores_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getNumberOfCPUCores(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACSupported_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.checkAACSupported(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACMediaCodecSupported_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + boolean var1 = (boolean) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __this__ = (com.tencent.rtmp.sharp.jni.AudioDeviceInterface) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.checkAACMediaCodecSupported(var1); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::stopRing_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.stopRing(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getStreamType_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getStreamType(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getDuration_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getDuration(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.TraeMediaPlayer::hasCall_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.TraeMediaPlayer __this__ = (com.tencent.rtmp.sharp.jni.TraeMediaPlayer) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.hasCall(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate.DeleteAudioSessionDuplicate(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + Void __result__ = null; + try { + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate.NewAudioSessionDuplicate(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::createAACEncoder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + // ref arg + Number var3 = (Number) ((Map) __args__).get("var3"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.createAACEncoder(var1.intValue(), var2.intValue(), var3.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeAACFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.encodeAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeInternalAACFrame_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.encodeInternalAACFrame(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::releaseAACEncoder_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.releaseAACEncoder(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.MediaCodecEncoder::setAACEncodeBitrate_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __this__ = (com.tencent.rtmp.sharp.jni.MediaCodecEncoder) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.setAACEncodeBitrate(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + android.content.Context var0 = (android.content.Context) ((Map) __args__).get("var0"); + + // ref + + + // invoke native method + com.tencent.rtmp.sharp.jni.VivoKTVHelper __result__ = null; + try { + __result__ = com.tencent.rtmp.sharp.jni.VivoKTVHelper.getInstance(var0); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::isDeviceSupportKaraoke_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Boolean __result__ = null; + try { + __result__ = __this__.isDeviceSupportKaraoke(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::openKTVDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.openKTVDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::closeKTVDevice_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.closeKTVDevice(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setMicVolParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setMicVolParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setVoiceOutParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setVoiceOutParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPreModeParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPreModeParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPlayFeedbackParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setPlayFeedbackParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::setExtSpeakerParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Void __result__ = null; + try { + __this__.setExtSpeakerParam(var1.intValue()); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getExtSpeakerParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getExtSpeakerParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPlayFeedbackParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getPlayFeedbackParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPreModeParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getPreModeParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicTypeParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMicTypeParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getVoiceOutParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getVoiceOutParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + // method + put("com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicVolParam_batch", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + for (int __i__ = 0; __i__ < ((List>) __argsBatch__).size(); __i__++) { + Map __args__ = ((List>) __argsBatch__).get(__i__); + + // args + + + // ref + com.tencent.rtmp.sharp.jni.VivoKTVHelper __this__ = (com.tencent.rtmp.sharp.jni.VivoKTVHelper) ((Map) __args__).get("__this__"); + + // invoke native method + Integer __result__ = null; + try { + __result__ = __this__.getMicVolParam(); + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + __methodResult__.error(throwable.getMessage(), null, null); + return; + } + + __resultList__.add(__result__); + } + + __methodResult__.success(__resultList__); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLog", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLog); + }); + put("RefClass::isKindOfcom_tencent_rtmp_ui_TXDashBoard", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.ui.TXDashBoard); + }); + put("RefClass::isKindOfcom_tencent_rtmp_ui_TXCloudVideoView", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.ui.TXCloudVideoView); + }); + put("RefClass::isKindOfcom_tencent_rtmp_ui_TXLogView", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.ui.TXLogView); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLivePlayer", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLivePlayer); + }); + put("RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity); + }); + put("RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.video.TXScreenCapture); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLivePusher", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLivePusher); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLiveBase", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLiveBase); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXPlayerAuthBuilder", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXPlayerAuthBuilder); + }); + put("RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.downloader.TXVodDownloadMediaInfo); + }); + put("RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadDataSource", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.downloader.TXVodDownloadDataSource); + }); + put("RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadManager", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.downloader.TXVodDownloadManager); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLiveConstants", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLiveConstants); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLivePushConfig", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLivePushConfig); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXBitrateItem", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXBitrateItem); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXLivePlayConfig", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXLivePlayConfig); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXVodPlayConfig", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXVodPlayConfig); + }); + put("RefClass::isKindOfcom_tencent_rtmp_TXImageSprite", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.TXImageSprite); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeAudioCodecList); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecDecoder", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.MediaCodecDecoder); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSession", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeAudioSession); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeAudioSessionHost); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDecoder", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.AudioDecoder); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_RingBuffer", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.RingBuffer); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_QLog", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.QLog); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDeviceInterface", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.AudioDeviceInterface); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeMediaPlayer", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeMediaPlayer); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.AudioSessionDuplicate); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecEncoder", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.MediaCodecEncoder); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo); + }); + put("RefClass::isKindOfcom_tencent_rtmp_sharp_jni_VivoKTVHelper", (__args__, __methodResult__) -> { + // 引用对象 + Object __this__ = ((Map) __args__).get("__this__"); + + __methodResult__.success(__this__ instanceof com.tencent.rtmp.sharp.jni.VivoKTVHelper); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLog__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLog__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXLog __obj__ = new com.tencent.rtmp.TXLog(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_ui_TXDashBoard__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_ui_TXDashBoard__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXDashBoard __obj__ = new com.tencent.rtmp.ui.TXDashBoard(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_ui_TXCloudVideoView__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_ui_TXCloudVideoView__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXCloudVideoView __obj__ = new com.tencent.rtmp.ui.TXCloudVideoView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_ui_TXCloudVideoView__android_view_SurfaceView", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_ui_TXCloudVideoView__android_view_SurfaceView"); + } + + // args + // ref arg + android.view.SurfaceView var1 = (android.view.SurfaceView) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXCloudVideoView __obj__ = new com.tencent.rtmp.ui.TXCloudVideoView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_ui_TXLogView__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_ui_TXLogView__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXLogView __obj__ = new com.tencent.rtmp.ui.TXLogView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLivePlayer__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLivePlayer__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXLivePlayer __obj__ = new com.tencent.rtmp.TXLivePlayer(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity__"); + } + + // args + + + // create target object + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __obj__ = new com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_video_TXScreenCapture__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_video_TXScreenCapture__"); + } + + // args + + + // create target object + com.tencent.rtmp.video.TXScreenCapture __obj__ = new com.tencent.rtmp.video.TXScreenCapture(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLivePusher__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLivePusher__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXLivePusher __obj__ = new com.tencent.rtmp.TXLivePusher(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXPlayerAuthBuilder__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXPlayerAuthBuilder__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXPlayerAuthBuilder __obj__ = new com.tencent.rtmp.TXPlayerAuthBuilder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_downloader_TXVodDownloadMediaInfo__"); + } + + // args + + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadMediaInfo(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__int", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__int"); + } + + // args + // ref arg + com.tencent.rtmp.TXPlayerAuthBuilder var1 = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadDataSource __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadDataSource(var1, var2.intValue()); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__String", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__String"); + } + + // args + // ref arg + com.tencent.rtmp.TXPlayerAuthBuilder var1 = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadDataSource __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadDataSource(var1, var2); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLiveConstants__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLiveConstants__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXLiveConstants __obj__ = new com.tencent.rtmp.TXLiveConstants(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLivePushConfig__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLivePushConfig__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXLivePushConfig __obj__ = new com.tencent.rtmp.TXLivePushConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXBitrateItem__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXBitrateItem__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXBitrateItem __obj__ = new com.tencent.rtmp.TXBitrateItem(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXLivePlayConfig__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXLivePlayConfig__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXLivePlayConfig __obj__ = new com.tencent.rtmp.TXLivePlayConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXVodPlayConfig__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXVodPlayConfig__"); + } + + // args + + + // create target object + com.tencent.rtmp.TXVodPlayConfig __obj__ = new com.tencent.rtmp.TXVodPlayConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_TXImageSprite__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_TXImageSprite__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXImageSprite __obj__ = new com.tencent.rtmp.TXImageSprite(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_TraeAudioCodecList__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_TraeAudioCodecList__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __obj__ = new com.tencent.rtmp.sharp.jni.TraeAudioCodecList(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecDecoder__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_MediaCodecDecoder__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecDecoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_TraeAudioSessionHost__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __obj__ = new com.tencent.rtmp.sharp.jni.TraeAudioSessionHost(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioDecoder__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_AudioDecoder__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioDecoder __obj__ = new com.tencent.rtmp.sharp.jni.AudioDecoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_RingBuffer__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_RingBuffer__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.RingBuffer __obj__ = new com.tencent.rtmp.sharp.jni.RingBuffer(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_RingBuffer__int", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_RingBuffer__int"); + } + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.RingBuffer __obj__ = new com.tencent.rtmp.sharp.jni.RingBuffer(var1.intValue()); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_QLog__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_QLog__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.QLog __obj__ = new com.tencent.rtmp.sharp.jni.QLog(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioDeviceInterface__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_AudioDeviceInterface__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __obj__ = new com.tencent.rtmp.sharp.jni.AudioDeviceInterface(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_AudioSessionDuplicate__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate __obj__ = new com.tencent.rtmp.sharp.jni.AudioSessionDuplicate(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_MediaCodecEncoder__"); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecEncoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_MediaCodecEncoder__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecEncoder(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::createcom_tencent_rtmp_sharp_jni_VivoKTVHelper__android_content_Context", (__args__, __methodResult__) -> { + if (getEnableLog()) { + Log.d("ObjectFactory", "创建对象: com_tencent_rtmp_sharp_jni_VivoKTVHelper__android_content_Context"); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.VivoKTVHelper __obj__ = new com.tencent.rtmp.sharp.jni.VivoKTVHelper(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __methodResult__.success(__obj__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLog__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXLog __obj__ = new com.tencent.rtmp.TXLog(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_ui_TXDashBoard__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXDashBoard __obj__ = new com.tencent.rtmp.ui.TXDashBoard(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_ui_TXCloudVideoView__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXCloudVideoView __obj__ = new com.tencent.rtmp.ui.TXCloudVideoView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_ui_TXCloudVideoView__android_view_SurfaceView", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.view.SurfaceView var1 = (android.view.SurfaceView) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXCloudVideoView __obj__ = new com.tencent.rtmp.ui.TXCloudVideoView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_ui_TXLogView__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.ui.TXLogView __obj__ = new com.tencent.rtmp.ui.TXLogView(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLivePlayer__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXLivePlayer __obj__ = new com.tencent.rtmp.TXLivePlayer(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity __obj__ = new com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_video_TXScreenCapture__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.video.TXScreenCapture __obj__ = new com.tencent.rtmp.video.TXScreenCapture(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLivePusher__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXLivePusher __obj__ = new com.tencent.rtmp.TXLivePusher(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXPlayerAuthBuilder__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXPlayerAuthBuilder __obj__ = new com.tencent.rtmp.TXPlayerAuthBuilder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadMediaInfo __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadMediaInfo(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__int", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + com.tencent.rtmp.TXPlayerAuthBuilder var1 = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("var1"); + // ref arg + Number var2 = (Number) ((Map) __args__).get("var2"); + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadDataSource __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadDataSource(var1, var2.intValue()); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__String", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + com.tencent.rtmp.TXPlayerAuthBuilder var1 = (com.tencent.rtmp.TXPlayerAuthBuilder) ((Map) __args__).get("var1"); + // ref arg + String var2 = (String) ((Map) __args__).get("var2"); + + // create target object + com.tencent.rtmp.downloader.TXVodDownloadDataSource __obj__ = new com.tencent.rtmp.downloader.TXVodDownloadDataSource(var1, var2); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLiveConstants__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXLiveConstants __obj__ = new com.tencent.rtmp.TXLiveConstants(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + }}; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler4.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler4.java new file mode 100644 index 0000000..107fc2a --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/SubHandler4.java @@ -0,0 +1,687 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.StandardMethodCodec; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; +import me.yohom.foundation_fluttify.core.FluttifyMessageCodec; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandler4 { + public static Map getSubHandler(BinaryMessenger messenger) { + return new HashMap() {{ + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLivePushConfig__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXLivePushConfig __obj__ = new com.tencent.rtmp.TXLivePushConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXBitrateItem__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXBitrateItem __obj__ = new com.tencent.rtmp.TXBitrateItem(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXLivePlayConfig__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXLivePlayConfig __obj__ = new com.tencent.rtmp.TXLivePlayConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXVodPlayConfig__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.TXVodPlayConfig __obj__ = new com.tencent.rtmp.TXVodPlayConfig(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_TXImageSprite__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.TXImageSprite __obj__ = new com.tencent.rtmp.TXImageSprite(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_TraeAudioCodecList__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.TraeAudioCodecList __obj__ = new com.tencent.rtmp.sharp.jni.TraeAudioCodecList(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecDecoder__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecDecoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecDecoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.TraeAudioSessionHost __obj__ = new com.tencent.rtmp.sharp.jni.TraeAudioSessionHost(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioDecoder__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioDecoder __obj__ = new com.tencent.rtmp.sharp.jni.AudioDecoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_RingBuffer__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.RingBuffer __obj__ = new com.tencent.rtmp.sharp.jni.RingBuffer(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_RingBuffer__int", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + Number var1 = (Number) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.RingBuffer __obj__ = new com.tencent.rtmp.sharp.jni.RingBuffer(var1.intValue()); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_QLog__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.QLog __obj__ = new com.tencent.rtmp.sharp.jni.QLog(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioDeviceInterface__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioDeviceInterface __obj__ = new com.tencent.rtmp.sharp.jni.AudioDeviceInterface(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.AudioSessionDuplicate __obj__ = new com.tencent.rtmp.sharp.jni.AudioSessionDuplicate(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecEncoder(); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.MediaCodecEncoder __obj__ = new com.tencent.rtmp.sharp.jni.MediaCodecEncoder(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + // factory + put("ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_VivoKTVHelper__android_content_Context", (__argsBatch__, __methodResult__) -> { + List __resultList__ = new ArrayList<>(); + + int __length__ = 0; + // when batch size is 0, dart side will put a map with key 'length' to indicate the length + // of this batch + if (__argsBatch__ instanceof Map) { + __length__ = (Integer) ((Map) __argsBatch__).get("length"); + } + // or directly put the arg batch + else if (__argsBatch__ instanceof List) { + __length__ = ((List>) __argsBatch__).size(); + } + + for (int __i__ = 0; __i__ < __length__; __i__++) { + Map __args__ = new HashMap<>(); + // only when arg batch is not empty, java side needs to parse args; + if (__argsBatch__ instanceof List) { + __args__ = ((List>) __argsBatch__).get(__i__); + } + + // args + // ref arg + android.content.Context var1 = (android.content.Context) ((Map) __args__).get("var1"); + + // create target object + com.tencent.rtmp.sharp.jni.VivoKTVHelper __obj__ = new com.tencent.rtmp.sharp.jni.VivoKTVHelper(var1); + + // print current HEAP + if (getEnableLog()) { + Log.d("ObjectFactory", "HEAP: " + getHEAP()); + } + + __resultList__.add(__obj__); + } + + __methodResult__.success(__resultList__); + }); + }}; + } +} diff --git a/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/custom/SubHandlerCustom.java b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/custom/SubHandlerCustom.java new file mode 100644 index 0000000..8d481f5 --- /dev/null +++ b/android/src/main/java/com/fluttify/tencent_live_fluttify/sub_handler/custom/SubHandlerCustom.java @@ -0,0 +1,57 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +package com.fluttify.tencent_live_fluttify.sub_handler.custom; + +import android.os.Bundle; +import android.util.Log; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MethodCall; +import io.flutter.plugin.common.MethodChannel; +import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.platform.PlatformViewRegistry; + +import com.fluttify.tencent_live_fluttify.TencentLiveFluttifyPlugin.Handler; + +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; +import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; + +@SuppressWarnings("ALL") +public class SubHandlerCustom { + public static Map getSubHandler(BinaryMessenger messenger, android.app.Activity activity) { + return new HashMap() {{ + put("", (args, methodResult) -> { + // args + + // ref + + // invoke native method + try { + + } catch (Throwable throwable) { + throwable.printStackTrace(); + if (getEnableLog()) { + Log.d("Current HEAP: ", getHEAP().toString()); + } + methodResult.error(throwable.getMessage(), null, null); + return; + } + + // convert result to jsonable result + String jsonableResult = "success"; + + methodResult.success(jsonableResult); + }); + }}; + } +} diff --git a/assets/filter_bailan.png b/assets/filter_bailan.png new file mode 100755 index 0000000..cd2380a Binary files /dev/null and b/assets/filter_bailan.png differ diff --git a/assets/filter_biaozhun.png b/assets/filter_biaozhun.png new file mode 100755 index 0000000..bd4d709 Binary files /dev/null and b/assets/filter_biaozhun.png differ diff --git a/assets/filter_chaotuo.png b/assets/filter_chaotuo.png new file mode 100755 index 0000000..a22dec0 Binary files /dev/null and b/assets/filter_chaotuo.png differ diff --git a/assets/filter_chunzhen.png b/assets/filter_chunzhen.png new file mode 100755 index 0000000..a3a84bc Binary files /dev/null and b/assets/filter_chunzhen.png differ diff --git a/assets/filter_fennen.png b/assets/filter_fennen.png new file mode 100755 index 0000000..955e731 Binary files /dev/null and b/assets/filter_fennen.png differ diff --git a/assets/filter_huaijiu.png b/assets/filter_huaijiu.png new file mode 100755 index 0000000..c7110c2 Binary files /dev/null and b/assets/filter_huaijiu.png differ diff --git a/assets/filter_landiao.png b/assets/filter_landiao.png new file mode 100755 index 0000000..7cf59a4 Binary files /dev/null and b/assets/filter_landiao.png differ diff --git a/assets/filter_langman.png b/assets/filter_langman.png new file mode 100755 index 0000000..0c0a589 Binary files /dev/null and b/assets/filter_langman.png differ diff --git a/assets/filter_qingliang.png b/assets/filter_qingliang.png new file mode 100755 index 0000000..1612524 Binary files /dev/null and b/assets/filter_qingliang.png differ diff --git a/assets/filter_qingxin.png b/assets/filter_qingxin.png new file mode 100755 index 0000000..4eb940c Binary files /dev/null and b/assets/filter_qingxin.png differ diff --git a/assets/filter_rixi.png b/assets/filter_rixi.png new file mode 100755 index 0000000..54584a5 Binary files /dev/null and b/assets/filter_rixi.png differ diff --git a/assets/filter_weimei.png b/assets/filter_weimei.png new file mode 100755 index 0000000..01995e1 Binary files /dev/null and b/assets/filter_weimei.png differ diff --git a/assets/filter_white.png b/assets/filter_white.png new file mode 100755 index 0000000..76c4abd Binary files /dev/null and b/assets/filter_white.png differ diff --git a/assets/filter_xiangfen.png b/assets/filter_xiangfen.png new file mode 100755 index 0000000..da46b95 Binary files /dev/null and b/assets/filter_xiangfen.png differ diff --git a/assets/filter_yinghong.png b/assets/filter_yinghong.png new file mode 100755 index 0000000..7a9db00 Binary files /dev/null and b/assets/filter_yinghong.png differ diff --git a/assets/filter_yuanqi.png b/assets/filter_yuanqi.png new file mode 100755 index 0000000..65ad504 Binary files /dev/null and b/assets/filter_yuanqi.png differ diff --git a/assets/filter_yunshang.png b/assets/filter_yunshang.png new file mode 100755 index 0000000..74bd4e8 Binary files /dev/null and b/assets/filter_yunshang.png differ diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 0000000..ae1f183 --- /dev/null +++ b/example/.gitignore @@ -0,0 +1,37 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Exceptions to above rules. +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/example/.metadata b/example/.metadata new file mode 100644 index 0000000..4adf4bf --- /dev/null +++ b/example/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: f139b11009aeb8ed2a3a3aa8b0066e482709dde3 + channel: stable + +project_type: app diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000..4c03788 --- /dev/null +++ b/example/README.md @@ -0,0 +1,16 @@ +# tencent_live_fluttify_example + +Demonstrates how to use the tencent_live_fluttify plugin. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/example/android/.gitignore b/example/android/.gitignore new file mode 100644 index 0000000..bc2100d --- /dev/null +++ b/example/android/.gitignore @@ -0,0 +1,7 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle new file mode 100644 index 0000000..01a1468 --- /dev/null +++ b/example/android/app/build.gradle @@ -0,0 +1,62 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 28 + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). +// applicationId "com.fluttify.tencent_live_fluttify_example" + applicationId "cn.tuobaye.live" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test:runner:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' +} diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..d347234 --- /dev/null +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c5c295b --- /dev/null +++ b/example/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + diff --git a/example/android/app/src/main/java/com/fluttify/tencent_live_fluttify_example/MainActivity.java b/example/android/app/src/main/java/com/fluttify/tencent_live_fluttify_example/MainActivity.java new file mode 100644 index 0000000..e185335 --- /dev/null +++ b/example/android/app/src/main/java/com/fluttify/tencent_live_fluttify_example/MainActivity.java @@ -0,0 +1,13 @@ +package com.fluttify.tencent_live_fluttify_example; + +import androidx.annotation.NonNull; +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.engine.FlutterEngine; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity { + @Override + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + GeneratedPluginRegistrant.registerWith(flutterEngine); + } +} diff --git a/example/android/app/src/main/res/drawable/launch_background.xml b/example/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/example/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/example/android/app/src/main/res/values/styles.xml b/example/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..00fa441 --- /dev/null +++ b/example/android/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ + + + + diff --git a/example/android/app/src/profile/AndroidManifest.xml b/example/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..d347234 --- /dev/null +++ b/example/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/example/android/build.gradle b/example/android/build.gradle new file mode 100644 index 0000000..e0d7ae2 --- /dev/null +++ b/example/android/build.gradle @@ -0,0 +1,29 @@ +buildscript { + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/example/android/gradle.properties b/example/android/gradle.properties new file mode 100644 index 0000000..38c8d45 --- /dev/null +++ b/example/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx1536M +android.enableR8=true +android.useAndroidX=true +android.enableJetifier=true diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..2210ceb --- /dev/null +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip diff --git a/example/android/settings.gradle b/example/android/settings.gradle new file mode 100644 index 0000000..5a2f14f --- /dev/null +++ b/example/android/settings.gradle @@ -0,0 +1,15 @@ +include ':app' + +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() + +def plugins = new Properties() +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') +if (pluginsFile.exists()) { + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } +} + +plugins.each { name, path -> + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() + include ":$name" + project(":$name").projectDir = pluginDirectory +} diff --git a/example/ios/.gitignore b/example/ios/.gitignore new file mode 100644 index 0000000..e96ef60 --- /dev/null +++ b/example/ios/.gitignore @@ -0,0 +1,32 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..6b4c0f7 --- /dev/null +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/example/ios/Flutter/Debug.xcconfig b/example/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..e8efba1 --- /dev/null +++ b/example/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/example/ios/Flutter/Release.xcconfig b/example/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..399e934 --- /dev/null +++ b/example/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/example/ios/Podfile b/example/ios/Podfile new file mode 100644 index 0000000..f7d6a5e --- /dev/null +++ b/example/ios/Podfile @@ -0,0 +1,38 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '9.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a8af49b --- /dev/null +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,574 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + DB814F840EEBDE490083538A /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 990AA40057059A566D0177C7 /* libPods-Runner.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 990AA40057059A566D0177C7 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 9B8A09367D461A4ED7576F78 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + F0AE9F663786BAC37620BC23 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + F61A38B405298E6A8C785F73 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DB814F840EEBDE490083538A /* libPods-Runner.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + B6D81602E22502E98FA6F39E /* Pods */, + AAA4C3DA128F6DBFDB485B70 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + AAA4C3DA128F6DBFDB485B70 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 990AA40057059A566D0177C7 /* libPods-Runner.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + B6D81602E22502E98FA6F39E /* Pods */ = { + isa = PBXGroup; + children = ( + F0AE9F663786BAC37620BC23 /* Pods-Runner.debug.xcconfig */, + 9B8A09367D461A4ED7576F78 /* Pods-Runner.release.xcconfig */, + F61A38B405298E6A8C785F73 /* Pods-Runner.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + A1FF105DB0FBDB708480C8A4 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 80DC8D1C117EBBE56CC16D0D /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 80DC8D1C117EBBE56CC16D0D /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + A1FF105DB0FBDB708480C8A4 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = XMYYSUEEKB; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = cn.tuobaye.live; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = XMYYSUEEKB; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = cn.tuobaye.live; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = XMYYSUEEKB; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = cn.tuobaye.live; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/example/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/example/ios/Runner/AppDelegate.h b/example/ios/Runner/AppDelegate.h new file mode 100644 index 0000000..36e21bb --- /dev/null +++ b/example/ios/Runner/AppDelegate.h @@ -0,0 +1,6 @@ +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/example/ios/Runner/AppDelegate.m b/example/ios/Runner/AppDelegate.m new file mode 100644 index 0000000..70e8393 --- /dev/null +++ b/example/ios/Runner/AppDelegate.m @@ -0,0 +1,13 @@ +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d0e1f58 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/example/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/example/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/ios/Runner/Base.lproj/Main.storyboard b/example/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/example/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist new file mode 100644 index 0000000..ec1334e --- /dev/null +++ b/example/ios/Runner/Info.plist @@ -0,0 +1,51 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + tencent_live_fluttify_example + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + NSCameraUsageDescription + 需要摄像头 + NSMicrophoneUsageDescription + 需要麦克风 + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + io.flutter.embedded_views_preview + YES + + diff --git a/example/ios/Runner/main.m b/example/ios/Runner/main.m new file mode 100644 index 0000000..dff6597 --- /dev/null +++ b/example/ios/Runner/main.m @@ -0,0 +1,9 @@ +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/example/lib/main.dart b/example/lib/main.dart new file mode 100644 index 0000000..13b4ca9 --- /dev/null +++ b/example/lib/main.dart @@ -0,0 +1,76 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:oktoast/oktoast.dart'; +import 'package:tencent_live_fluttify/tencent_live_fluttify.dart'; + +import 'src/tencent_live.screen.dart'; + +const _testPushUrl = + 'rtmp://live-push.tuobaye.cn/live/123456?txSecret=19b0c51e26a677614f233541f71e36f5&txTime=5EDD0EFF'; + +Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + await TencentLive.instance.init( + licenseUrl: + 'https://license.vod2.myqcloud.com/license/v1/bc8b7690d75d757e9a0fcfa0be01c96f/TXLiveSDK.licence', + licenseKey: '26be8d6e80f07acc9ee8830d809de878', + ); + runApp(MyApp()); +} + +class MyApp extends StatefulWidget { + @override + _MyAppState createState() => _MyAppState(); +} + +class _MyAppState extends State { + @override + Widget build(BuildContext context) { + return OKToast( + child: MaterialApp( + home: TencentLiveScreen(), + ), + ); + } +} + +// +//class MyApp extends StatefulWidget { +// @override +// _MyAppState createState() => _MyAppState(); +//} +// +//class _MyAppState extends State { +// @override +// Widget build(BuildContext context) { +// return MaterialApp(home: _HomeScreen()); +// } +//} +// +//class _HomeScreen extends StatefulWidget { +// const _HomeScreen({ +// Key key, +// }) : super(key: key); +// +// @override +// __HomeScreenState createState() => __HomeScreenState(); +//} +// +//class __HomeScreenState extends State<_HomeScreen> { +// @override +// Widget build(BuildContext context) { +// return Scaffold( +// appBar: AppBar( +// title: const Text('Plugin example app'), +// ), +// body: CloudVideo( +// onCloudVideoCreated: (controller) async { +// final player = await LivePlayer.create(); +// await player.setPlayerView(controller.playerView); +// await player.setRenderMode(RenderMode.ADJUST_RESOLUTION); +// await player.startPlay('rtmp://58.200.131.2:1935/livetv/cctv1'); +// }, +// ), +// ); +// } +//} diff --git a/example/lib/src/player/player.screen.dart b/example/lib/src/player/player.screen.dart new file mode 100644 index 0000000..555f584 --- /dev/null +++ b/example/lib/src/player/player.screen.dart @@ -0,0 +1,86 @@ +import 'package:decorated_flutter/decorated_flutter.dart'; +import 'package:demo_widgets/demo_widgets.dart'; +import 'package:flutter/material.dart'; +import 'package:tencent_live_fluttify/tencent_live_fluttify.dart'; + +class PlayerScreen extends StatefulWidget { + @override + _PlayerScreenState createState() => _PlayerScreenState(); +} + +class _PlayerScreenState extends State { + bool _loading; + LivePlayer _player; + + @override + void initState() { + super.initState(); + _loading = true; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: Text('Player')), + body: DecoratedColumn( + children: [ + Flexible( + child: Stack( + children: [ + CloudVideo( + onCloudVideoCreated: (controller) async { + _player = await LivePlayer.create(); + await _player.setPlayerView(controller); + await _player.setRenderMode(RenderMode.FULL_SCREEN); + await _player.startPlay( + 'https://media.w3.org/2010/05/sintel/trailer.mp4', + type: PlayType.HLS, + ); + await _player.setOnEventListener(onEventPlayBegin: () { + setState(() { + _loading = false; + }); + }); + }, + ), + if (_loading) Center(child: CircularProgressIndicator()), + ], + ), + ), + Flexible( + child: SyntaxView( + code: kCode, + syntax: Syntax.DART, + withLinesCount: true, + ), + ), + ], + ), + ); + } + + @override + void dispose() { + _player.dispose(); + super.dispose(); + } +} + +const kCode = ''' +CloudVideo( + onCloudVideoCreated: (controller) async { + final player = await LivePlayer.create(); + await player.setPlayerView(controller.playerView); + await player.setRenderMode(RenderMode.FULL_SCREEN); + await player.startPlay( + 'https://media.w3.org/2010/05/sintel/trailer.mp4', + type: PlayType.HLS, + ); + await player.setOnEventListener(onEventPlayBegin: () { + setState(() { + _loading = false; + }); + }); + }, +) +'''; diff --git a/example/lib/src/pusher/pusher.screen.dart b/example/lib/src/pusher/pusher.screen.dart new file mode 100644 index 0000000..8fd2b53 --- /dev/null +++ b/example/lib/src/pusher/pusher.screen.dart @@ -0,0 +1,161 @@ +import 'package:decorated_flutter/decorated_flutter.dart'; +import 'package:demo_widgets/demo_widgets.dart'; +import 'package:flutter/material.dart'; +import 'package:tencent_live_fluttify/tencent_live_fluttify.dart'; + +class PusherScreen extends StatefulWidget { + @override + _PusherScreenState createState() => _PusherScreenState(); +} + +class _PusherScreenState extends State { + LivePusher _pusher; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: Text('推流')), + floatingActionButton: FloatingActionButton( + onPressed: () {}, + child: Text('重置'), + ), + body: DecoratedColumn( + children: [ + Flexible( + child: CloudVideo( + onCloudVideoCreated: (controller) async { + _pusher = await LivePusher.create(); + await _pusher.startPreview(controller); + }, + ), + ), + Flexible( + child: DecoratedColumn( + divider: kDividerTiny, + children: [ + DiscreteSetting( + head: '设定画面清晰度', + options: ['标清', '高清', '超清', '连麦(主)', '连麦(副)'], + onSelected: (value) { + switch (value) { + case '标清': + _pusher.setVideoQuality(Quality.STANDARD); + break; + case '高清': + _pusher.setVideoQuality(Quality.HIGH); + break; + case '超清': + _pusher.setVideoQuality(Quality.SUPER_HIGH); + break; + case '连麦(主)': + _pusher.setVideoQuality(Quality.LINKMIC_MAIN); + break; + case '连麦(副)': + _pusher.setVideoQuality(Quality.LINKMIC_SUB); + break; + } + }, + ), + DiscreteSetting( + head: '美颜美白和红润特效', + options: ['光滑', '自然', '朦胧'], + onSelected: (value) { + switch (value) { + case '光滑': + _pusher.setBeautyFilter(BeautyFilter.SMOOTH); + break; + case '自然': + _pusher.setBeautyFilter(BeautyFilter.NATURE); + break; + case '朦胧': + _pusher.setBeautyFilter(BeautyFilter.HAZY); + break; + } + }, + ), + DiscreteSetting( + head: '色彩滤镜效果', + options: [ + '白兰', + '标准', + '超脱', + '纯真', + '粉嫩', + '怀旧', + '蓝调', + '浪漫', + '清凉', + '清新', + '日系', + '唯美', + '美白', + '香粉', + '樱红', + '元气', + '云裳', + ], + onSelected: (value) { + final config = createLocalImageConfiguration(context); + switch (value) { + case '白兰': + _pusher.setFilter(ColorFilter.BAILAN, config); + break; + case '标准': + _pusher.setFilter(ColorFilter.BIAOZHUN, config); + break; + case '超脱': + _pusher.setFilter(ColorFilter.CHAOTUO, config); + break; + case '纯真': + _pusher.setFilter(ColorFilter.CHUNZHEN, config); + break; + case '粉嫩': + _pusher.setFilter(ColorFilter.FENNEN, config); + break; + case '怀旧': + _pusher.setFilter(ColorFilter.HUAIJIU, config); + break; + case '蓝调': + _pusher.setFilter(ColorFilter.LANDIAO, config); + break; + case '浪漫': + _pusher.setFilter(ColorFilter.LANGMAN, config); + break; + case '清凉': + _pusher.setFilter(ColorFilter.QINGLIANG, config); + break; + case '清新': + _pusher.setFilter(ColorFilter.QINGXIN, config); + break; + case '日系': + _pusher.setFilter(ColorFilter.RIXI, config); + break; + case '唯美': + _pusher.setFilter(ColorFilter.WEIMEI, config); + break; + case '美白': + _pusher.setFilter(ColorFilter.WHITE, config); + break; + case '香粉': + _pusher.setFilter(ColorFilter.XIANGFEN, config); + break; + case '樱红': + _pusher.setFilter(ColorFilter.YINGHONG, config); + break; + case '元气': + _pusher.setFilter(ColorFilter.YUANQI, config); + break; + case '云裳': + _pusher.setFilter(ColorFilter.YUNSHANG, config); + break; + } + }, + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/example/lib/src/tencent_live.screen.dart b/example/lib/src/tencent_live.screen.dart new file mode 100644 index 0000000..a908df5 --- /dev/null +++ b/example/lib/src/tencent_live.screen.dart @@ -0,0 +1,45 @@ +import 'package:demo_widgets/demo_widgets.dart'; +import 'package:flutter/material.dart'; + +import 'player/player.screen.dart'; +import 'pusher/pusher.screen.dart'; + +class TencentLiveScreen extends StatefulWidget { + @override + _TencentLiveScreenState createState() => _TencentLiveScreenState(); +} + +class _TencentLiveScreenState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: Text('腾讯直播')), + body: ListView( + children: [ + FunctionGroup( + headLabel: '推流', + opened: true, + children: [ + FunctionItem( + label: '开始预览', + sublabel: 'PusherScreen', + target: PusherScreen(), + ), + ], + ), + FunctionGroup( + headLabel: '拉流/播放', + opened: true, + children: [ + FunctionItem( + label: '播放器', + sublabel: 'PlayerScreen', + target: PlayerScreen(), + ), + ], + ), + ], + ), + ); + } +} diff --git a/example/pubspec.yaml b/example/pubspec.yaml new file mode 100644 index 0000000..2a4bb2a --- /dev/null +++ b/example/pubspec.yaml @@ -0,0 +1,29 @@ +name: tencent_live_fluttify_example +description: Demonstrates how to use the tencent_live_fluttify plugin. +publish_to: 'none' + +environment: + sdk: ">=2.6.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + cupertino_icons: ^0.1.2 + permission_handler: ^5.0.0+hotfix.3 + oktoast: ^2.3.2 + demo_widgets: ^0.2.1 +# video_controller: +# path: /Users/yohom/Github/Me/All/packages/video_controller +# git: +# url: git@github.com:yohom/video_controller.git +# ref: develop + +dev_dependencies: + flutter_test: + sdk: flutter + + tencent_live_fluttify: + path: ../ + +flutter: + uses-material-design: true \ No newline at end of file diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart new file mode 100644 index 0000000..dd07968 --- /dev/null +++ b/example/test/widget_test.dart @@ -0,0 +1,27 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:tencent_live_fluttify_example/main.dart'; + +void main() { + testWidgets('Verify Platform version', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(MyApp()); + + // Verify that platform version is retrieved. + expect( + find.byWidgetPredicate( + (Widget widget) => widget is Text && + widget.data.startsWith('Running on:'), + ), + findsOneWidget, + ); + }); +} diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..aa479fd --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,37 @@ +.idea/ +.vagrant/ +.sconsign.dblite +.svn/ + +.DS_Store +*.swp +profile + +DerivedData/ +build/ +GeneratedPluginRegistrant.h +GeneratedPluginRegistrant.m + +.generated/ + +*.pbxuser +*.mode1v3 +*.mode2v3 +*.perspectivev3 + +!default.pbxuser +!default.mode1v3 +!default.mode2v3 +!default.perspectivev3 + +xcuserdata + +*.moved-aside + +*.pyc +*sync/ +Icon? +.tags* + +/Flutter/Generated.xcconfig +/Flutter/flutter_export_environment.sh \ No newline at end of file diff --git a/ios/Assets/.gitkeep b/ios/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ios/Classes/SubHandler/Custom/SubHandlerCustom.h b/ios/Classes/SubHandler/Custom/SubHandlerCustom.h new file mode 100644 index 0000000..46d669a --- /dev/null +++ b/ios/Classes/SubHandler/Custom/SubHandlerCustom.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandlerCustom) +- (NSDictionary*) getSubHandlerCustom; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/Custom/SubHandlerCustom.m b/ios/Classes/SubHandler/Custom/SubHandlerCustom.m new file mode 100644 index 0000000..24d223e --- /dev/null +++ b/ios/Classes/SubHandler/Custom/SubHandlerCustom.m @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandlerCustom.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandlerCustom) +- (NSDictionary*) getSubHandlerCustom { + return @{ + + }; +} + +@end diff --git a/ios/Classes/SubHandler/SubHandler0.h b/ios/Classes/SubHandler/SubHandler0.h new file mode 100644 index 0000000..e4fbcd9 --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler0.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandler0) +- (NSDictionary*) getSubHandler0; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/SubHandler0.m b/ios/Classes/SubHandler/SubHandler0.m new file mode 100644 index 0000000..070e21b --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler0.m @@ -0,0 +1,4730 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandler0.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandler0) +- (NSDictionary*) getSubHandler0 { + __weak __typeof(self)weakSelf = self; + return @{ + @"TXLivePush::initWithConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::initWithConfig(%@)", args[@"refId"], args[@"config"]); + } + + // invoke native method + id result = [ref initWithConfig: config]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXLivePush::startPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIView* view = (UIView*) args[@"view"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::startPreview(%@)", args[@"refId"], args[@"view"]); + } + + // invoke native method + int result = [ref startPreview: view]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::stopPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::stopPreview()", args[@"refId"]); + } + + // invoke native method + [ref stopPreview ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::startPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* rtmpURL = (NSString*) args[@"rtmpURL"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::startPush(%@)", args[@"refId"], args[@"rtmpURL"]); + } + + // invoke native method + int result = [ref startPush: rtmpURL]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::stopPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::stopPush()", args[@"refId"]); + } + + // invoke native method + [ref stopPush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::pausePush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::pausePush()", args[@"refId"]); + } + + // invoke native method + [ref pausePush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::resumePush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::resumePush()", args[@"refId"]); + } + + // invoke native method + [ref resumePush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::isPublishing": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::isPublishing()", args[@"refId"]); + } + + // invoke native method + bool result = [ref isPublishing]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setVideoQuality_adjustBitrate_adjustResolution": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TX_Enum_Type_VideoQuality quality = (TX_Enum_Type_VideoQuality) [args[@"quality"] integerValue]; + // jsonable arg + BOOL adjustBitrate = [args[@"adjustBitrate"] boolValue]; + // jsonable arg + BOOL adjustResolution = [args[@"adjustResolution"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setVideoQuality(%@, %@, %@)", args[@"refId"], args[@"quality"], args[@"adjustBitrate"], args[@"adjustResolution"]); + } + + // invoke native method + [ref setVideoQuality : quality adjustBitrate: adjustBitrate adjustResolution: adjustResolution]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::switchCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::switchCamera()", args[@"refId"]); + } + + // invoke native method + int result = [ref switchCamera]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setMirror": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isMirror = [args[@"isMirror"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setMirror(%@)", args[@"refId"], args[@"isMirror"]); + } + + // invoke native method + [ref setMirror : isMirror]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setRenderRotation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int rotation = [args[@"rotation"] intValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]); + } + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::toggleTorch": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::toggleTorch(%@)", args[@"refId"], args[@"bEnable"]); + } + + // invoke native method + BOOL result = [ref toggleTorch: bEnable]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setZoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + CGFloat distance = [args[@"distance"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setZoom(%@)", args[@"refId"], args[@"distance"]); + } + + // invoke native method + [ref setZoom : distance]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setFocusPosition": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // struct arg + NSValue* touchPointValue = (NSValue*) args[@"touchPoint"]; + CGPoint touchPoint; + [touchPointValue getValue:&touchPoint]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setFocusPosition(%@)", args[@"refId"], args[@"touchPoint"]); + } + + // invoke native method + [ref setFocusPosition : touchPoint]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::getBeautyManager": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::getBeautyManager()", args[@"refId"]); + } + + // invoke native method + TXBeautyManager* result = [ref getBeautyManager]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXLivePush::setMute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setMute(%@)", args[@"refId"], args[@"bEnable"]); + } + + // invoke native method + [ref setMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::playBGM": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::playBGM(%@)", args[@"refId"], args[@"path"]); + } + + // invoke native method + BOOL result = [ref playBGM: path]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::playBGM_withBeginNotify_withProgressNotify_andCompleteNotify": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::playBGM(%@, %@, %@, %@)", args[@"refId"], args[@"path"], args[@"beginNotify"], args[@"progressNotify"], args[@"completeNotify"]); + } + + // invoke native method + BOOL result = [ref playBGM: path withBeginNotify: ^(NSInteger errCode) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#errCode::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argerrCode = @(errCode); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|NSInteger#errCode::void|NSInteger#errCode" arguments:@{@"errCode": argerrCode == nil ? [NSNull null] : argerrCode}]; + }); + + } withProgressNotify: ^(NSInteger progressMS, NSInteger durationMS) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#progressMS,NSInteger#durationMS::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argprogressMS = @(progressMS); + // primitive callback arg + NSNumber* argdurationMS = @(durationMS); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|NSInteger#progressMS,NSInteger#durationMS::void|NSInteger#progressMS,NSInteger#durationMS" arguments:@{@"progressMS": argprogressMS == nil ? [NSNull null] : argprogressMS, @"durationMS": argdurationMS == nil ? [NSNull null] : argdurationMS}]; + }); + + } andCompleteNotify: ^(NSInteger errCode) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#errCode::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argerrCode = @(errCode); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|NSInteger#errCode::void|NSInteger#errCode" arguments:@{@"errCode": argerrCode == nil ? [NSNull null] : argerrCode}]; + }); + + }]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::stopBGM": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::stopBGM()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref stopBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::pauseBGM": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::pauseBGM()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref pauseBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::resumeBGM": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::resumeBGM()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref resumeBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::getMusicDuration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::getMusicDuration(%@)", args[@"refId"], args[@"path"]); + } + + // invoke native method + int result = [ref getMusicDuration: path]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setBGMVolume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setBGMVolume(%@)", args[@"refId"], args[@"volume"]); + } + + // invoke native method + BOOL result = [ref setBGMVolume: volume]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setMicVolume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setMicVolume(%@)", args[@"refId"], args[@"volume"]); + } + + // invoke native method + BOOL result = [ref setMicVolume: volume]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setBGMPitch": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float pitch = [args[@"pitch"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setBGMPitch(%@)", args[@"refId"], args[@"pitch"]); + } + + // invoke native method + BOOL result = [ref setBGMPitch: pitch]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setReverbType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXReverbType reverbType = (TXReverbType) [args[@"reverbType"] integerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setReverbType(%@)", args[@"refId"], args[@"reverbType"]); + } + + // invoke native method + BOOL result = [ref setReverbType: reverbType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setVoiceChangerType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVoiceChangerType voiceChangerType = (TXVoiceChangerType) [args[@"voiceChangerType"] integerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setVoiceChangerType(%@)", args[@"refId"], args[@"voiceChangerType"]); + } + + // invoke native method + BOOL result = [ref setVoiceChangerType: voiceChangerType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setBGMPosition": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSInteger position = [args[@"position"] longValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setBGMPosition(%@)", args[@"refId"], args[@"position"]); + } + + // invoke native method + BOOL result = [ref setBGMPosition: position]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setAudioVolumeEvaluationListener": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setAudioVolumeEvaluationListener(%@)", args[@"refId"], args[@"volumeEvaluationListener"]); + } + + // invoke native method + [ref setAudioVolumeEvaluationListener : ^(NSInteger volume) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#volume::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argvolume = @(volume); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|NSInteger#volume::void|NSInteger#volume" arguments:@{@"volume": argvolume == nil ? [NSNull null] : argvolume}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::enableAudioVolumeEvaluation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSUInteger interval = [args[@"interval"] unsignedIntegerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::enableAudioVolumeEvaluation(%@)", args[@"refId"], args[@"interval"]); + } + + // invoke native method + [ref enableAudioVolumeEvaluation : interval]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::startRecord": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::startRecord(%@)", args[@"refId"], args[@"videoPath"]); + } + + // invoke native method + int result = [ref startRecord: videoPath]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::stopRecord": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::stopRecord()", args[@"refId"]); + } + + // invoke native method + int result = [ref stopRecord]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::snapshot": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::snapshot(%@)", args[@"refId"], args[@"snapshotCompletionBlock"]); + } + + // invoke native method + [ref snapshot : ^(UIImage* __arg_0__) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|TXImage*#__arg_0__::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // ref callback arg + UIImage* arg__arg_0__ = __arg_0__; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setSendAudioSampleBufferMuted": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL muted = [args[@"muted"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setSendAudioSampleBufferMuted(%@)", args[@"refId"], args[@"muted"]); + } + + // invoke native method + [ref setSendAudioSampleBufferMuted : muted]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::sendMessageEx": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + NSData* data = (NSData*) args[@"data"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::sendMessageEx(%@)", args[@"refId"], args[@"data"]); + } + + // invoke native method + BOOL result = [ref sendMessageEx: data]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::sendMessage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + NSData* data = (NSData*) args[@"data"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::sendMessage(%@)", args[@"refId"], args[@"data"]); + } + + // invoke native method + [ref sendMessage : data]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::showVideoDebugLog": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isShow = [args[@"isShow"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::showVideoDebugLog(%@)", args[@"refId"], args[@"isShow"]); + } + + // invoke native method + [ref showVideoDebugLog : isShow]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setLogViewMargin": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // struct arg + NSValue* marginValue = (NSValue*) args[@"margin"]; + UIEdgeInsets margin; + [marginValue getValue:&margin]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setLogViewMargin(%@)", args[@"refId"], args[@"margin"]); + } + + // invoke native method + [ref setLogViewMargin : margin]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setEnableClockOverlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL enabled = [args[@"enabled"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setEnableClockOverlay(%@)", args[@"refId"], args[@"enabled"]); + } + + // invoke native method + [ref setEnableClockOverlay : enabled]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::enableClockOverlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::enableClockOverlay()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref enableClockOverlay]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePush::setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TX_Enum_Type_BeautyStyle beautyStyle = (TX_Enum_Type_BeautyStyle) [args[@"beautyStyle"] integerValue]; + // jsonable arg + float beautyLevel = [args[@"beautyLevel"] floatValue]; + // jsonable arg + float whitenessLevel = [args[@"whitenessLevel"] floatValue]; + // jsonable arg + float ruddinessLevel = [args[@"ruddinessLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setBeautyStyle(%@, %@, %@, %@)", args[@"refId"], args[@"beautyStyle"], args[@"beautyLevel"], args[@"whitenessLevel"], args[@"ruddinessLevel"]); + } + + // invoke native method + [ref setBeautyStyle : beautyStyle beautyLevel: beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setFilter": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setFilter(%@)", args[@"refId"], args[@"image"]); + } + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setSpecialRatio": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float specialValue = [args[@"specialValue"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setSpecialRatio(%@)", args[@"refId"], args[@"specialValue"]); + } + + // invoke native method + [ref setSpecialRatio : specialValue]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setEyeScaleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"eyeScaleLevel"]); + } + + // invoke native method + [ref setEyeScaleLevel : eyeScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setFaceScaleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float faceScaleLevel = [args[@"faceScaleLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setFaceScaleLevel(%@)", args[@"refId"], args[@"faceScaleLevel"]); + } + + // invoke native method + [ref setFaceScaleLevel : faceScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setFaceVLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float faceVLevel = [args[@"faceVLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setFaceVLevel(%@)", args[@"refId"], args[@"faceVLevel"]); + } + + // invoke native method + [ref setFaceVLevel : faceVLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setChinLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float chinLevel = [args[@"chinLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setChinLevel(%@)", args[@"refId"], args[@"chinLevel"]); + } + + // invoke native method + [ref setChinLevel : chinLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setFaceShortLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float faceShortlevel = [args[@"faceShortlevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"faceShortlevel"]); + } + + // invoke native method + [ref setFaceShortLevel : faceShortlevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setNoseSlimLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float noseSlimLevel = [args[@"noseSlimLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"noseSlimLevel"]); + } + + // invoke native method + [ref setNoseSlimLevel : noseSlimLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::selectMotionTmpl_inDir": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::selectMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]); + } + + // invoke native method + [ref selectMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::setMotionMute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL motionMute = [args[@"motionMute"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePush@%@::setMotionMute(%@)", args[@"refId"], args[@"motionMute"]); + } + + // invoke native method + [ref setMotionMute : motionMute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::getRoomMemberList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::getRoomMemberList()", args[@"refId"]); + } + + // invoke native method + NSArray* result = [ref getRoomMemberList]; + + // result + // 返回值: 列表 + NSMutableArray* __result__ = [NSMutableArray array]; + for (int __i__ = 0; __i__ < result.count; __i__++) { + NSObject* object = [result objectAtIndex:__i__]; + [__result__ addObject: object]; + } + + methodResult(__result__); + }, + @"TXCAVRoom::getRoomVideoList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::getRoomVideoList()", args[@"refId"]); + } + + // invoke native method + NSArray* result = [ref getRoomVideoList]; + + // result + // 返回值: 列表 + NSMutableArray* __result__ = [NSMutableArray array]; + for (int __i__ = 0; __i__ < result.count; __i__++) { + NSObject* object = [result objectAtIndex:__i__]; + [__result__ addObject: object]; + } + + methodResult(__result__); + }, + @"TXCAVRoom::isInRoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::isInRoom()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref isInRoom]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXCAVRoom::isPushing": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::isPushing()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref isPushing]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXCAVRoom::enterRoom_withCompletion": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + TXCAVRoomParam* param = (TXCAVRoomParam*) args[@"param"]; + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::enterRoom(%@, %@)", args[@"refId"], args[@"param"], args[@"completion"]); + } + + // invoke native method + [ref enterRoom : param withCompletion: ^(int result) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"TXIAVRoomCompletionHandler::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argresult = @(result); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::exitRoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::exitRoom(%@)", args[@"refId"], args[@"completion"]); + } + + // invoke native method + [ref exitRoom : ^(int result) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"TXIAVRoomCompletionHandler::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argresult = @(result); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::startLocalPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIView* view = (UIView*) args[@"view"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::startLocalPreview(%@)", args[@"refId"], args[@"view"]); + } + + // invoke native method + [ref startLocalPreview : view]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::stopLocalPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::stopLocalPreview()", args[@"refId"]); + } + + // invoke native method + [ref stopLocalPreview ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setRenderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXEAVRoomRenderMode renderMode = (TXEAVRoomRenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setRenderMode(%@)", args[@"refId"], args[@"renderMode"]); + } + + // invoke native method + [ref setRenderMode : renderMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::switchCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::switchCamera()", args[@"refId"]); + } + + // invoke native method + [ref switchCamera ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setMirror": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isMirror = [args[@"isMirror"] boolValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setMirror(%@)", args[@"refId"], args[@"isMirror"]); + } + + // invoke native method + [ref setMirror : isMirror]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setAudioMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXEAVRoomAudioMode audioMode = (TXEAVRoomAudioMode) [args[@"audioMode"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setAudioMode(%@)", args[@"refId"], args[@"audioMode"]); + } + + // invoke native method + [ref setAudioMode : audioMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setLocalMute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setLocalMute(%@)", args[@"refId"], args[@"bEnable"]); + } + + // invoke native method + [ref setLocalMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::pause": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::pause()", args[@"refId"]); + } + + // invoke native method + [ref pause ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::resume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::resume()", args[@"refId"]); + } + + // invoke native method + [ref resume ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setVideoBitrate_videoAspect": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSInteger videoBitrate = [args[@"videoBitrate"] longValue]; + // enum arg + TXEAVRoomVideoAspect videoAspect = (TXEAVRoomVideoAspect) [args[@"videoAspect"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setVideoBitrate(%@, %@)", args[@"refId"], args[@"videoBitrate"], args[@"videoAspect"]); + } + + // invoke native method + [ref setVideoBitrate : videoBitrate videoAspect: videoAspect]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setBeautyLevel_whitenessLevel_ruddinessLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int beautyLevel = [args[@"beautyLevel"] intValue]; + // jsonable arg + int whitenessLevel = [args[@"whitenessLevel"] intValue]; + // jsonable arg + int ruddinessLevel = [args[@"ruddinessLevel"] intValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setBeautyLevel(%@, %@, %@)", args[@"refId"], args[@"beautyLevel"], args[@"whitenessLevel"], args[@"ruddinessLevel"]); + } + + // invoke native method + [ref setBeautyLevel : beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setEyeScaleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"eyeScaleLevel"]); + } + + // invoke native method + [ref setEyeScaleLevel : eyeScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setFaceScaleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float faceScaleLevel = [args[@"faceScaleLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceScaleLevel(%@)", args[@"refId"], args[@"faceScaleLevel"]); + } + + // invoke native method + [ref setFaceScaleLevel : faceScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setFilter": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* filterImage = (UIImage*) args[@"filterImage"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setFilter(%@)", args[@"refId"], args[@"filterImage"]); + } + + // invoke native method + [ref setFilter : filterImage]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::selectMotionTmpl_inDir": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::selectMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]); + } + + // invoke native method + [ref selectMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setFaceVLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float vLeve = [args[@"vLeve"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceVLevel(%@)", args[@"refId"], args[@"vLeve"]); + } + + // invoke native method + [ref setFaceVLevel : vLeve]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setFaceShortLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float shortLevel = [args[@"shortLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"shortLevel"]); + } + + // invoke native method + [ref setFaceShortLevel : shortLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setNoseSlimLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float slimLevel = [args[@"slimLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"slimLevel"]); + } + + // invoke native method + [ref setNoseSlimLevel : slimLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setChinLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float chinLevel = [args[@"chinLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setChinLevel(%@)", args[@"refId"], args[@"chinLevel"]); + } + + // invoke native method + [ref setChinLevel : chinLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setBeautyStyle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int style = [args[@"style"] intValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setBeautyStyle(%@)", args[@"refId"], args[@"style"]); + } + + // invoke native method + [ref setBeautyStyle : style]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXCAVRoom::setFilterMixLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float mixLevel = [args[@"mixLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXCAVRoom@%@::setFilterMixLevel(%@)", args[@"refId"], args[@"mixLevel"]); + } + + // invoke native method + [ref setFilterMixLevel : mixLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::sharedInstance": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::sharedInstance()"); + } + + // invoke native method + TXLiveBase* result = [TXLiveBase sharedInstance]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXLiveBase::setLogLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TX_Enum_Type_LogLevel level = (TX_Enum_Type_LogLevel) [args[@"level"] integerValue]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setLogLevel(%@)", args[@"level"]); + } + + // invoke native method + [TXLiveBase setLogLevel: level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::setConsoleEnabled": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL enabled = [args[@"enabled"] boolValue]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setConsoleEnabled(%@)", args[@"enabled"]); + } + + // invoke native method + [TXLiveBase setConsoleEnabled: enabled]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::setAppVersion": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* verNum = (NSString*) args[@"verNum"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setAppVersion(%@)", args[@"verNum"]); + } + + // invoke native method + [TXLiveBase setAppVersion: verNum]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::setAudioSessionDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + id delegate = (id) args[@"delegate"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setAudioSessionDelegate(%@)", args[@"delegate"]); + } + + // invoke native method + [TXLiveBase setAudioSessionDelegate: self]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::getSDKVersionStr": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::getSDKVersionStr()"); + } + + // invoke native method + NSString* result = [TXLiveBase getSDKVersionStr]; + + // result + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + @"TXLiveBase::getPituSDKVersion": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::getPituSDKVersion()"); + } + + // invoke native method + NSString* result = [TXLiveBase getPituSDKVersion]; + + // result + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + @"TXLiveBase::setAppID": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* appID = (NSString*) args[@"appID"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setAppID(%@)", args[@"appID"]); + } + + // invoke native method + [TXLiveBase setAppID: appID]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::setLicenceURL_key": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* url = (NSString*) args[@"url"]; + // jsonable arg + NSString* key = (NSString*) args[@"key"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::setLicenceURL(%@, %@)", args[@"url"], args[@"key"]); + } + + // invoke native method + [TXLiveBase setLicenceURL: url key: key]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLiveBase::getLicenceInfo": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLiveBase::getLicenceInfo()"); + } + + // invoke native method + NSString* result = [TXLiveBase getLicenceInfo]; + + // result + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + @"TXVideoInfoReader::getVideoInfo": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoInfoReader::getVideoInfo(%@)", args[@"videoPath"]); + } + + // invoke native method + TXVideoInfo* result = [TXVideoInfoReader getVideoInfo: videoPath]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXVideoInfoReader::getSampleImages_videoPath_progress": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int count = [args[@"count"] intValue]; + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoInfoReader::getSampleImages(%@, %@, %@)", args[@"count"], args[@"videoPath"], args[@"sampleProcess"]); + } + + // invoke native method + [TXVideoInfoReader getSampleImages: count videoPath: videoPath progress: ^(int number, UIImage* image) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"sampleProcess::Callback" + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* argnumber = @(number); + // ref callback arg + UIImage* argimage = image; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::sampleProcess::sampleProcess" + arguments:@{@"number": argnumber == nil ? [NSNull null] : argnumber, @"image": argimage == nil ? [NSNull null] : argimage} + result:^(id result) {}]; // 由于结果是异步返回, 这里用不上, 所以就不生成代码了 + }); + + // 由于flutter无法同步调用method channel, 所以暂不支持有返回值的回调方法 + // 相关issue https://github.com/flutter/flutter/issues/28310 + NSLog(@"暂不支持有返回值的回调方法"); + + ////////////////////////////如果需要手写代码, 请写在这里///////////////////////////// + + //////////////////////////////////////////////////////////////////////////////// + + return NO; + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoInfoReader::getSampleImage_videoPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoInfoReader::getSampleImage(%@, %@)", args[@"time"], args[@"videoPath"]); + } + + // invoke native method + UIImage* result = [TXVideoInfoReader getSampleImage: time videoPath: videoPath]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXVideoEditer::initWithPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + TXPreviewParam* param = (TXPreviewParam*) args[@"param"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::initWithPreview(%@)", args[@"refId"], args[@"param"]); + } + + // invoke native method + TXVideoEditer* result = [ref initWithPreview: param]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXVideoEditer::setVideoPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoPath(%@)", args[@"refId"], args[@"videoPath"]); + } + + // invoke native method + int result = [ref setVideoPath: videoPath]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXVideoEditer::setPictureList_fps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* pitureList = (NSArray*) args[@"pitureList"]; + // jsonable arg + int fps = [args[@"fps"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setPictureList(%@, %@)", args[@"refId"], args[@"pitureList"], args[@"fps"]); + } + + // invoke native method + int result = [ref setPictureList: pitureList fps: fps]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXVideoEditer::setPictureTransition_duration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXTransitionType transitionType = (TXTransitionType) [args[@"transitionType"] integerValue]; + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setPictureTransition(%@, %@)", args[@"refId"], args[@"transitionType"], args[@"duration"]); + } + + // invoke native method + [ref setPictureTransition : transitionType duration: ^(CGFloat __arg_0__) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|CGFloat#__arg_0__::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* arg__arg_0__ = @(__arg_0__); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|CGFloat#__arg_0__::void|CGFloat#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::previewAtTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + CGFloat time = [args[@"time"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::previewAtTime(%@)", args[@"refId"], args[@"time"]); + } + + // invoke native method + [ref previewAtTime : time]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::startPlayFromTime_toTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::startPlayFromTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]); + } + + // invoke native method + [ref startPlayFromTime : startTime toTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::pausePlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::pausePlay()", args[@"refId"]); + } + + // invoke native method + [ref pausePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::resumePlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::resumePlay()", args[@"refId"]); + } + + // invoke native method + [ref resumePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::stopPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::stopPlay()", args[@"refId"]); + } + + // invoke native method + [ref stopPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBeautyFilter_setWhiteningLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float beautyLevel = [args[@"beautyLevel"] floatValue]; + // jsonable arg + float whiteningLevel = [args[@"whiteningLevel"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBeautyFilter(%@, %@)", args[@"refId"], args[@"beautyLevel"], args[@"whiteningLevel"]); + } + + // invoke native method + [ref setBeautyFilter : beautyLevel setWhiteningLevel: whiteningLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setFilter": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setFilter(%@)", args[@"refId"], args[@"image"]); + } + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* leftFilter = (UIImage*) args[@"leftFilter"]; + // jsonable arg + CGFloat leftIntensity = [args[@"leftIntensity"] floatValue]; + // ref arg + UIImage* rightFilter = (UIImage*) args[@"rightFilter"]; + // jsonable arg + CGFloat rightIntensity = [args[@"rightIntensity"] floatValue]; + // jsonable arg + CGFloat leftRatio = [args[@"leftRatio"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setFilter(%@, %@, %@, %@, %@)", args[@"refId"], args[@"leftFilter"], args[@"leftIntensity"], args[@"rightFilter"], args[@"rightIntensity"], args[@"leftRatio"]); + } + + // invoke native method + [ref setFilter : leftFilter leftIntensity: leftIntensity rightFilter: rightFilter rightIntensity: rightIntensity leftRatio: leftRatio]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setSpecialRatio": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float specialRatio = [args[@"specialRatio"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setSpecialRatio(%@)", args[@"refId"], args[@"specialRatio"]); + } + + // invoke native method + [ref setSpecialRatio : specialRatio]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setReverse": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isReverse = [args[@"isReverse"] boolValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setReverse(%@)", args[@"refId"], args[@"isReverse"]); + } + + // invoke native method + [ref setReverse : isReverse]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setRepeatPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* repeatList = (NSArray*) args[@"repeatList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setRepeatPlay(%@)", args[@"refId"], args[@"repeatList"]); + } + + // invoke native method + [ref setRepeatPlay : repeatList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setRenderRotation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int rotation = [args[@"rotation"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]); + } + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setSpeedList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* speedList = (NSArray*) args[@"speedList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setSpeedList(%@)", args[@"refId"], args[@"speedList"]); + } + + // invoke native method + [ref setSpeedList : speedList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::startEffect_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXEffectType type = (TXEffectType) [args[@"type"] integerValue]; + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::startEffect(%@, %@)", args[@"refId"], args[@"type"], args[@"startTime"]); + } + + // invoke native method + [ref startEffect : type startTime: startTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::stopEffect_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXEffectType type = (TXEffectType) [args[@"type"] integerValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::stopEffect(%@, %@)", args[@"refId"], args[@"type"], args[@"endTime"]); + } + + // invoke native method + [ref stopEffect : type endTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::deleteLastEffect": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::deleteLastEffect()", args[@"refId"]); + } + + // invoke native method + [ref deleteLastEffect ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::deleteAllEffect": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::deleteAllEffect()", args[@"refId"]); + } + + // invoke native method + [ref deleteAllEffect ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setSubtitleList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* subtitleList = (NSArray*) args[@"subtitleList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setSubtitleList(%@)", args[@"refId"], args[@"subtitleList"]); + } + + // invoke native method + [ref setSubtitleList : subtitleList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setPasterList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* pasterList = (NSArray*) args[@"pasterList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setPasterList(%@)", args[@"refId"], args[@"pasterList"]); + } + + // invoke native method + [ref setPasterList : pasterList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setAnimatedPasterList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* animatedPasterList = (NSArray*) args[@"animatedPasterList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setAnimatedPasterList(%@)", args[@"refId"], args[@"animatedPasterList"]); + } + + // invoke native method + [ref setAnimatedPasterList : animatedPasterList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGM_result": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGM(%@, %@)", args[@"refId"], args[@"path"], args[@"result"]); + } + + // invoke native method + [ref setBGM : path result: ^(int __arg_0__) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|int#__arg_0__::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* arg__arg_0__ = @(__arg_0__); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|int#__arg_0__::void|int#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGMStartTime_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMStartTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]); + } + + // invoke native method + [ref setBGMStartTime : startTime endTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGMLoop": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isLoop = [args[@"isLoop"] boolValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMLoop(%@)", args[@"refId"], args[@"isLoop"]); + } + + // invoke native method + [ref setBGMLoop : isLoop]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGMAtVideoTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMAtVideoTime(%@)", args[@"refId"], args[@"time"]); + } + + // invoke native method + [ref setBGMAtVideoTime : time]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setVideoVolume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoVolume(%@)", args[@"refId"], args[@"volume"]); + } + + // invoke native method + [ref setVideoVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGMVolume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMVolume(%@)", args[@"refId"], args[@"volume"]); + } + + // invoke native method + [ref setBGMVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setBGMFadeInDuration_fadeOutDuration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float fadeInDuration = [args[@"fadeInDuration"] floatValue]; + // jsonable arg + float fadeOutDuration = [args[@"fadeOutDuration"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMFadeInDuration(%@, %@)", args[@"refId"], args[@"fadeInDuration"], args[@"fadeOutDuration"]); + } + + // invoke native method + [ref setBGMFadeInDuration : fadeInDuration fadeOutDuration: fadeOutDuration]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setWaterMark_normalizationFrame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* waterMark = (UIImage*) args[@"waterMark"]; + // struct arg + NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"]; + CGRect normalizationFrame; + [normalizationFrameValue getValue:&normalizationFrame]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setWaterMark(%@, %@)", args[@"refId"], args[@"waterMark"], args[@"normalizationFrame"]); + } + + // invoke native method + [ref setWaterMark : waterMark normalizationFrame: normalizationFrame]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setTailWaterMark_normalizationFrame_duration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* tailWaterMark = (UIImage*) args[@"tailWaterMark"]; + // struct arg + NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"]; + CGRect normalizationFrame; + [normalizationFrameValue getValue:&normalizationFrame]; + // jsonable arg + CGFloat duration = [args[@"duration"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setTailWaterMark(%@, %@, %@)", args[@"refId"], args[@"tailWaterMark"], args[@"normalizationFrame"], args[@"duration"]); + } + + // invoke native method + [ref setTailWaterMark : tailWaterMark normalizationFrame: normalizationFrame duration: duration]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setCutFromTime_toTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setCutFromTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]); + } + + // invoke native method + [ref setCutFromTime : startTime toTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::setVideoBitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int bitrate = [args[@"bitrate"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoBitrate(%@)", args[@"refId"], args[@"bitrate"]); + } + + // invoke native method + [ref setVideoBitrate : bitrate]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::generateVideo_videoOutputPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::generateVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]); + } + + // invoke native method + [ref generateVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::quickGenerateVideo_videoOutputPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::quickGenerateVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]); + } + + // invoke native method + [ref quickGenerateVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::generateVideoWithTwoPass_videoOutputPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::generateVideoWithTwoPass(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]); + } + + // invoke native method + [ref generateVideoWithTwoPass : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::pauseGenerate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::pauseGenerate()", args[@"refId"]); + } + + // invoke native method + [ref pauseGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::resumeGenerate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::resumeGenerate()", args[@"refId"]); + } + + // invoke native method + [ref resumeGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoEditer::cancelGenerate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoEditer@%@::cancelGenerate()", args[@"refId"]); + } + + // invoke native method + [ref cancelGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::initWithPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + TXPreviewParam* param = (TXPreviewParam*) args[@"param"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::initWithPreview(%@)", args[@"refId"], args[@"param"]); + } + + // invoke native method + TXVideoJoiner* result = [ref initWithPreview: param]; + + // result + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + @"TXVideoJoiner::setVideoPathList": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // list arg + NSArray* videoPathList = (NSArray*) args[@"videoPathList"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::setVideoPathList(%@)", args[@"refId"], args[@"videoPathList"]); + } + + // invoke native method + int result = [ref setVideoPathList: videoPathList]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXVideoJoiner::setVideoVolumes": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSArray* volumes = (NSArray*) args[@"volumes"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::setVideoVolumes(%@)", args[@"refId"], args[@"volumes"]); + } + + // invoke native method + [ref setVideoVolumes : volumes]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::startPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::startPlay()", args[@"refId"]); + } + + // invoke native method + [ref startPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::pausePlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::pausePlay()", args[@"refId"]); + } + + // invoke native method + [ref pausePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::resumePlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::resumePlay()", args[@"refId"]); + } + + // invoke native method + [ref resumePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::stopPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::stopPlay()", args[@"refId"]); + } + + // invoke native method + [ref stopPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::joinVideo_videoOutputPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::joinVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]); + } + + // invoke native method + [ref joinVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::splitJoinVideo_videoOutputPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::splitJoinVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]); + } + + // invoke native method + [ref splitJoinVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXVideoJoiner::cancelJoin": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXVideoJoiner@%@::cancelJoin()", args[@"refId"]); + } + + // invoke native method + [ref cancelJoin ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setBeautyStyle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXBeautyStyle beautyStyle = (TXBeautyStyle) [args[@"beautyStyle"] integerValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setBeautyStyle(%@)", args[@"refId"], args[@"beautyStyle"]); + } + + // invoke native method + [ref setBeautyStyle : beautyStyle]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setBeautyLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setBeautyLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setBeautyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setWhitenessLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setWhitenessLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setWhitenessLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setRuddyLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setRuddyLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setRuddyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFilter": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFilter(%@)", args[@"refId"], args[@"image"]); + } + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFilterStrength": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float strength = [args[@"strength"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFilterStrength(%@)", args[@"refId"], args[@"strength"]); + } + + // invoke native method + [ref setFilterStrength : strength]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setGreenScreenFile": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* file = (NSString*) args[@"file"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setGreenScreenFile(%@)", args[@"refId"], args[@"file"]); + } + + // invoke native method + [ref setGreenScreenFile : file]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setEyeScaleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setEyeScaleLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFaceSlimLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceSlimLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setFaceSlimLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFaceVLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceVLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setFaceVLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setChinLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setChinLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setChinLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFaceShortLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setFaceShortLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setNoseSlimLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setNoseSlimLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setEyeLightenLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeLightenLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setEyeLightenLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setToothWhitenLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setToothWhitenLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setToothWhitenLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setWrinkleRemoveLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setWrinkleRemoveLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setWrinkleRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setPounchRemoveLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setPounchRemoveLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setPounchRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setSmileLinesRemoveLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setSmileLinesRemoveLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setSmileLinesRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setForeheadLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setForeheadLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setForeheadLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setEyeDistanceLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeDistanceLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setEyeDistanceLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setEyeAngleLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeAngleLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setEyeAngleLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setMouthShapeLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setMouthShapeLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setMouthShapeLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setNoseWingLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setNoseWingLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setNoseWingLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setNosePositionLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setNosePositionLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setNosePositionLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setLipsThicknessLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setLipsThicknessLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setLipsThicknessLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setFaceBeautyLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceBeautyLevel(%@)", args[@"refId"], args[@"level"]); + } + + // invoke native method + [ref setFaceBeautyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setMotionTmpl_inDir": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]); + } + + // invoke native method + [ref setMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXBeautyManager::setMotionMute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL motionMute = [args[@"motionMute"] boolValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXBeautyManager@%@::setMotionMute(%@)", args[@"refId"], args[@"motionMute"]); + } + + // invoke native method + [ref setMotionMute : motionMute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setupVideoWidget_containView_insertIndex": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + // ref arg + UIView* view = (UIView*) args[@"view"]; + // jsonable arg + unsigned int idx = [args[@"idx"] unsignedIntValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setupVideoWidget(%@, %@, %@)", args[@"refId"], args[@"frame"], args[@"view"], args[@"idx"]); + } + + // invoke native method + [ref setupVideoWidget : frame containView: view insertIndex: idx]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::removeVideoWidget": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::removeVideoWidget()", args[@"refId"]); + } + + // invoke native method + [ref removeVideoWidget ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::startPlay_type": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* url = (NSString*) args[@"url"]; + // enum arg + TX_Enum_PlayType playType = (TX_Enum_PlayType) [args[@"playType"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::startPlay(%@, %@)", args[@"refId"], args[@"url"], args[@"playType"]); + } + + // invoke native method + int result = [ref startPlay: url type: playType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::stopPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::stopPlay()", args[@"refId"]); + } + + // invoke native method + int result = [ref stopPlay]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::isPlaying": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::isPlaying()", args[@"refId"]); + } + + // invoke native method + BOOL result = [ref isPlaying]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::pause": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::pause()", args[@"refId"]); + } + + // invoke native method + [ref pause ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::resume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::resume()", args[@"refId"]); + } + + // invoke native method + [ref resume ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setRenderRotation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TX_Enum_Type_HomeOrientation rotation = (TX_Enum_Type_HomeOrientation) [args[@"rotation"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]); + } + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setRenderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TX_Enum_Type_RenderMode renderMode = (TX_Enum_Type_RenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setRenderMode(%@)", args[@"refId"], args[@"renderMode"]); + } + + // invoke native method + [ref setRenderMode : renderMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::snapshot": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::snapshot(%@)", args[@"refId"], args[@"snapshotCompletionBlock"]); + } + + // invoke native method + [ref snapshot : ^(UIImage* __arg_0__) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|TXImage*#__arg_0__::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // ref callback arg + UIImage* arg__arg_0__ = __arg_0__; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setMute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setMute(%@)", args[@"refId"], args[@"bEnable"]); + } + + // invoke native method + [ref setMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setVolume": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + int volume = [args[@"volume"] intValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setVolume(%@)", args[@"refId"], args[@"volume"]); + } + + // invoke native method + [ref setVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setAudioRoute": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXAudioRouteType audioRoute = (TXAudioRouteType) [args[@"audioRoute"] integerValue]; + + // ref + + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer::setAudioRoute(%@)", args[@"audioRoute"]); + } + + // invoke native method + [TXLivePlayer setAudioRoute: audioRoute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setAudioVolumeEvaluationListener": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setAudioVolumeEvaluationListener(%@)", args[@"refId"], args[@"volumeEvaluationListener"]); + } + + // invoke native method + [ref setAudioVolumeEvaluationListener : ^(int __arg_0__) { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:[NSString stringWithFormat:@"void|int#__arg_0__::Callback@%@", @(ref.hash)] + binaryMessenger:[[weakSelf registrar] messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + // print log + if (enableLog) { + NSLog(@""); + } + + // 构造可以直接传输的参数 + // primitive callback arg + NSNumber* arg__arg_0__ = @(__arg_0__); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::void|int#__arg_0__::void|int#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}]; + }); + + }]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::enableAudioVolumeEvaluation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSUInteger interval = [args[@"interval"] unsignedIntegerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::enableAudioVolumeEvaluation(%@)", args[@"refId"], args[@"interval"]); + } + + // invoke native method + [ref enableAudioVolumeEvaluation : interval]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::prepareLiveSeek_bizId": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* domain = (NSString*) args[@"domain"]; + // jsonable arg + NSInteger bizId = [args[@"bizId"] longValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::prepareLiveSeek(%@, %@)", args[@"refId"], args[@"domain"], args[@"bizId"]); + } + + // invoke native method + int result = [ref prepareLiveSeek: domain bizId: bizId]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::resumeLive": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::resumeLive()", args[@"refId"]); + } + + // invoke native method + int result = [ref resumeLive]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::seek": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::seek(%@)", args[@"refId"], args[@"time"]); + } + + // invoke native method + int result = [ref seek: time]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::startRecord": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // enum arg + TXRecordType recordType = (TXRecordType) [args[@"recordType"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::startRecord(%@)", args[@"refId"], args[@"recordType"]); + } + + // invoke native method + int result = [ref startRecord: recordType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::stopRecord": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::stopRecord()", args[@"refId"]); + } + + // invoke native method + int result = [ref stopRecord]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::setRate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + float rate = [args[@"rate"] floatValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setRate(%@)", args[@"refId"], args[@"rate"]); + } + + // invoke native method + [ref setRate : rate]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::setLogViewMargin": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // struct arg + NSValue* marginValue = (NSValue*) args[@"margin"]; + UIEdgeInsets margin; + [marginValue getValue:&margin]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::setLogViewMargin(%@)", args[@"refId"], args[@"margin"]); + } + + // invoke native method + [ref setLogViewMargin : margin]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::showVideoDebugLog": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + BOOL isShow = [args[@"isShow"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::showVideoDebugLog(%@)", args[@"refId"], args[@"isShow"]); + } + + // invoke native method + [ref showVideoDebugLog : isShow]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePlayer::switchStream": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* playUrl = (NSString*) args[@"playUrl"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::switchStream(%@)", args[@"refId"], args[@"playUrl"]); + } + + // invoke native method + int result = [ref switchStream: playUrl]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + @"TXLivePlayer::callExperimentalAPI": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // args + // jsonable arg + NSString* jsonStr = (NSString*) args[@"jsonStr"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // print log + if (enableLog) { + NSLog(@"fluttify-objc: TXLivePlayer@%@::callExperimentalAPI(%@)", args[@"refId"], args[@"jsonStr"]); + } + + // invoke native method + [ref callExperimentalAPI : jsonStr]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + methodResult(__result__); + }, + @"TXLivePush::initWithConfig_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + id result = [ref initWithConfig: config]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::startPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIView* view = (UIView*) args[@"view"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref startPreview: view]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::stopPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref stopPreview ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::startPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* rtmpURL = (NSString*) args[@"rtmpURL"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref startPush: rtmpURL]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + }; +} + +@end diff --git a/ios/Classes/SubHandler/SubHandler1.h b/ios/Classes/SubHandler/SubHandler1.h new file mode 100644 index 0000000..c8046d7 --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler1.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandler1) +- (NSDictionary*) getSubHandler1; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/SubHandler1.m b/ios/Classes/SubHandler/SubHandler1.m new file mode 100644 index 0000000..f1d4c4c --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler1.m @@ -0,0 +1,4940 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandler1.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandler1) +- (NSDictionary*) getSubHandler1 { + __weak __typeof(self)weakSelf = self; + return @{ + @"TXLivePush::stopPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref stopPush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::pausePush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref pausePush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::resumePush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref resumePush ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::isPublishing_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + bool result = [ref isPublishing]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setVideoQuality_adjustBitrate_adjustResolution_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TX_Enum_Type_VideoQuality quality = (TX_Enum_Type_VideoQuality) [args[@"quality"] integerValue]; + // jsonable arg + BOOL adjustBitrate = [args[@"adjustBitrate"] boolValue]; + // jsonable arg + BOOL adjustResolution = [args[@"adjustResolution"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setVideoQuality : quality adjustBitrate: adjustBitrate adjustResolution: adjustResolution]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::switchCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref switchCamera]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setMirror_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isMirror = [args[@"isMirror"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setMirror : isMirror]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setRenderRotation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int rotation = [args[@"rotation"] intValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::toggleTorch_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref toggleTorch: bEnable]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setZoom_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat distance = [args[@"distance"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setZoom : distance]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setFocusPosition_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* touchPointValue = (NSValue*) args[@"touchPoint"]; + CGPoint touchPoint; + [touchPointValue getValue:&touchPoint]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setFocusPosition : touchPoint]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::getBeautyManager_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + TXBeautyManager* result = [ref getBeautyManager]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setMute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::playBGM_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref playBGM: path]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::stopBGM_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref stopBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::pauseBGM_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref pauseBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::resumeBGM_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref resumeBGM]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::getMusicDuration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* path = (NSString*) args[@"path"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref getMusicDuration: path]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setBGMVolume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setBGMVolume: volume]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setMicVolume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setMicVolume: volume]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setBGMPitch_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float pitch = [args[@"pitch"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setBGMPitch: pitch]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setReverbType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXReverbType reverbType = (TXReverbType) [args[@"reverbType"] integerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setReverbType: reverbType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setVoiceChangerType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVoiceChangerType voiceChangerType = (TXVoiceChangerType) [args[@"voiceChangerType"] integerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setVoiceChangerType: voiceChangerType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setBGMPosition_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger position = [args[@"position"] longValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref setBGMPosition: position]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::enableAudioVolumeEvaluation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSUInteger interval = [args[@"interval"] unsignedIntegerValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref enableAudioVolumeEvaluation : interval]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::startRecord_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref startRecord: videoPath]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::stopRecord_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + int result = [ref stopRecord]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setSendAudioSampleBufferMuted_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL muted = [args[@"muted"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setSendAudioSampleBufferMuted : muted]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::sendMessageEx_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + NSData* data = (NSData*) args[@"data"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref sendMessageEx: data]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::sendMessage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + NSData* data = (NSData*) args[@"data"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref sendMessage : data]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::showVideoDebugLog_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isShow = [args[@"isShow"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref showVideoDebugLog : isShow]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setLogViewMargin_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* marginValue = (NSValue*) args[@"margin"]; + UIEdgeInsets margin; + [marginValue getValue:&margin]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setLogViewMargin : margin]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setEnableClockOverlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enabled = [args[@"enabled"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setEnableClockOverlay : enabled]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::enableClockOverlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref enableClockOverlay]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TX_Enum_Type_BeautyStyle beautyStyle = (TX_Enum_Type_BeautyStyle) [args[@"beautyStyle"] integerValue]; + // jsonable arg + float beautyLevel = [args[@"beautyLevel"] floatValue]; + // jsonable arg + float whitenessLevel = [args[@"whitenessLevel"] floatValue]; + // jsonable arg + float ruddinessLevel = [args[@"ruddinessLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setBeautyStyle : beautyStyle beautyLevel: beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setFilter_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setSpecialRatio_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float specialValue = [args[@"specialValue"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setSpecialRatio : specialValue]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setEyeScaleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setEyeScaleLevel : eyeScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setFaceScaleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float faceScaleLevel = [args[@"faceScaleLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setFaceScaleLevel : faceScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setFaceVLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float faceVLevel = [args[@"faceVLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setFaceVLevel : faceVLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setChinLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float chinLevel = [args[@"chinLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setChinLevel : chinLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setFaceShortLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float faceShortlevel = [args[@"faceShortlevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setFaceShortLevel : faceShortlevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setNoseSlimLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float noseSlimLevel = [args[@"noseSlimLevel"] floatValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setNoseSlimLevel : noseSlimLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::selectMotionTmpl_inDir_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref selectMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::setMotionMute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL motionMute = [args[@"motionMute"] boolValue]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + [ref setMotionMute : motionMute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::getRoomMemberList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + NSArray* result = [ref getRoomMemberList]; + + // result + // 返回值: 列表 + NSMutableArray* __result__ = [NSMutableArray array]; + for (int __i__ = 0; __i__ < result.count; __i__++) { + NSObject* object = [result objectAtIndex:__i__]; + [__result__ addObject: object]; + } + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::getRoomVideoList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + NSArray* result = [ref getRoomVideoList]; + + // result + // 返回值: 列表 + NSMutableArray* __result__ = [NSMutableArray array]; + for (int __i__ = 0; __i__ < result.count; __i__++) { + NSObject* object = [result objectAtIndex:__i__]; + [__result__ addObject: object]; + } + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::isInRoom_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref isInRoom]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::isPushing_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref isPushing]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::startLocalPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIView* view = (UIView*) args[@"view"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref startLocalPreview : view]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::stopLocalPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref stopLocalPreview ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setRenderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXEAVRoomRenderMode renderMode = (TXEAVRoomRenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setRenderMode : renderMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::switchCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref switchCamera ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setMirror_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isMirror = [args[@"isMirror"] boolValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setMirror : isMirror]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setAudioMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXEAVRoomAudioMode audioMode = (TXEAVRoomAudioMode) [args[@"audioMode"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setAudioMode : audioMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setLocalMute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setLocalMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::pause_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref pause ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::resume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref resume ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setVideoBitrate_videoAspect_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger videoBitrate = [args[@"videoBitrate"] longValue]; + // enum arg + TXEAVRoomVideoAspect videoAspect = (TXEAVRoomVideoAspect) [args[@"videoAspect"] integerValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setVideoBitrate : videoBitrate videoAspect: videoAspect]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setBeautyLevel_whitenessLevel_ruddinessLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int beautyLevel = [args[@"beautyLevel"] intValue]; + // jsonable arg + int whitenessLevel = [args[@"whitenessLevel"] intValue]; + // jsonable arg + int ruddinessLevel = [args[@"ruddinessLevel"] intValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setBeautyLevel : beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setEyeScaleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setEyeScaleLevel : eyeScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setFaceScaleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float faceScaleLevel = [args[@"faceScaleLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setFaceScaleLevel : faceScaleLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setFilter_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* filterImage = (UIImage*) args[@"filterImage"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setFilter : filterImage]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::selectMotionTmpl_inDir_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref selectMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setFaceVLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float vLeve = [args[@"vLeve"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setFaceVLevel : vLeve]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setFaceShortLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float shortLevel = [args[@"shortLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setFaceShortLevel : shortLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setNoseSlimLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float slimLevel = [args[@"slimLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setNoseSlimLevel : slimLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setChinLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float chinLevel = [args[@"chinLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setChinLevel : chinLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setBeautyStyle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int style = [args[@"style"] intValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setBeautyStyle : style]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXCAVRoom::setFilterMixLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float mixLevel = [args[@"mixLevel"] floatValue]; + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + // invoke native method + [ref setFilterMixLevel : mixLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::sharedInstance_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + + + // invoke native method + TXLiveBase* result = [TXLiveBase sharedInstance]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::setLogLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TX_Enum_Type_LogLevel level = (TX_Enum_Type_LogLevel) [args[@"level"] integerValue]; + + // ref + + + // invoke native method + [TXLiveBase setLogLevel: level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::setConsoleEnabled_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enabled = [args[@"enabled"] boolValue]; + + // ref + + + // invoke native method + [TXLiveBase setConsoleEnabled: enabled]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::setAppVersion_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* verNum = (NSString*) args[@"verNum"]; + + // ref + + + // invoke native method + [TXLiveBase setAppVersion: verNum]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::getSDKVersionStr_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + + + // invoke native method + NSString* result = [TXLiveBase getSDKVersionStr]; + + // result + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::getPituSDKVersion_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + + + // invoke native method + NSString* result = [TXLiveBase getPituSDKVersion]; + + // result + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::setAppID_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* appID = (NSString*) args[@"appID"]; + + // ref + + + // invoke native method + [TXLiveBase setAppID: appID]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::setLicenceURL_key_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* url = (NSString*) args[@"url"]; + // jsonable arg + NSString* key = (NSString*) args[@"key"]; + + // ref + + + // invoke native method + [TXLiveBase setLicenceURL: url key: key]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLiveBase::getLicenceInfo_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + + + // invoke native method + NSString* result = [TXLiveBase getLicenceInfo]; + + // result + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoInfoReader::getVideoInfo_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + + + // invoke native method + TXVideoInfo* result = [TXVideoInfoReader getVideoInfo: videoPath]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoInfoReader::getSampleImage_videoPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + + + // invoke native method + UIImage* result = [TXVideoInfoReader getSampleImage: time videoPath: videoPath]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::initWithPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + TXPreviewParam* param = (TXPreviewParam*) args[@"param"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + TXVideoEditer* result = [ref initWithPreview: param]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setVideoPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + int result = [ref setVideoPath: videoPath]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setPictureList_fps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* pitureList = (NSArray*) args[@"pitureList"]; + // jsonable arg + int fps = [args[@"fps"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + int result = [ref setPictureList: pitureList fps: fps]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::previewAtTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat time = [args[@"time"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref previewAtTime : time]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::startPlayFromTime_toTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref startPlayFromTime : startTime toTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::pausePlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref pausePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::resumePlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref resumePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::stopPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref stopPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBeautyFilter_setWhiteningLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float beautyLevel = [args[@"beautyLevel"] floatValue]; + // jsonable arg + float whiteningLevel = [args[@"whiteningLevel"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBeautyFilter : beautyLevel setWhiteningLevel: whiteningLevel]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setFilter_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* leftFilter = (UIImage*) args[@"leftFilter"]; + // jsonable arg + CGFloat leftIntensity = [args[@"leftIntensity"] floatValue]; + // ref arg + UIImage* rightFilter = (UIImage*) args[@"rightFilter"]; + // jsonable arg + CGFloat rightIntensity = [args[@"rightIntensity"] floatValue]; + // jsonable arg + CGFloat leftRatio = [args[@"leftRatio"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setFilter : leftFilter leftIntensity: leftIntensity rightFilter: rightFilter rightIntensity: rightIntensity leftRatio: leftRatio]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setSpecialRatio_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float specialRatio = [args[@"specialRatio"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setSpecialRatio : specialRatio]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setReverse_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isReverse = [args[@"isReverse"] boolValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setReverse : isReverse]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setRepeatPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* repeatList = (NSArray*) args[@"repeatList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setRepeatPlay : repeatList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setRenderRotation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int rotation = [args[@"rotation"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setSpeedList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* speedList = (NSArray*) args[@"speedList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setSpeedList : speedList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::startEffect_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXEffectType type = (TXEffectType) [args[@"type"] integerValue]; + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref startEffect : type startTime: startTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::stopEffect_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXEffectType type = (TXEffectType) [args[@"type"] integerValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref stopEffect : type endTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::deleteLastEffect_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref deleteLastEffect ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::deleteAllEffect_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref deleteAllEffect ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setSubtitleList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* subtitleList = (NSArray*) args[@"subtitleList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setSubtitleList : subtitleList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setPasterList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* pasterList = (NSArray*) args[@"pasterList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setPasterList : pasterList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setAnimatedPasterList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* animatedPasterList = (NSArray*) args[@"animatedPasterList"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setAnimatedPasterList : animatedPasterList]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBGMStartTime_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBGMStartTime : startTime endTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBGMLoop_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isLoop = [args[@"isLoop"] boolValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBGMLoop : isLoop]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBGMAtVideoTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBGMAtVideoTime : time]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setVideoVolume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setVideoVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBGMVolume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float volume = [args[@"volume"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBGMVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setBGMFadeInDuration_fadeOutDuration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float fadeInDuration = [args[@"fadeInDuration"] floatValue]; + // jsonable arg + float fadeOutDuration = [args[@"fadeOutDuration"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setBGMFadeInDuration : fadeInDuration fadeOutDuration: fadeOutDuration]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setWaterMark_normalizationFrame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* waterMark = (UIImage*) args[@"waterMark"]; + // struct arg + NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"]; + CGRect normalizationFrame; + [normalizationFrameValue getValue:&normalizationFrame]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setWaterMark : waterMark normalizationFrame: normalizationFrame]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setTailWaterMark_normalizationFrame_duration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* tailWaterMark = (UIImage*) args[@"tailWaterMark"]; + // struct arg + NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"]; + CGRect normalizationFrame; + [normalizationFrameValue getValue:&normalizationFrame]; + // jsonable arg + CGFloat duration = [args[@"duration"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setTailWaterMark : tailWaterMark normalizationFrame: normalizationFrame duration: duration]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setCutFromTime_toTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float startTime = [args[@"startTime"] floatValue]; + // jsonable arg + float endTime = [args[@"endTime"] floatValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setCutFromTime : startTime toTime: endTime]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::setVideoBitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int bitrate = [args[@"bitrate"] intValue]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref setVideoBitrate : bitrate]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::generateVideo_videoOutputPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref generateVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::quickGenerateVideo_videoOutputPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref quickGenerateVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::generateVideoWithTwoPass_videoOutputPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref generateVideoWithTwoPass : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::pauseGenerate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref pauseGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::resumeGenerate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref resumeGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoEditer::cancelGenerate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + [ref cancelGenerate ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::initWithPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + TXPreviewParam* param = (TXPreviewParam*) args[@"param"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + TXVideoJoiner* result = [ref initWithPreview: param]; + + // result + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::setVideoPathList_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // list arg + NSArray* videoPathList = (NSArray*) args[@"videoPathList"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + int result = [ref setVideoPathList: videoPathList]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::setVideoVolumes_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSArray* volumes = (NSArray*) args[@"volumes"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref setVideoVolumes : volumes]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::startPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref startPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::pausePlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref pausePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::resumePlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref resumePlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::stopPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref stopPlay ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::joinVideo_videoOutputPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref joinVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::splitJoinVideo_videoOutputPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue]; + // jsonable arg + NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"]; + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref splitJoinVideo : videoCompressed videoOutputPath: videoOutputPath]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXVideoJoiner::cancelJoin_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + // invoke native method + [ref cancelJoin ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setBeautyStyle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXBeautyStyle beautyStyle = (TXBeautyStyle) [args[@"beautyStyle"] integerValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setBeautyStyle : beautyStyle]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setBeautyLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setBeautyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setWhitenessLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setWhitenessLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setRuddyLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setRuddyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFilter_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* image = (UIImage*) args[@"image"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFilter : image]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFilterStrength_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float strength = [args[@"strength"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFilterStrength : strength]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setGreenScreenFile_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* file = (NSString*) args[@"file"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setGreenScreenFile : file]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setEyeScaleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setEyeScaleLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFaceSlimLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFaceSlimLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFaceVLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFaceVLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setChinLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setChinLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFaceShortLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFaceShortLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setNoseSlimLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setNoseSlimLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setEyeLightenLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setEyeLightenLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setToothWhitenLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setToothWhitenLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setWrinkleRemoveLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setWrinkleRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setPounchRemoveLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setPounchRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setSmileLinesRemoveLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setSmileLinesRemoveLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setForeheadLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setForeheadLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setEyeDistanceLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setEyeDistanceLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setEyeAngleLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setEyeAngleLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setMouthShapeLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setMouthShapeLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setNoseWingLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setNoseWingLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setNosePositionLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setNosePositionLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setLipsThicknessLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setLipsThicknessLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setFaceBeautyLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float level = [args[@"level"] floatValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setFaceBeautyLevel : level]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setMotionTmpl_inDir_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* tmplName = (NSString*) args[@"tmplName"]; + // jsonable arg + NSString* tmplDir = (NSString*) args[@"tmplDir"]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setMotionTmpl : tmplName inDir: tmplDir]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXBeautyManager::setMotionMute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL motionMute = [args[@"motionMute"] boolValue]; + + // ref + TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"]; + + // invoke native method + [ref setMotionMute : motionMute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setupVideoWidget_containView_insertIndex_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + // ref arg + UIView* view = (UIView*) args[@"view"]; + // jsonable arg + unsigned int idx = [args[@"idx"] unsignedIntValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setupVideoWidget : frame containView: view insertIndex: idx]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::removeVideoWidget_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref removeVideoWidget ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::startPlay_type_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* url = (NSString*) args[@"url"]; + // enum arg + TX_Enum_PlayType playType = (TX_Enum_PlayType) [args[@"playType"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref startPlay: url type: playType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::stopPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref stopPlay]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::isPlaying_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + BOOL result = [ref isPlaying]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::pause_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref pause ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::resume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref resume ]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setRenderRotation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TX_Enum_Type_HomeOrientation rotation = (TX_Enum_Type_HomeOrientation) [args[@"rotation"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setRenderRotation : rotation]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setRenderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TX_Enum_Type_RenderMode renderMode = (TX_Enum_Type_RenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setRenderMode : renderMode]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setMute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL bEnable = [args[@"bEnable"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setMute : bEnable]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setVolume_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int volume = [args[@"volume"] intValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setVolume : volume]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setAudioRoute_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXAudioRouteType audioRoute = (TXAudioRouteType) [args[@"audioRoute"] integerValue]; + + // ref + + + // invoke native method + [TXLivePlayer setAudioRoute: audioRoute]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::enableAudioVolumeEvaluation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSUInteger interval = [args[@"interval"] unsignedIntegerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref enableAudioVolumeEvaluation : interval]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::prepareLiveSeek_bizId_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* domain = (NSString*) args[@"domain"]; + // jsonable arg + NSInteger bizId = [args[@"bizId"] longValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref prepareLiveSeek: domain bizId: bizId]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::resumeLive_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref resumeLive]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::seek_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float time = [args[@"time"] floatValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref seek: time]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::startRecord_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXRecordType recordType = (TXRecordType) [args[@"recordType"] integerValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref startRecord: recordType]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::stopRecord_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref stopRecord]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setRate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float rate = [args[@"rate"] floatValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setRate : rate]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::setLogViewMargin_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* marginValue = (NSValue*) args[@"margin"]; + UIEdgeInsets margin; + [marginValue getValue:&margin]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref setLogViewMargin : margin]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::showVideoDebugLog_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isShow = [args[@"isShow"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref showVideoDebugLog : isShow]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::switchStream_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* playUrl = (NSString*) args[@"playUrl"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + int result = [ref switchStream: playUrl]; + + // result + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePlayer::callExperimentalAPI_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* jsonStr = (NSString*) args[@"jsonStr"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + [ref callExperimentalAPI : jsonStr]; + + // result + // 无返回值 + NSString* __result__ = @"success"; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + @"TXLivePush::get_config": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::get_config"); + } + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + TXLivePushConfig* result = ref.config; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePush::get_rtmpURL": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::get_rtmpURL"); + } + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.rtmpURL; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePush::get_frontCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::get_frontCamera"); + } + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_cacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_cacheTime"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + float result = ref.cacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_bAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_bAutoAdjustCacheTime"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.bAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_maxAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_maxAutoAdjustCacheTime"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + float result = ref.maxAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_minAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_minAutoAdjustCacheTime"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + float result = ref.minAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_videoBlockThreshold": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_videoBlockThreshold"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoBlockThreshold; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_connectRetryCount": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_connectRetryCount"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.connectRetryCount; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_connectRetryInterval": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_connectRetryInterval"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.connectRetryInterval; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_enableAEC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_enableAEC"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAEC; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_enableMessage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_enableMessage"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableMessage; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_enableMetaData": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_enableMetaData"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableMetaData; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_flvSessionKey": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_flvSessionKey"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.flvSessionKey; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_enableNearestIP": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_enableNearestIP"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableNearestIP; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_rtmpChannelType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_rtmpChannelType"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.rtmpChannelType; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_cacheFolderPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_cacheFolderPath"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.cacheFolderPath; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_maxCacheItems": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_maxCacheItems"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.maxCacheItems; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayConfig::get_headers": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::get_headers"); + } + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + // invoke native method + NSDictionary* result = ref.headers; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + }; +} + +@end diff --git a/ios/Classes/SubHandler/SubHandler2.h b/ios/Classes/SubHandler/SubHandler2.h new file mode 100644 index 0000000..372d43f --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler2.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandler2) +- (NSDictionary*) getSubHandler2; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/SubHandler2.m b/ios/Classes/SubHandler/SubHandler2.m new file mode 100644 index 0000000..056562a --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler2.m @@ -0,0 +1,3810 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandler2.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandler2) +- (NSDictionary*) getSubHandler2 { + __weak __typeof(self)weakSelf = self; + return @{ + @"TXCAVRoomConfig::get_enableVideoHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_enableVideoHWAcceleration"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableVideoHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_enableAudioHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_enableAudioHWAcceleration"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAudioHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_homeOrientation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_homeOrientation"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.homeOrientation; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_renderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_renderMode"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.renderMode; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_videoFPS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_videoFPS"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoFPS; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_videoBitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_videoBitrate"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoBitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_videoAspect": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_videoAspect"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoAspect; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_frontCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_frontCamera"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_pauseFps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_pauseFps"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.pauseFps; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_pauseImg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_pauseImg"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.pauseImg; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXCAVRoomConfig::get_enablePureAudioPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::get_enablePureAudioPush"); + } + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enablePureAudioPush; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoEditer::get_supportsTwoPassEncoding": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoEditer::get_supportsTwoPassEncoding"); + } + + // ref object + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.supportsTwoPassEncoding; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomParam::get_roomID": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::get_roomID"); + } + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + // invoke native method + UInt32 result = ref.roomID; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomParam::get_authBits": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::get_authBits"); + } + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + // invoke native method + TXEAVRoomAuthBits result = ref.authBits; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXCAVRoomParam::get_authBuffer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::get_authBuffer"); + } + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + // invoke native method + NSData* result = ref.authBuffer; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXBitrateItem::get_index": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::get_index"); + } + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + // invoke native method + NSInteger result = ref.index; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXBitrateItem::get_width": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::get_width"); + } + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + // invoke native method + NSInteger result = ref.width; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXBitrateItem::get_height": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::get_height"); + } + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + // invoke native method + NSInteger result = ref.height; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXBitrateItem::get_bitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::get_bitrate"); + } + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + // invoke native method + NSInteger result = ref.bitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_appId": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_appId"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + int result = ref.appId; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_fileId": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_fileId"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.fileId; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_timeout": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_timeout"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.timeout; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_exper": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_exper"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + int result = ref.exper; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_us": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_us"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.us; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_sign": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_sign"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.sign; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPlayerAuthParams::get_https": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::get_https"); + } + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.https; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_homeOrientation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_homeOrientation"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.homeOrientation; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_touchFocus": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_touchFocus"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.touchFocus; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableZoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableZoom"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableZoom; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_watermark": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_watermark"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.watermark; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_watermarkPos": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_watermarkPos"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + CGPoint result = ref.watermarkPos; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGPoint)]; + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_watermarkNormalization": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_watermarkNormalization"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + CGRect result = ref.watermarkNormalization; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_localVideoMirrorType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_localVideoMirrorType"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.localVideoMirrorType; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_pauseTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_pauseTime"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.pauseTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_pauseFps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_pauseFps"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.pauseFps; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_pauseImg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_pauseImg"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.pauseImg; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoResolution": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoResolution"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoResolution; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoFPS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoFPS"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoFPS; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoEncodeGop": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoEncodeGop"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoEncodeGop; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoBitratePIN": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoBitratePIN"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoBitratePIN; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableAutoBitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableAutoBitrate"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAutoBitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_autoAdjustStrategy": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_autoAdjustStrategy"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.autoAdjustStrategy; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoBitrateMax": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoBitrateMax"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoBitrateMax; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_videoBitrateMin": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_videoBitrateMin"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.videoBitrateMin; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_audioSampleRate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_audioSampleRate"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.audioSampleRate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_audioChannels": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_audioChannels"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.audioChannels; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableAudioPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableAudioPreview"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAudioPreview; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enablePureAudioPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enablePureAudioPush"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enablePureAudioPush; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_connectRetryCount": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_connectRetryCount"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.connectRetryCount; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_connectRetryInterval": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_connectRetryInterval"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.connectRetryInterval; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_customModeType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_customModeType"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.customModeType; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_sampleBufferSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_sampleBufferSize"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + CGSize result = ref.sampleBufferSize; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGSize)]; + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_autoSampleBufferSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_autoSampleBufferSize"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.autoSampleBufferSize; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableNAS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableNAS"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableNAS; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableAEC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableAEC"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAEC; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableHWAcceleration"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableAudioAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableAudioAcceleration"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAudioAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableAGC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableAGC"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableAGC; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_volumeType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_volumeType"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + TXSystemAudioVolumeType result = ref.volumeType; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_frontCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_frontCamera"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_beautyFilterDepth": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_beautyFilterDepth"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + float result = ref.beautyFilterDepth; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_whiteningFilterDepth": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_whiteningFilterDepth"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + float result = ref.whiteningFilterDepth; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_enableNearestIP": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_enableNearestIP"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableNearestIP; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_rtmpChannelType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_rtmpChannelType"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + int result = ref.rtmpChannelType; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePushConfig::get_metaData": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::get_metaData"); + } + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + // invoke native method + NSDictionary* result = ref.metaData; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePlayer::get_enableHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::get_enableHWAcceleration"); + } + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.enableHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXLivePlayer::get_config": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::get_config"); + } + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + TXLivePlayConfig* result = ref.config; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePlayer::get_isAutoPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::get_isAutoPlay"); + } + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + // invoke native method + BOOL result = ref.isAutoPlay; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXRecordResult::get_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::get_retCode"); + } + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + // invoke native method + TXRecordResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXRecordResult::get_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::get_descMsg"); + } + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXRecordResult::get_videoPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::get_videoPath"); + } + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.videoPath; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXRecordResult::get_coverImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::get_coverImage"); + } + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.coverImage; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXVideoInfo::get_coverImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_coverImage"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.coverImage; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXVideoInfo::get_duration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_duration"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.duration; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_fileSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_fileSize"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + unsigned long long result = ref.fileSize; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_fps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_fps"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + float result = ref.fps; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_bitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_bitrate"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + int result = ref.bitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_audioSampleRate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_audioSampleRate"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + int result = ref.audioSampleRate; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_width": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_width"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + int result = ref.width; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_height": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_height"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + int result = ref.height; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXVideoInfo::get_angle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::get_angle"); + } + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + // invoke native method + int result = ref.angle; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPreviewParam::get_videoView": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPreviewParam::get_videoView"); + } + + // ref object + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + // invoke native method + UIView* result = ref.videoView; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPreviewParam::get_renderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPreviewParam::get_renderMode"); + } + + // ref object + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + // invoke native method + TXPreviewRenderMode result = ref.renderMode; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXSubtitle::get_titleImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::get_titleImage"); + } + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.titleImage; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXSubtitle::get_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::get_frame"); + } + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + // invoke native method + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + methodResult(__result__); + }, + + @"TXSubtitle::get_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::get_startTime"); + } + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXSubtitle::get_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::get_endTime"); + } + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPaster::get_pasterImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::get_pasterImage"); + } + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + // invoke native method + UIImage* result = ref.pasterImage; + + // return a ref + id __result__ = result; + + methodResult(__result__); + }, + + @"TXPaster::get_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::get_frame"); + } + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + // invoke native method + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + methodResult(__result__); + }, + + @"TXPaster::get_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::get_startTime"); + } + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXPaster::get_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::get_endTime"); + } + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXAnimatedPaster::get_animatedPasterpath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::get_animatedPasterpath"); + } + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.animatedPasterpath; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXAnimatedPaster::get_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::get_frame"); + } + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + // invoke native method + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + methodResult(__result__); + }, + + @"TXAnimatedPaster::get_rotateAngle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::get_rotateAngle"); + } + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.rotateAngle; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXAnimatedPaster::get_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::get_startTime"); + } + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXAnimatedPaster::get_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::get_endTime"); + } + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXRepeat::get_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::get_startTime"); + } + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXRepeat::get_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::get_endTime"); + } + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXRepeat::get_repeatTimes": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::get_repeatTimes"); + } + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + // invoke native method + int result = ref.repeatTimes; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXSpeed::get_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::get_startTime"); + } + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXSpeed::get_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::get_endTime"); + } + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + // invoke native method + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXSpeed::get_speedLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::get_speedLevel"); + } + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + // invoke native method + TXSpeedLevel result = ref.speedLevel; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXGenerateResult::get_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXGenerateResult::get_retCode"); + } + + // ref object + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + // invoke native method + TXGenerateResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXGenerateResult::get_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXGenerateResult::get_descMsg"); + } + + // ref object + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXJoinerResult::get_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXJoinerResult::get_retCode"); + } + + // ref object + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + // invoke native method + TXJoinerResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + methodResult(__result__); + }, + + @"TXJoinerResult::get_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXJoinerResult::get_descMsg"); + } + + // ref object + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + // invoke native method + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + methodResult(__result__); + }, + + @"TXLivePush::get_config_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + TXLivePushConfig* result = ref.config; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePush::get_rtmpURL_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + NSString* result = ref.rtmpURL; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePush::get_frontCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_cacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + float result = ref.cacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_bAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + BOOL result = ref.bAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_maxAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + float result = ref.maxAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_minAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + float result = ref.minAutoAdjustCacheTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_videoBlockThreshold_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + int result = ref.videoBlockThreshold; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_connectRetryCount_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + int result = ref.connectRetryCount; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_connectRetryInterval_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + int result = ref.connectRetryInterval; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_enableAEC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + BOOL result = ref.enableAEC; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_enableMessage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + BOOL result = ref.enableMessage; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_enableMetaData_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + BOOL result = ref.enableMetaData; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_flvSessionKey_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + NSString* result = ref.flvSessionKey; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_enableNearestIP_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + BOOL result = ref.enableNearestIP; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_rtmpChannelType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + int result = ref.rtmpChannelType; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_cacheFolderPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + NSString* result = ref.cacheFolderPath; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_maxCacheItems_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + int result = ref.maxCacheItems; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayConfig::get_headers_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + NSDictionary* result = ref.headers; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_enableVideoHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + BOOL result = ref.enableVideoHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_enableAudioHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + BOOL result = ref.enableAudioHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_homeOrientation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.homeOrientation; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_renderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.renderMode; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_videoFPS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.videoFPS; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_videoBitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.videoBitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_videoAspect_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.videoAspect; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_frontCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_pauseFps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + int result = ref.pauseFps; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_pauseImg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + UIImage* result = ref.pauseImg; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomConfig::get_enablePureAudioPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + BOOL result = ref.enablePureAudioPush; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoEditer::get_supportsTwoPassEncoding_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + BOOL result = ref.supportsTwoPassEncoding; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomParam::get_roomID_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + UInt32 result = ref.roomID; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomParam::get_authBits_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + TXEAVRoomAuthBits result = ref.authBits; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXCAVRoomParam::get_authBuffer_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + NSData* result = ref.authBuffer; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXBitrateItem::get_index_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + NSInteger result = ref.index; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXBitrateItem::get_width_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + NSInteger result = ref.width; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXBitrateItem::get_height_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + NSInteger result = ref.height; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXBitrateItem::get_bitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + NSInteger result = ref.bitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_appId_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + int result = ref.appId; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_fileId_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + NSString* result = ref.fileId; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_timeout_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + NSString* result = ref.timeout; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_exper_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + int result = ref.exper; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_us_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + NSString* result = ref.us; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_sign_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + NSString* result = ref.sign; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPlayerAuthParams::get_https_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + BOOL result = ref.https; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_homeOrientation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.homeOrientation; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_touchFocus_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.touchFocus; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableZoom_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableZoom; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_watermark_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + UIImage* result = ref.watermark; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_watermarkPos_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + CGPoint result = ref.watermarkPos; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGPoint)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_watermarkNormalization_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + CGRect result = ref.watermarkNormalization; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_localVideoMirrorType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.localVideoMirrorType; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_pauseTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.pauseTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_pauseFps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.pauseFps; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_pauseImg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + UIImage* result = ref.pauseImg; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoResolution_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoResolution; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoFPS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoFPS; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoEncodeGop_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoEncodeGop; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoBitratePIN_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoBitratePIN; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableAutoBitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableAutoBitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_autoAdjustStrategy_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.autoAdjustStrategy; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoBitrateMax_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoBitrateMax; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_videoBitrateMin_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.videoBitrateMin; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_audioSampleRate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.audioSampleRate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_audioChannels_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.audioChannels; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableAudioPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableAudioPreview; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enablePureAudioPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enablePureAudioPush; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_connectRetryCount_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.connectRetryCount; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_connectRetryInterval_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.connectRetryInterval; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_customModeType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.customModeType; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_sampleBufferSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + CGSize result = ref.sampleBufferSize; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGSize)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_autoSampleBufferSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.autoSampleBufferSize; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableNAS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableNAS; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableAEC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableAEC; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableAudioAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableAudioAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableAGC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableAGC; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_volumeType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + TXSystemAudioVolumeType result = ref.volumeType; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_frontCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.frontCamera; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_beautyFilterDepth_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + float result = ref.beautyFilterDepth; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_whiteningFilterDepth_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + float result = ref.whiteningFilterDepth; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_enableNearestIP_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + BOOL result = ref.enableNearestIP; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_rtmpChannelType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + int result = ref.rtmpChannelType; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePushConfig::get_metaData_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + NSDictionary* result = ref.metaData; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayer::get_enableHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + BOOL result = ref.enableHWAcceleration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayer::get_config_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + TXLivePlayConfig* result = ref.config; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePlayer::get_isAutoPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + BOOL result = ref.isAutoPlay; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRecordResult::get_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + TXRecordResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRecordResult::get_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRecordResult::get_videoPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + NSString* result = ref.videoPath; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRecordResult::get_coverImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + UIImage* result = ref.coverImage; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_coverImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + UIImage* result = ref.coverImage; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_duration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + CGFloat result = ref.duration; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_fileSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + unsigned long long result = ref.fileSize; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + }; +} + +@end diff --git a/ios/Classes/SubHandler/SubHandler3.h b/ios/Classes/SubHandler/SubHandler3.h new file mode 100644 index 0000000..40c6ccb --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler3.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandler3) +- (NSDictionary*) getSubHandler3; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/SubHandler3.m b/ios/Classes/SubHandler/SubHandler3.m new file mode 100644 index 0000000..78bf1ba --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler3.m @@ -0,0 +1,3544 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandler3.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandler3) +- (NSDictionary*) getSubHandler3 { + __weak __typeof(self)weakSelf = self; + return @{ + @"TXVideoInfo::get_fps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + float result = ref.fps; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_bitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + int result = ref.bitrate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_audioSampleRate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + int result = ref.audioSampleRate; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_width_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + int result = ref.width; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_height_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + int result = ref.height; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXVideoInfo::get_angle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + int result = ref.angle; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPreviewParam::get_videoView_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + UIView* result = ref.videoView; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPreviewParam::get_renderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + TXPreviewRenderMode result = ref.renderMode; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSubtitle::get_titleImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + UIImage* result = ref.titleImage; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSubtitle::get_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSubtitle::get_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSubtitle::get_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPaster::get_pasterImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + UIImage* result = ref.pasterImage; + + // return a ref + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPaster::get_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPaster::get_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXPaster::get_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXAnimatedPaster::get_animatedPasterpath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + NSString* result = ref.animatedPasterpath; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXAnimatedPaster::get_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + CGRect result = ref.frame; + + // 返回值: 结构体 + NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CGRect)]; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXAnimatedPaster::get_rotateAngle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + CGFloat result = ref.rotateAngle; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXAnimatedPaster::get_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXAnimatedPaster::get_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRepeat::get_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRepeat::get_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXRepeat::get_repeatTimes_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + int result = ref.repeatTimes; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSpeed::get_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + CGFloat result = ref.startTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSpeed::get_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + CGFloat result = ref.endTime; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXSpeed::get_speedLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + TXSpeedLevel result = ref.speedLevel; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXGenerateResult::get_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + TXGenerateResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXGenerateResult::get_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXJoinerResult::get_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + TXJoinerResultCode result = ref.retCode; + + // 返回值: Value + NSObject* __result__ = @(result); + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXJoinerResult::get_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // ref object + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + NSString* result = ref.descMsg; + + // 返回值: jsonable + id __result__ = result; + + [resultList addObject:__result__]; + } + + methodResult(resultList); + }, + + @"TXLivePush::set_config": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::set_config"); + } + + // args + // ref arg + TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.config = config; + methodResult(@"success"); + }, + + @"TXLivePush::set_delegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::set_delegate"); + } + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.delegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePush::set_recordDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::set_recordDelegate"); + } + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.recordDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePush::set_videoProcessDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::set_videoProcessDelegate"); + } + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.videoProcessDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePush::set_audioProcessDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePush::set_audioProcessDelegate"); + } + + // args + + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.audioProcessDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXCAVRoom::set_delegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoom::set_delegate"); + } + + // args + + + // ref + TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"]; + + ref.delegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLiveBase::set_delegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLiveBase::set_delegate"); + } + + // args + + + // ref + TXLiveBase* ref = (TXLiveBase*) args[@"__this__"]; + + ref.delegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_cacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_cacheTime"); + } + + // args + // jsonable arg + float cacheTime = [args[@"cacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.cacheTime = cacheTime; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_bAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_bAutoAdjustCacheTime"); + } + + // args + // jsonable arg + BOOL bAutoAdjustCacheTime = [args[@"bAutoAdjustCacheTime"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.bAutoAdjustCacheTime = bAutoAdjustCacheTime; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_maxAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_maxAutoAdjustCacheTime"); + } + + // args + // jsonable arg + float maxAutoAdjustCacheTime = [args[@"maxAutoAdjustCacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.maxAutoAdjustCacheTime = maxAutoAdjustCacheTime; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_minAutoAdjustCacheTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_minAutoAdjustCacheTime"); + } + + // args + // jsonable arg + float minAutoAdjustCacheTime = [args[@"minAutoAdjustCacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.minAutoAdjustCacheTime = minAutoAdjustCacheTime; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_videoBlockThreshold": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_videoBlockThreshold"); + } + + // args + // jsonable arg + int videoBlockThreshold = [args[@"videoBlockThreshold"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.videoBlockThreshold = videoBlockThreshold; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_connectRetryCount": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_connectRetryCount"); + } + + // args + // jsonable arg + int connectRetryCount = [args[@"connectRetryCount"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.connectRetryCount = connectRetryCount; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_connectRetryInterval": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_connectRetryInterval"); + } + + // args + // jsonable arg + int connectRetryInterval = [args[@"connectRetryInterval"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.connectRetryInterval = connectRetryInterval; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableAEC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_enableAEC"); + } + + // args + // jsonable arg + BOOL enableAEC = [args[@"enableAEC"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableAEC = enableAEC; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableMessage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_enableMessage"); + } + + // args + // jsonable arg + BOOL enableMessage = [args[@"enableMessage"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableMessage = enableMessage; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableMetaData": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_enableMetaData"); + } + + // args + // jsonable arg + BOOL enableMetaData = [args[@"enableMetaData"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableMetaData = enableMetaData; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_flvSessionKey": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_flvSessionKey"); + } + + // args + // jsonable arg + NSString* flvSessionKey = (NSString*) args[@"flvSessionKey"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.flvSessionKey = flvSessionKey; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableNearestIP": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_enableNearestIP"); + } + + // args + // jsonable arg + BOOL enableNearestIP = [args[@"enableNearestIP"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableNearestIP = enableNearestIP; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_rtmpChannelType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_rtmpChannelType"); + } + + // args + // jsonable arg + int rtmpChannelType = [args[@"rtmpChannelType"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.rtmpChannelType = rtmpChannelType; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_cacheFolderPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_cacheFolderPath"); + } + + // args + // jsonable arg + NSString* cacheFolderPath = (NSString*) args[@"cacheFolderPath"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.cacheFolderPath = cacheFolderPath; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_maxCacheItems": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_maxCacheItems"); + } + + // args + // jsonable arg + int maxCacheItems = [args[@"maxCacheItems"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.maxCacheItems = maxCacheItems; + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_headers": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayConfig::set_headers"); + } + + // args + // jsonable arg + NSDictionary* headers = (NSDictionary*) args[@"headers"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.headers = headers; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enableVideoHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_enableVideoHWAcceleration"); + } + + // args + // jsonable arg + BOOL enableVideoHWAcceleration = [args[@"enableVideoHWAcceleration"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enableVideoHWAcceleration = enableVideoHWAcceleration; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enableAudioHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_enableAudioHWAcceleration"); + } + + // args + // jsonable arg + BOOL enableAudioHWAcceleration = [args[@"enableAudioHWAcceleration"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enableAudioHWAcceleration = enableAudioHWAcceleration; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_homeOrientation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_homeOrientation"); + } + + // args + // jsonable arg + int homeOrientation = [args[@"homeOrientation"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.homeOrientation = homeOrientation; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_renderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_renderMode"); + } + + // args + // jsonable arg + int renderMode = [args[@"renderMode"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.renderMode = renderMode; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoFPS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_videoFPS"); + } + + // args + // jsonable arg + int videoFPS = [args[@"videoFPS"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoFPS = videoFPS; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoBitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_videoBitrate"); + } + + // args + // jsonable arg + int videoBitrate = [args[@"videoBitrate"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoBitrate = videoBitrate; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoAspect": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_videoAspect"); + } + + // args + // jsonable arg + int videoAspect = [args[@"videoAspect"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoAspect = videoAspect; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_frontCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_frontCamera"); + } + + // args + // jsonable arg + BOOL frontCamera = [args[@"frontCamera"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.frontCamera = frontCamera; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_pauseFps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_pauseFps"); + } + + // args + // jsonable arg + int pauseFps = [args[@"pauseFps"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.pauseFps = pauseFps; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_pauseImg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_pauseImg"); + } + + // args + // ref arg + UIImage* pauseImg = (UIImage*) args[@"pauseImg"]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.pauseImg = pauseImg; + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enablePureAudioPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomConfig::set_enablePureAudioPush"); + } + + // args + // jsonable arg + BOOL enablePureAudioPush = [args[@"enablePureAudioPush"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enablePureAudioPush = enablePureAudioPush; + methodResult(@"success"); + }, + + @"TXVideoEditer::set_generateDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoEditer::set_generateDelegate"); + } + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + ref.generateDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXVideoEditer::set_previewDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoEditer::set_previewDelegate"); + } + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + ref.previewDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXVideoEditer::set_videoProcessDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoEditer::set_videoProcessDelegate"); + } + + // args + + + // ref + TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"]; + + ref.videoProcessDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXVideoJoiner::set_joinerDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoJoiner::set_joinerDelegate"); + } + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + ref.joinerDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXVideoJoiner::set_previewDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoJoiner::set_previewDelegate"); + } + + // args + + + // ref + TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"]; + + ref.previewDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_roomID": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::set_roomID"); + } + + // args + // jsonable arg + UInt32 roomID = [args[@"roomID"] intValue]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.roomID = roomID; + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_authBits": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::set_authBits"); + } + + // args + // enum arg + TXEAVRoomAuthBits authBits = (TXEAVRoomAuthBits) [args[@"authBits"] integerValue]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.authBits = authBits; + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_authBuffer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXCAVRoomParam::set_authBuffer"); + } + + // args + // ref arg + NSData* authBuffer = (NSData*) args[@"authBuffer"]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.authBuffer = authBuffer; + methodResult(@"success"); + }, + + @"TXBitrateItem::set_index": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::set_index"); + } + + // args + // jsonable arg + NSInteger index = [args[@"index"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.index = index; + methodResult(@"success"); + }, + + @"TXBitrateItem::set_width": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::set_width"); + } + + // args + // jsonable arg + NSInteger width = [args[@"width"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.width = width; + methodResult(@"success"); + }, + + @"TXBitrateItem::set_height": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::set_height"); + } + + // args + // jsonable arg + NSInteger height = [args[@"height"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.height = height; + methodResult(@"success"); + }, + + @"TXBitrateItem::set_bitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXBitrateItem::set_bitrate"); + } + + // args + // jsonable arg + NSInteger bitrate = [args[@"bitrate"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.bitrate = bitrate; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_appId": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_appId"); + } + + // args + // jsonable arg + int appId = [args[@"appId"] intValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.appId = appId; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_fileId": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_fileId"); + } + + // args + // jsonable arg + NSString* fileId = (NSString*) args[@"fileId"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.fileId = fileId; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_timeout": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_timeout"); + } + + // args + // jsonable arg + NSString* timeout = (NSString*) args[@"timeout"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.timeout = timeout; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_exper": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_exper"); + } + + // args + // jsonable arg + int exper = [args[@"exper"] intValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.exper = exper; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_us": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_us"); + } + + // args + // jsonable arg + NSString* us = (NSString*) args[@"us"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.us = us; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_sign": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_sign"); + } + + // args + // jsonable arg + NSString* sign = (NSString*) args[@"sign"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.sign = sign; + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_https": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPlayerAuthParams::set_https"); + } + + // args + // jsonable arg + BOOL https = [args[@"https"] boolValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.https = https; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_homeOrientation": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_homeOrientation"); + } + + // args + // jsonable arg + int homeOrientation = [args[@"homeOrientation"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.homeOrientation = homeOrientation; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_touchFocus": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_touchFocus"); + } + + // args + // jsonable arg + BOOL touchFocus = [args[@"touchFocus"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.touchFocus = touchFocus; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableZoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableZoom"); + } + + // args + // jsonable arg + BOOL enableZoom = [args[@"enableZoom"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableZoom = enableZoom; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermark": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_watermark"); + } + + // args + // ref arg + UIImage* watermark = (UIImage*) args[@"watermark"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermark = watermark; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermarkPos": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_watermarkPos"); + } + + // args + // struct arg + NSValue* watermarkPosValue = (NSValue*) args[@"watermarkPos"]; + CGPoint watermarkPos; + [watermarkPosValue getValue:&watermarkPos]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermarkPos = watermarkPos; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermarkNormalization": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_watermarkNormalization"); + } + + // args + // struct arg + NSValue* watermarkNormalizationValue = (NSValue*) args[@"watermarkNormalization"]; + CGRect watermarkNormalization; + [watermarkNormalizationValue getValue:&watermarkNormalization]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermarkNormalization = watermarkNormalization; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_localVideoMirrorType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_localVideoMirrorType"); + } + + // args + // jsonable arg + int localVideoMirrorType = [args[@"localVideoMirrorType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.localVideoMirrorType = localVideoMirrorType; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_pauseTime"); + } + + // args + // jsonable arg + int pauseTime = [args[@"pauseTime"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseTime = pauseTime; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseFps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_pauseFps"); + } + + // args + // jsonable arg + int pauseFps = [args[@"pauseFps"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseFps = pauseFps; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseImg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_pauseImg"); + } + + // args + // ref arg + UIImage* pauseImg = (UIImage*) args[@"pauseImg"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseImg = pauseImg; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoResolution": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoResolution"); + } + + // args + // jsonable arg + int videoResolution = [args[@"videoResolution"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoResolution = videoResolution; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoFPS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoFPS"); + } + + // args + // jsonable arg + int videoFPS = [args[@"videoFPS"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoFPS = videoFPS; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoEncodeGop": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoEncodeGop"); + } + + // args + // jsonable arg + int videoEncodeGop = [args[@"videoEncodeGop"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoEncodeGop = videoEncodeGop; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitratePIN": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoBitratePIN"); + } + + // args + // jsonable arg + int videoBitratePIN = [args[@"videoBitratePIN"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitratePIN = videoBitratePIN; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAutoBitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableAutoBitrate"); + } + + // args + // jsonable arg + BOOL enableAutoBitrate = [args[@"enableAutoBitrate"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAutoBitrate = enableAutoBitrate; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_autoAdjustStrategy": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_autoAdjustStrategy"); + } + + // args + // jsonable arg + int autoAdjustStrategy = [args[@"autoAdjustStrategy"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.autoAdjustStrategy = autoAdjustStrategy; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitrateMax": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoBitrateMax"); + } + + // args + // jsonable arg + int videoBitrateMax = [args[@"videoBitrateMax"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitrateMax = videoBitrateMax; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitrateMin": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_videoBitrateMin"); + } + + // args + // jsonable arg + int videoBitrateMin = [args[@"videoBitrateMin"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitrateMin = videoBitrateMin; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_audioSampleRate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_audioSampleRate"); + } + + // args + // jsonable arg + int audioSampleRate = [args[@"audioSampleRate"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.audioSampleRate = audioSampleRate; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_audioChannels": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_audioChannels"); + } + + // args + // jsonable arg + int audioChannels = [args[@"audioChannels"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.audioChannels = audioChannels; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAudioPreview": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableAudioPreview"); + } + + // args + // jsonable arg + BOOL enableAudioPreview = [args[@"enableAudioPreview"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAudioPreview = enableAudioPreview; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enablePureAudioPush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enablePureAudioPush"); + } + + // args + // jsonable arg + BOOL enablePureAudioPush = [args[@"enablePureAudioPush"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enablePureAudioPush = enablePureAudioPush; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_connectRetryCount": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_connectRetryCount"); + } + + // args + // jsonable arg + int connectRetryCount = [args[@"connectRetryCount"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.connectRetryCount = connectRetryCount; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_connectRetryInterval": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_connectRetryInterval"); + } + + // args + // jsonable arg + int connectRetryInterval = [args[@"connectRetryInterval"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.connectRetryInterval = connectRetryInterval; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_customModeType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_customModeType"); + } + + // args + // jsonable arg + int customModeType = [args[@"customModeType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.customModeType = customModeType; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_sampleBufferSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_sampleBufferSize"); + } + + // args + // struct arg + NSValue* sampleBufferSizeValue = (NSValue*) args[@"sampleBufferSize"]; + CGSize sampleBufferSize; + [sampleBufferSizeValue getValue:&sampleBufferSize]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.sampleBufferSize = sampleBufferSize; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_autoSampleBufferSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_autoSampleBufferSize"); + } + + // args + // jsonable arg + BOOL autoSampleBufferSize = [args[@"autoSampleBufferSize"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.autoSampleBufferSize = autoSampleBufferSize; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableNAS": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableNAS"); + } + + // args + // jsonable arg + BOOL enableNAS = [args[@"enableNAS"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableNAS = enableNAS; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAEC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableAEC"); + } + + // args + // jsonable arg + BOOL enableAEC = [args[@"enableAEC"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAEC = enableAEC; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableHWAcceleration"); + } + + // args + // jsonable arg + BOOL enableHWAcceleration = [args[@"enableHWAcceleration"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableHWAcceleration = enableHWAcceleration; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAudioAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableAudioAcceleration"); + } + + // args + // jsonable arg + BOOL enableAudioAcceleration = [args[@"enableAudioAcceleration"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAudioAcceleration = enableAudioAcceleration; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAGC": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableAGC"); + } + + // args + // jsonable arg + BOOL enableAGC = [args[@"enableAGC"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAGC = enableAGC; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_volumeType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_volumeType"); + } + + // args + // enum arg + TXSystemAudioVolumeType volumeType = (TXSystemAudioVolumeType) [args[@"volumeType"] integerValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.volumeType = volumeType; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_frontCamera": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_frontCamera"); + } + + // args + // jsonable arg + BOOL frontCamera = [args[@"frontCamera"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.frontCamera = frontCamera; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_beautyFilterDepth": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_beautyFilterDepth"); + } + + // args + // jsonable arg + float beautyFilterDepth = [args[@"beautyFilterDepth"] floatValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.beautyFilterDepth = beautyFilterDepth; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_whiteningFilterDepth": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_whiteningFilterDepth"); + } + + // args + // jsonable arg + float whiteningFilterDepth = [args[@"whiteningFilterDepth"] floatValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.whiteningFilterDepth = whiteningFilterDepth; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableNearestIP": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_enableNearestIP"); + } + + // args + // jsonable arg + BOOL enableNearestIP = [args[@"enableNearestIP"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableNearestIP = enableNearestIP; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_rtmpChannelType": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_rtmpChannelType"); + } + + // args + // jsonable arg + int rtmpChannelType = [args[@"rtmpChannelType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.rtmpChannelType = rtmpChannelType; + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_metaData": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePushConfig::set_metaData"); + } + + // args + // jsonable arg + NSDictionary* metaData = (NSDictionary*) args[@"metaData"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.metaData = metaData; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_delegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_delegate"); + } + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.delegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_videoProcessDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_videoProcessDelegate"); + } + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.videoProcessDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_audioRawDataDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_audioRawDataDelegate"); + } + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.audioRawDataDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_enableHWAcceleration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_enableHWAcceleration"); + } + + // args + // jsonable arg + BOOL enableHWAcceleration = [args[@"enableHWAcceleration"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.enableHWAcceleration = enableHWAcceleration; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_config": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_config"); + } + + // args + // ref arg + TXLivePlayConfig* config = (TXLivePlayConfig*) args[@"config"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.config = config; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_recordDelegate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_recordDelegate"); + } + + // args + + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.recordDelegate = weakSelf; + methodResult(@"success"); + }, + + @"TXLivePlayer::set_isAutoPlay": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXLivePlayer::set_isAutoPlay"); + } + + // args + // jsonable arg + BOOL isAutoPlay = [args[@"isAutoPlay"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.isAutoPlay = isAutoPlay; + methodResult(@"success"); + }, + + @"TXRecordResult::set_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::set_retCode"); + } + + // args + // enum arg + TXRecordResultCode retCode = (TXRecordResultCode) [args[@"retCode"] integerValue]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + }, + + @"TXRecordResult::set_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::set_descMsg"); + } + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + }, + + @"TXRecordResult::set_videoPath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::set_videoPath"); + } + + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.videoPath = videoPath; + methodResult(@"success"); + }, + + @"TXRecordResult::set_coverImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRecordResult::set_coverImage"); + } + + // args + // ref arg + UIImage* coverImage = (UIImage*) args[@"coverImage"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.coverImage = coverImage; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_coverImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_coverImage"); + } + + // args + // ref arg + UIImage* coverImage = (UIImage*) args[@"coverImage"]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.coverImage = coverImage; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_duration": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_duration"); + } + + // args + // jsonable arg + CGFloat duration = [args[@"duration"] floatValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.duration = duration; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_fileSize": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_fileSize"); + } + + // args + // jsonable arg + unsigned long long fileSize = [args[@"fileSize"] unsignedLongLongValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.fileSize = fileSize; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_fps": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_fps"); + } + + // args + // jsonable arg + float fps = [args[@"fps"] floatValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.fps = fps; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_bitrate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_bitrate"); + } + + // args + // jsonable arg + int bitrate = [args[@"bitrate"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.bitrate = bitrate; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_audioSampleRate": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_audioSampleRate"); + } + + // args + // jsonable arg + int audioSampleRate = [args[@"audioSampleRate"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.audioSampleRate = audioSampleRate; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_width": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_width"); + } + + // args + // jsonable arg + int width = [args[@"width"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.width = width; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_height": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_height"); + } + + // args + // jsonable arg + int height = [args[@"height"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.height = height; + methodResult(@"success"); + }, + + @"TXVideoInfo::set_angle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXVideoInfo::set_angle"); + } + + // args + // jsonable arg + int angle = [args[@"angle"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.angle = angle; + methodResult(@"success"); + }, + + @"TXPreviewParam::set_videoView": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPreviewParam::set_videoView"); + } + + // args + // ref arg + UIView* videoView = (UIView*) args[@"videoView"]; + + // ref + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + ref.videoView = videoView; + methodResult(@"success"); + }, + + @"TXPreviewParam::set_renderMode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPreviewParam::set_renderMode"); + } + + // args + // enum arg + TXPreviewRenderMode renderMode = (TXPreviewRenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + ref.renderMode = renderMode; + methodResult(@"success"); + }, + + @"TXSubtitle::set_titleImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::set_titleImage"); + } + + // args + // ref arg + UIImage* titleImage = (UIImage*) args[@"titleImage"]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.titleImage = titleImage; + methodResult(@"success"); + }, + + @"TXSubtitle::set_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::set_frame"); + } + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + }, + + @"TXSubtitle::set_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::set_startTime"); + } + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + }, + + @"TXSubtitle::set_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSubtitle::set_endTime"); + } + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + }, + + @"TXPaster::set_pasterImage": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::set_pasterImage"); + } + + // args + // ref arg + UIImage* pasterImage = (UIImage*) args[@"pasterImage"]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.pasterImage = pasterImage; + methodResult(@"success"); + }, + + @"TXPaster::set_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::set_frame"); + } + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + }, + + @"TXPaster::set_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::set_startTime"); + } + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + }, + + @"TXPaster::set_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXPaster::set_endTime"); + } + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_animatedPasterpath": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::set_animatedPasterpath"); + } + + // args + // jsonable arg + NSString* animatedPasterpath = (NSString*) args[@"animatedPasterpath"]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.animatedPasterpath = animatedPasterpath; + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_frame": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::set_frame"); + } + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_rotateAngle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::set_rotateAngle"); + } + + // args + // jsonable arg + CGFloat rotateAngle = [args[@"rotateAngle"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.rotateAngle = rotateAngle; + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::set_startTime"); + } + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXAnimatedPaster::set_endTime"); + } + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + }, + + @"TXRepeat::set_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::set_startTime"); + } + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + }, + + @"TXRepeat::set_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::set_endTime"); + } + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + }, + + @"TXRepeat::set_repeatTimes": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXRepeat::set_repeatTimes"); + } + + // args + // jsonable arg + int repeatTimes = [args[@"repeatTimes"] intValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.repeatTimes = repeatTimes; + methodResult(@"success"); + }, + + @"TXSpeed::set_startTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::set_startTime"); + } + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + }, + + @"TXSpeed::set_endTime": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::set_endTime"); + } + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + }, + + @"TXSpeed::set_speedLevel": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXSpeed::set_speedLevel"); + } + + // args + // enum arg + TXSpeedLevel speedLevel = (TXSpeedLevel) [args[@"speedLevel"] integerValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.speedLevel = speedLevel; + methodResult(@"success"); + }, + + @"TXGenerateResult::set_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXGenerateResult::set_retCode"); + } + + // args + // enum arg + TXGenerateResultCode retCode = (TXGenerateResultCode) [args[@"retCode"] integerValue]; + + // ref + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + }, + + @"TXGenerateResult::set_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXGenerateResult::set_descMsg"); + } + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + }, + + @"TXJoinerResult::set_retCode": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXJoinerResult::set_retCode"); + } + + // args + // enum arg + TXJoinerResultCode retCode = (TXJoinerResultCode) [args[@"retCode"] integerValue]; + + // ref + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + }, + + @"TXJoinerResult::set_descMsg": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"TXJoinerResult::set_descMsg"); + } + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + }, + + @"TXLivePush::set_config_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"]; + + // ref + TXLivePush* ref = (TXLivePush*) args[@"__this__"]; + + ref.config = config; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_cacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float cacheTime = [args[@"cacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.cacheTime = cacheTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_bAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL bAutoAdjustCacheTime = [args[@"bAutoAdjustCacheTime"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.bAutoAdjustCacheTime = bAutoAdjustCacheTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_maxAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float maxAutoAdjustCacheTime = [args[@"maxAutoAdjustCacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.maxAutoAdjustCacheTime = maxAutoAdjustCacheTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_minAutoAdjustCacheTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float minAutoAdjustCacheTime = [args[@"minAutoAdjustCacheTime"] floatValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.minAutoAdjustCacheTime = minAutoAdjustCacheTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_videoBlockThreshold_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoBlockThreshold = [args[@"videoBlockThreshold"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.videoBlockThreshold = videoBlockThreshold; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_connectRetryCount_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int connectRetryCount = [args[@"connectRetryCount"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.connectRetryCount = connectRetryCount; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_connectRetryInterval_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int connectRetryInterval = [args[@"connectRetryInterval"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.connectRetryInterval = connectRetryInterval; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableAEC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAEC = [args[@"enableAEC"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableAEC = enableAEC; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableMessage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableMessage = [args[@"enableMessage"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableMessage = enableMessage; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableMetaData_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableMetaData = [args[@"enableMetaData"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableMetaData = enableMetaData; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_flvSessionKey_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* flvSessionKey = (NSString*) args[@"flvSessionKey"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.flvSessionKey = flvSessionKey; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_enableNearestIP_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableNearestIP = [args[@"enableNearestIP"] boolValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.enableNearestIP = enableNearestIP; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_rtmpChannelType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int rtmpChannelType = [args[@"rtmpChannelType"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.rtmpChannelType = rtmpChannelType; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_cacheFolderPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* cacheFolderPath = (NSString*) args[@"cacheFolderPath"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.cacheFolderPath = cacheFolderPath; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_maxCacheItems_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int maxCacheItems = [args[@"maxCacheItems"] intValue]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.maxCacheItems = maxCacheItems; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayConfig::set_headers_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSDictionary* headers = (NSDictionary*) args[@"headers"]; + + // ref + TXLivePlayConfig* ref = (TXLivePlayConfig*) args[@"__this__"]; + + ref.headers = headers; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enableVideoHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableVideoHWAcceleration = [args[@"enableVideoHWAcceleration"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enableVideoHWAcceleration = enableVideoHWAcceleration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enableAudioHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAudioHWAcceleration = [args[@"enableAudioHWAcceleration"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enableAudioHWAcceleration = enableAudioHWAcceleration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_homeOrientation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int homeOrientation = [args[@"homeOrientation"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.homeOrientation = homeOrientation; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_renderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int renderMode = [args[@"renderMode"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.renderMode = renderMode; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoFPS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoFPS = [args[@"videoFPS"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoFPS = videoFPS; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoBitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoBitrate = [args[@"videoBitrate"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoBitrate = videoBitrate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_videoAspect_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoAspect = [args[@"videoAspect"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.videoAspect = videoAspect; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_frontCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL frontCamera = [args[@"frontCamera"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.frontCamera = frontCamera; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_pauseFps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int pauseFps = [args[@"pauseFps"] intValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.pauseFps = pauseFps; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_pauseImg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* pauseImg = (UIImage*) args[@"pauseImg"]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.pauseImg = pauseImg; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomConfig::set_enablePureAudioPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enablePureAudioPush = [args[@"enablePureAudioPush"] boolValue]; + + // ref + TXCAVRoomConfig* ref = (TXCAVRoomConfig*) args[@"__this__"]; + + ref.enablePureAudioPush = enablePureAudioPush; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_roomID_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + UInt32 roomID = [args[@"roomID"] intValue]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.roomID = roomID; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_authBits_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXEAVRoomAuthBits authBits = (TXEAVRoomAuthBits) [args[@"authBits"] integerValue]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.authBits = authBits; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXCAVRoomParam::set_authBuffer_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + NSData* authBuffer = (NSData*) args[@"authBuffer"]; + + // ref + TXCAVRoomParam* ref = (TXCAVRoomParam*) args[@"__this__"]; + + ref.authBuffer = authBuffer; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXBitrateItem::set_index_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger index = [args[@"index"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.index = index; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + }; +} + +@end diff --git a/ios/Classes/SubHandler/SubHandler4.h b/ios/Classes/SubHandler/SubHandler4.h new file mode 100644 index 0000000..d4be086 --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler4.h @@ -0,0 +1,13 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TencentLiveFluttifyPlugin (SubHandler4) +- (NSDictionary*) getSubHandler4; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/SubHandler/SubHandler4.m b/ios/Classes/SubHandler/SubHandler4.m new file mode 100644 index 0000000..2c51a07 --- /dev/null +++ b/ios/Classes/SubHandler/SubHandler4.m @@ -0,0 +1,2766 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "SubHandler4.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin (SubHandler4) +- (NSDictionary*) getSubHandler4 { + __weak __typeof(self)weakSelf = self; + return @{ + @"TXBitrateItem::set_width_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger width = [args[@"width"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.width = width; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXBitrateItem::set_height_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger height = [args[@"height"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.height = height; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXBitrateItem::set_bitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSInteger bitrate = [args[@"bitrate"] longValue]; + + // ref + TXBitrateItem* ref = (TXBitrateItem*) args[@"__this__"]; + + ref.bitrate = bitrate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_appId_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int appId = [args[@"appId"] intValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.appId = appId; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_fileId_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* fileId = (NSString*) args[@"fileId"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.fileId = fileId; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_timeout_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* timeout = (NSString*) args[@"timeout"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.timeout = timeout; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_exper_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int exper = [args[@"exper"] intValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.exper = exper; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_us_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* us = (NSString*) args[@"us"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.us = us; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_sign_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* sign = (NSString*) args[@"sign"]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.sign = sign; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPlayerAuthParams::set_https_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL https = [args[@"https"] boolValue]; + + // ref + TXPlayerAuthParams* ref = (TXPlayerAuthParams*) args[@"__this__"]; + + ref.https = https; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_homeOrientation_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int homeOrientation = [args[@"homeOrientation"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.homeOrientation = homeOrientation; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_touchFocus_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL touchFocus = [args[@"touchFocus"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.touchFocus = touchFocus; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableZoom_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableZoom = [args[@"enableZoom"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableZoom = enableZoom; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermark_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* watermark = (UIImage*) args[@"watermark"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermark = watermark; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermarkPos_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* watermarkPosValue = (NSValue*) args[@"watermarkPos"]; + CGPoint watermarkPos; + [watermarkPosValue getValue:&watermarkPos]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermarkPos = watermarkPos; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_watermarkNormalization_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* watermarkNormalizationValue = (NSValue*) args[@"watermarkNormalization"]; + CGRect watermarkNormalization; + [watermarkNormalizationValue getValue:&watermarkNormalization]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.watermarkNormalization = watermarkNormalization; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_localVideoMirrorType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int localVideoMirrorType = [args[@"localVideoMirrorType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.localVideoMirrorType = localVideoMirrorType; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int pauseTime = [args[@"pauseTime"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseTime = pauseTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseFps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int pauseFps = [args[@"pauseFps"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseFps = pauseFps; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_pauseImg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* pauseImg = (UIImage*) args[@"pauseImg"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.pauseImg = pauseImg; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoResolution_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoResolution = [args[@"videoResolution"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoResolution = videoResolution; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoFPS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoFPS = [args[@"videoFPS"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoFPS = videoFPS; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoEncodeGop_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoEncodeGop = [args[@"videoEncodeGop"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoEncodeGop = videoEncodeGop; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitratePIN_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoBitratePIN = [args[@"videoBitratePIN"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitratePIN = videoBitratePIN; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAutoBitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAutoBitrate = [args[@"enableAutoBitrate"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAutoBitrate = enableAutoBitrate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_autoAdjustStrategy_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int autoAdjustStrategy = [args[@"autoAdjustStrategy"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.autoAdjustStrategy = autoAdjustStrategy; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitrateMax_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoBitrateMax = [args[@"videoBitrateMax"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitrateMax = videoBitrateMax; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_videoBitrateMin_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int videoBitrateMin = [args[@"videoBitrateMin"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.videoBitrateMin = videoBitrateMin; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_audioSampleRate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int audioSampleRate = [args[@"audioSampleRate"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.audioSampleRate = audioSampleRate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_audioChannels_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int audioChannels = [args[@"audioChannels"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.audioChannels = audioChannels; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAudioPreview_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAudioPreview = [args[@"enableAudioPreview"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAudioPreview = enableAudioPreview; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enablePureAudioPush_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enablePureAudioPush = [args[@"enablePureAudioPush"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enablePureAudioPush = enablePureAudioPush; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_connectRetryCount_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int connectRetryCount = [args[@"connectRetryCount"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.connectRetryCount = connectRetryCount; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_connectRetryInterval_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int connectRetryInterval = [args[@"connectRetryInterval"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.connectRetryInterval = connectRetryInterval; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_customModeType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int customModeType = [args[@"customModeType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.customModeType = customModeType; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_sampleBufferSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* sampleBufferSizeValue = (NSValue*) args[@"sampleBufferSize"]; + CGSize sampleBufferSize; + [sampleBufferSizeValue getValue:&sampleBufferSize]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.sampleBufferSize = sampleBufferSize; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_autoSampleBufferSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL autoSampleBufferSize = [args[@"autoSampleBufferSize"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.autoSampleBufferSize = autoSampleBufferSize; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableNAS_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableNAS = [args[@"enableNAS"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableNAS = enableNAS; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAEC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAEC = [args[@"enableAEC"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAEC = enableAEC; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableHWAcceleration = [args[@"enableHWAcceleration"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableHWAcceleration = enableHWAcceleration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAudioAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAudioAcceleration = [args[@"enableAudioAcceleration"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAudioAcceleration = enableAudioAcceleration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableAGC_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableAGC = [args[@"enableAGC"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableAGC = enableAGC; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_volumeType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXSystemAudioVolumeType volumeType = (TXSystemAudioVolumeType) [args[@"volumeType"] integerValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.volumeType = volumeType; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_frontCamera_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL frontCamera = [args[@"frontCamera"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.frontCamera = frontCamera; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_beautyFilterDepth_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float beautyFilterDepth = [args[@"beautyFilterDepth"] floatValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.beautyFilterDepth = beautyFilterDepth; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_whiteningFilterDepth_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float whiteningFilterDepth = [args[@"whiteningFilterDepth"] floatValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.whiteningFilterDepth = whiteningFilterDepth; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_enableNearestIP_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableNearestIP = [args[@"enableNearestIP"] boolValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.enableNearestIP = enableNearestIP; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_rtmpChannelType_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int rtmpChannelType = [args[@"rtmpChannelType"] intValue]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.rtmpChannelType = rtmpChannelType; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePushConfig::set_metaData_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSDictionary* metaData = (NSDictionary*) args[@"metaData"]; + + // ref + TXLivePushConfig* ref = (TXLivePushConfig*) args[@"__this__"]; + + ref.metaData = metaData; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayer::set_enableHWAcceleration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL enableHWAcceleration = [args[@"enableHWAcceleration"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.enableHWAcceleration = enableHWAcceleration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayer::set_config_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + TXLivePlayConfig* config = (TXLivePlayConfig*) args[@"config"]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.config = config; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXLivePlayer::set_isAutoPlay_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + BOOL isAutoPlay = [args[@"isAutoPlay"] boolValue]; + + // ref + TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"]; + + ref.isAutoPlay = isAutoPlay; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRecordResult::set_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXRecordResultCode retCode = (TXRecordResultCode) [args[@"retCode"] integerValue]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRecordResult::set_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRecordResult::set_videoPath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* videoPath = (NSString*) args[@"videoPath"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.videoPath = videoPath; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRecordResult::set_coverImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* coverImage = (UIImage*) args[@"coverImage"]; + + // ref + TXRecordResult* ref = (TXRecordResult*) args[@"__this__"]; + + ref.coverImage = coverImage; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_coverImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* coverImage = (UIImage*) args[@"coverImage"]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.coverImage = coverImage; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_duration_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat duration = [args[@"duration"] floatValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.duration = duration; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_fileSize_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + unsigned long long fileSize = [args[@"fileSize"] unsignedLongLongValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.fileSize = fileSize; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_fps_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + float fps = [args[@"fps"] floatValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.fps = fps; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_bitrate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int bitrate = [args[@"bitrate"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.bitrate = bitrate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_audioSampleRate_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int audioSampleRate = [args[@"audioSampleRate"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.audioSampleRate = audioSampleRate; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_width_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int width = [args[@"width"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.width = width; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_height_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int height = [args[@"height"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.height = height; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXVideoInfo::set_angle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int angle = [args[@"angle"] intValue]; + + // ref + TXVideoInfo* ref = (TXVideoInfo*) args[@"__this__"]; + + ref.angle = angle; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPreviewParam::set_videoView_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIView* videoView = (UIView*) args[@"videoView"]; + + // ref + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + ref.videoView = videoView; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPreviewParam::set_renderMode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXPreviewRenderMode renderMode = (TXPreviewRenderMode) [args[@"renderMode"] integerValue]; + + // ref + TXPreviewParam* ref = (TXPreviewParam*) args[@"__this__"]; + + ref.renderMode = renderMode; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSubtitle::set_titleImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* titleImage = (UIImage*) args[@"titleImage"]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.titleImage = titleImage; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSubtitle::set_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSubtitle::set_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSubtitle::set_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXSubtitle* ref = (TXSubtitle*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPaster::set_pasterImage_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // ref arg + UIImage* pasterImage = (UIImage*) args[@"pasterImage"]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.pasterImage = pasterImage; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPaster::set_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPaster::set_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXPaster::set_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXPaster* ref = (TXPaster*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_animatedPasterpath_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* animatedPasterpath = (NSString*) args[@"animatedPasterpath"]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.animatedPasterpath = animatedPasterpath; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_frame_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // struct arg + NSValue* frameValue = (NSValue*) args[@"frame"]; + CGRect frame; + [frameValue getValue:&frame]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.frame = frame; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_rotateAngle_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat rotateAngle = [args[@"rotateAngle"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.rotateAngle = rotateAngle; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXAnimatedPaster::set_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXAnimatedPaster* ref = (TXAnimatedPaster*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRepeat::set_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRepeat::set_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXRepeat::set_repeatTimes_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + int repeatTimes = [args[@"repeatTimes"] intValue]; + + // ref + TXRepeat* ref = (TXRepeat*) args[@"__this__"]; + + ref.repeatTimes = repeatTimes; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSpeed::set_startTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat startTime = [args[@"startTime"] floatValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.startTime = startTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSpeed::set_endTime_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + CGFloat endTime = [args[@"endTime"] floatValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.endTime = endTime; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXSpeed::set_speedLevel_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXSpeedLevel speedLevel = (TXSpeedLevel) [args[@"speedLevel"] integerValue]; + + // ref + TXSpeed* ref = (TXSpeed*) args[@"__this__"]; + + ref.speedLevel = speedLevel; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXGenerateResult::set_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXGenerateResultCode retCode = (TXGenerateResultCode) [args[@"retCode"] integerValue]; + + // ref + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXGenerateResult::set_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXGenerateResult* ref = (TXGenerateResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXJoinerResult::set_retCode_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // enum arg + TXJoinerResultCode retCode = (TXJoinerResultCode) [args[@"retCode"] integerValue]; + + // ref + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + ref.retCode = retCode; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"TXJoinerResult::set_descMsg_batch": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + for (int __i__ = 0; __i__ < ((NSArray*>*) argsBatch).count; __i__++) { + NSDictionary* args = [((NSArray*>*) argsBatch) objectAtIndex:__i__]; + + // args + // jsonable arg + NSString* descMsg = (NSString*) args[@"descMsg"]; + + // ref + TXJoinerResult* ref = (TXJoinerResult*) args[@"__this__"]; + + ref.descMsg = descMsg; + methodResult(@"success"); + } + + methodResult(@"success"); + }, + + @"RefClass::isKindOfTXLivePush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXLivePush class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXCAVRoom": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXCAVRoom class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXImageSprite": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXImageSprite class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXLiveBase": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXLiveBase class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXLivePlayConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXLivePlayConfig class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXCAVRoomConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXCAVRoomConfig class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXVideoInfoReader": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXVideoInfoReader class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXVideoEditer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXVideoEditer class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXVideoJoiner": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXVideoJoiner class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXCAVRoomParam": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXCAVRoomParam class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXBitrateItem": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXBitrateItem class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXPlayerAuthParams": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXPlayerAuthParams class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXLivePushConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXLivePushConfig class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXBeautyManager": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXBeautyManager class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXLivePlayer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXLivePlayer class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXRecordResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXRecordResult class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXVideoInfo": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXVideoInfo class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXPreviewParam": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXPreviewParam class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXSubtitle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXSubtitle class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXPaster": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXPaster class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXAnimatedPaster": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXAnimatedPaster class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXRepeat": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXRepeat class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXSpeed": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXSpeed class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXGenerateResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXGenerateResult class]]; + methodResult(@(isTargetType)); + }, + + @"RefClass::isKindOfTXJoinerResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // 引用对象 + NSObject* __this__ = ((NSDictionary*) args)[@"__this__"]; + + BOOL isTargetType = [__this__ isKindOfClass:[TXJoinerResult class]]; + methodResult(@(isTargetType)); + }, + + @"ObjectFactory::createTXLivePush": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXLivePush"); + } + + TXLivePush* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXLivePush alloc] init]; + } else { + __this__ = [TXLivePush alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXImageSprite": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXImageSprite"); + } + + TXImageSprite* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXImageSprite alloc] init]; + } else { + __this__ = [TXImageSprite alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXLiveBase": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXLiveBase"); + } + + TXLiveBase* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXLiveBase alloc] init]; + } else { + __this__ = [TXLiveBase alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXLivePlayConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXLivePlayConfig"); + } + + TXLivePlayConfig* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXLivePlayConfig alloc] init]; + } else { + __this__ = [TXLivePlayConfig alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXCAVRoomConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXCAVRoomConfig"); + } + + TXCAVRoomConfig* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXCAVRoomConfig alloc] init]; + } else { + __this__ = [TXCAVRoomConfig alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXVideoInfoReader": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXVideoInfoReader"); + } + + TXVideoInfoReader* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXVideoInfoReader alloc] init]; + } else { + __this__ = [TXVideoInfoReader alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXVideoEditer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXVideoEditer"); + } + + TXVideoEditer* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXVideoEditer alloc] init]; + } else { + __this__ = [TXVideoEditer alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXVideoJoiner": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXVideoJoiner"); + } + + TXVideoJoiner* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXVideoJoiner alloc] init]; + } else { + __this__ = [TXVideoJoiner alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXCAVRoomParam": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXCAVRoomParam"); + } + + TXCAVRoomParam* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXCAVRoomParam alloc] init]; + } else { + __this__ = [TXCAVRoomParam alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXBitrateItem": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXBitrateItem"); + } + + TXBitrateItem* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXBitrateItem alloc] init]; + } else { + __this__ = [TXBitrateItem alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXPlayerAuthParams": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXPlayerAuthParams"); + } + + TXPlayerAuthParams* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXPlayerAuthParams alloc] init]; + } else { + __this__ = [TXPlayerAuthParams alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXLivePushConfig": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXLivePushConfig"); + } + + TXLivePushConfig* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXLivePushConfig alloc] init]; + } else { + __this__ = [TXLivePushConfig alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXBeautyManager": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXBeautyManager"); + } + + TXBeautyManager* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXBeautyManager alloc] init]; + } else { + __this__ = [TXBeautyManager alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXLivePlayer": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXLivePlayer"); + } + + TXLivePlayer* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXLivePlayer alloc] init]; + } else { + __this__ = [TXLivePlayer alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXRecordResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXRecordResult"); + } + + TXRecordResult* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXRecordResult alloc] init]; + } else { + __this__ = [TXRecordResult alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXVideoInfo": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXVideoInfo"); + } + + TXVideoInfo* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXVideoInfo alloc] init]; + } else { + __this__ = [TXVideoInfo alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXPreviewParam": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXPreviewParam"); + } + + TXPreviewParam* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXPreviewParam alloc] init]; + } else { + __this__ = [TXPreviewParam alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXSubtitle": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXSubtitle"); + } + + TXSubtitle* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXSubtitle alloc] init]; + } else { + __this__ = [TXSubtitle alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXPaster": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXPaster"); + } + + TXPaster* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXPaster alloc] init]; + } else { + __this__ = [TXPaster alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXAnimatedPaster": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXAnimatedPaster"); + } + + TXAnimatedPaster* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXAnimatedPaster alloc] init]; + } else { + __this__ = [TXAnimatedPaster alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXRepeat": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXRepeat"); + } + + TXRepeat* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXRepeat alloc] init]; + } else { + __this__ = [TXRepeat alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXSpeed": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXSpeed"); + } + + TXSpeed* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXSpeed alloc] init]; + } else { + __this__ = [TXSpeed alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXGenerateResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXGenerateResult"); + } + + TXGenerateResult* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXGenerateResult alloc] init]; + } else { + __this__ = [TXGenerateResult alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::createTXJoinerResult": ^(NSObject * registrar, id args, FlutterResult methodResult) { + // print log + if (enableLog) { + NSLog(@"ObjectFactory::createTXJoinerResult"); + } + + TXJoinerResult* __this__; + if ([((NSDictionary*) args)[@"init"] boolValue]) { + __this__ = [[TXJoinerResult alloc] init]; + } else { + __this__ = [TXJoinerResult alloc]; + } + + methodResult(__this__); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXLivePush": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXLivePush* __this__; + if ([init boolValue]) { + __this__ = [[TXLivePush alloc] init]; + } else { + __this__ = [TXLivePush alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXImageSprite": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXImageSprite* __this__; + if ([init boolValue]) { + __this__ = [[TXImageSprite alloc] init]; + } else { + __this__ = [TXImageSprite alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXLiveBase": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXLiveBase* __this__; + if ([init boolValue]) { + __this__ = [[TXLiveBase alloc] init]; + } else { + __this__ = [TXLiveBase alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXLivePlayConfig": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXLivePlayConfig* __this__; + if ([init boolValue]) { + __this__ = [[TXLivePlayConfig alloc] init]; + } else { + __this__ = [TXLivePlayConfig alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXCAVRoomConfig": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXCAVRoomConfig* __this__; + if ([init boolValue]) { + __this__ = [[TXCAVRoomConfig alloc] init]; + } else { + __this__ = [TXCAVRoomConfig alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXVideoInfoReader": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXVideoInfoReader* __this__; + if ([init boolValue]) { + __this__ = [[TXVideoInfoReader alloc] init]; + } else { + __this__ = [TXVideoInfoReader alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXVideoEditer": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXVideoEditer* __this__; + if ([init boolValue]) { + __this__ = [[TXVideoEditer alloc] init]; + } else { + __this__ = [TXVideoEditer alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXVideoJoiner": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXVideoJoiner* __this__; + if ([init boolValue]) { + __this__ = [[TXVideoJoiner alloc] init]; + } else { + __this__ = [TXVideoJoiner alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXCAVRoomParam": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXCAVRoomParam* __this__; + if ([init boolValue]) { + __this__ = [[TXCAVRoomParam alloc] init]; + } else { + __this__ = [TXCAVRoomParam alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXBitrateItem": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXBitrateItem* __this__; + if ([init boolValue]) { + __this__ = [[TXBitrateItem alloc] init]; + } else { + __this__ = [TXBitrateItem alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXPlayerAuthParams": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXPlayerAuthParams* __this__; + if ([init boolValue]) { + __this__ = [[TXPlayerAuthParams alloc] init]; + } else { + __this__ = [TXPlayerAuthParams alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXLivePushConfig": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXLivePushConfig* __this__; + if ([init boolValue]) { + __this__ = [[TXLivePushConfig alloc] init]; + } else { + __this__ = [TXLivePushConfig alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXBeautyManager": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXBeautyManager* __this__; + if ([init boolValue]) { + __this__ = [[TXBeautyManager alloc] init]; + } else { + __this__ = [TXBeautyManager alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXLivePlayer": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXLivePlayer* __this__; + if ([init boolValue]) { + __this__ = [[TXLivePlayer alloc] init]; + } else { + __this__ = [TXLivePlayer alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXRecordResult": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXRecordResult* __this__; + if ([init boolValue]) { + __this__ = [[TXRecordResult alloc] init]; + } else { + __this__ = [TXRecordResult alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXVideoInfo": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXVideoInfo* __this__; + if ([init boolValue]) { + __this__ = [[TXVideoInfo alloc] init]; + } else { + __this__ = [TXVideoInfo alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXPreviewParam": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXPreviewParam* __this__; + if ([init boolValue]) { + __this__ = [[TXPreviewParam alloc] init]; + } else { + __this__ = [TXPreviewParam alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXSubtitle": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXSubtitle* __this__; + if ([init boolValue]) { + __this__ = [[TXSubtitle alloc] init]; + } else { + __this__ = [TXSubtitle alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXPaster": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXPaster* __this__; + if ([init boolValue]) { + __this__ = [[TXPaster alloc] init]; + } else { + __this__ = [TXPaster alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXAnimatedPaster": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXAnimatedPaster* __this__; + if ([init boolValue]) { + __this__ = [[TXAnimatedPaster alloc] init]; + } else { + __this__ = [TXAnimatedPaster alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXRepeat": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXRepeat* __this__; + if ([init boolValue]) { + __this__ = [[TXRepeat alloc] init]; + } else { + __this__ = [TXRepeat alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXSpeed": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXSpeed* __this__; + if ([init boolValue]) { + __this__ = [[TXSpeed alloc] init]; + } else { + __this__ = [TXSpeed alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXGenerateResult": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXGenerateResult* __this__; + if ([init boolValue]) { + __this__ = [[TXGenerateResult alloc] init]; + } else { + __this__ = [TXGenerateResult alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + @"ObjectFactory::create_batchTXJoinerResult": ^(NSObject * registrar, id argsBatch, FlutterResult methodResult) { + NSMutableArray* resultList = [NSMutableArray array]; + + NSNumber* length = (NSNumber*) ((NSDictionary*) argsBatch)[@"length"]; + NSNumber* init = (NSNumber*) ((NSDictionary*) argsBatch)[@"init"]; + for (int __i__ = 0; __i__ < [length integerValue]; __i__++) { + TXJoinerResult* __this__; + if ([init boolValue]) { + __this__ = [[TXJoinerResult alloc] init]; + } else { + __this__ = [TXJoinerResult alloc]; + } + [resultList addObject:__this__]; + } + + methodResult(resultList); + + if (enableLog) NSLog(@"HEAP: %@", HEAP); + }, + + }; +} + +@end diff --git a/ios/Classes/TencentLiveFluttifyPlugin.h b/ios/Classes/TencentLiveFluttifyPlugin.h new file mode 100644 index 0000000..6b0d859 --- /dev/null +++ b/ios/Classes/TencentLiveFluttifyPlugin.h @@ -0,0 +1,16 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import +#import + +typedef void (^Handler)(NSObject *, id, FlutterResult); + +@interface TencentLiveFluttifyPlugin : NSObject + +- (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar; + +@property(nonatomic) NSObject* registrar; + +@end diff --git a/ios/Classes/TencentLiveFluttifyPlugin.m b/ios/Classes/TencentLiveFluttifyPlugin.m new file mode 100644 index 0000000..506c835 --- /dev/null +++ b/ios/Classes/TencentLiveFluttifyPlugin.m @@ -0,0 +1,581 @@ +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +#import "TencentLiveFluttifyPlugin.h" +#import +#import "SubHandler/SubHandler0.h" +#import "SubHandler/SubHandler1.h" +#import "SubHandler/SubHandler2.h" +#import "SubHandler/SubHandler3.h" +#import "SubHandler/SubHandler4.h" +#import "SubHandler/Custom/SubHandlerCustom.h" +#import "FluttifyMessageCodec.h" + +// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 +extern NSMutableDictionary* STACK; +// Dart端随机存取对象的容器 +extern NSMutableDictionary* HEAP; +// 日志打印开关 +extern BOOL enableLog; + +@implementation TencentLiveFluttifyPlugin { + NSMutableDictionary* _handlerMap; +} + +- (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar { + self = [super init]; + if (self) { + _registrar = registrar; + // 处理方法们 + _handlerMap = @{}.mutableCopy; + + [_handlerMap addEntriesFromDictionary: [self getSubHandler0]]; + [_handlerMap addEntriesFromDictionary: [self getSubHandler1]]; + [_handlerMap addEntriesFromDictionary: [self getSubHandler2]]; + [_handlerMap addEntriesFromDictionary: [self getSubHandler3]]; + [_handlerMap addEntriesFromDictionary: [self getSubHandler4]]; + [_handlerMap addEntriesFromDictionary: [self getSubHandlerCustom]]; + } + + return self; +} + ++ (void)registerWithRegistrar:(NSObject *)registrar { + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"com.fluttify/tencent_live_fluttify" + binaryMessenger:[registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + + [registrar addMethodCallDelegate:[[TencentLiveFluttifyPlugin alloc] initWithFlutterPluginRegistrar:registrar] + channel:channel]; + + // 注册View + +} + +// Method Handlers +- (void)handleMethodCall:(FlutterMethodCall *)methodCall result:(FlutterResult)methodResult { + if (_handlerMap[methodCall.method] != nil) { + _handlerMap[methodCall.method](_registrar, [methodCall arguments], methodResult); + } else { + methodResult(FlutterMethodNotImplemented); + } +} + +// 委托方法们 +- (void)onLog : (NSString*)log LogLevel: (int)level WhichModule: (NSString*)module +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLiveBaseDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLiveBaseDelegate::onLog_LogLevel_WhichModule"); + } + + // convert to jsonable arg + // ref callback arg + NSString* arglog = log; + // primitive callback arg + NSNumber* arglevel = @(level); + // ref callback arg + NSString* argmodule = module; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLiveBaseDelegate::onLog_LogLevel_WhichModule" arguments:@{@"log": arglog == nil ? [NSNull null] : arglog, @"level": arglevel == nil ? [NSNull null] : arglevel, @"module": argmodule == nil ? [NSNull null] : argmodule}]; + }); + +} + +- (void)onPreviewProgress : (CGFloat)time +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoPreviewListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoPreviewListener::onPreviewProgress"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argtime = @(time); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoPreviewListener::onPreviewProgress" arguments:@{@"time": argtime == nil ? [NSNull null] : argtime}]; + }); + +} + +- (void)onPreviewFinished +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoPreviewListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoPreviewListener::onPreviewFinished"); + } + + // convert to jsonable arg + + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoPreviewListener::onPreviewFinished" arguments:@{}]; + }); + +} + +- (void)onTextureDestoryed +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoCustomProcessListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoCustomProcessListener::onTextureDestoryed"); + } + + // convert to jsonable arg + + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoCustomProcessListener::onTextureDestoryed" arguments:@{}]; + }); + +} + +- (void)onGenerateProgress : (float)progress +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoGenerateListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoGenerateListener::onGenerateProgress"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argprogress = @(progress); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoGenerateListener::onGenerateProgress" arguments:@{@"progress": argprogress == nil ? [NSNull null] : argprogress}]; + }); + +} + +- (void)onGenerateComplete : (TXGenerateResult*)result +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoGenerateListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoGenerateListener::onGenerateComplete"); + } + + // convert to jsonable arg + // ref callback arg + TXGenerateResult* argresult = result; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoGenerateListener::onGenerateComplete" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}]; + }); + +} + +- (void)onJoinProgress : (float)progress +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoJoinerListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoJoinerListener::onJoinProgress"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argprogress = @(progress); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoJoinerListener::onJoinProgress" arguments:@{@"progress": argprogress == nil ? [NSNull null] : argprogress}]; + }); + +} + +- (void)onJoinComplete : (TXJoinerResult*)result +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoJoinerListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoJoinerListener::onJoinComplete"); + } + + // convert to jsonable arg + // ref callback arg + TXJoinerResult* argresult = result; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoJoinerListener::onJoinComplete" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}]; + }); + +} + +- (void)onRecordProgress : (NSInteger)milliSecond +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLiveRecordListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLiveRecordListener::onRecordProgress"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argmilliSecond = @(milliSecond); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLiveRecordListener::onRecordProgress" arguments:@{@"milliSecond": argmilliSecond == nil ? [NSNull null] : argmilliSecond}]; + }); + +} + +- (void)onRecordComplete : (TXRecordResult*)result +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLiveRecordListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLiveRecordListener::onRecordComplete"); + } + + // convert to jsonable arg + // ref callback arg + TXRecordResult* argresult = result; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLiveRecordListener::onRecordComplete" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}]; + }); + +} + +- (void)onRecordEvent : (NSDictionary*)evt +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLiveRecordListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLiveRecordListener::onRecordEvent"); + } + + // convert to jsonable arg + // ref callback arg + NSDictionary* argevt = evt; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLiveRecordListener::onRecordEvent" arguments:@{@"evt": argevt == nil ? [NSNull null] : argevt}]; + }); + +} + +- (void)onAVRoomStatus : (NSArray*)array +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXCAVRoomListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXCAVRoomListener::onAVRoomStatus"); + } + + // convert to jsonable arg + // ref callback arg + NSArray* argarray = array; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXCAVRoomListener::onAVRoomStatus" arguments:@{@"array": argarray == nil ? [NSNull null] : argarray}]; + }); + +} + +- (void)onRecordRawPcmData : (NSData*)data timeStamp: (unsigned long long)timeStamp sampleRate: (int)sampleRate channels: (int)channels withBgm: (BOOL)withBgm +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXAudioCustomProcessDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXAudioCustomProcessDelegate::onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm"); + } + + // convert to jsonable arg + // ref callback arg + NSData* argdata = data; + // primitive callback arg + NSNumber* argtimeStamp = @(timeStamp); + // primitive callback arg + NSNumber* argsampleRate = @(sampleRate); + // primitive callback arg + NSNumber* argchannels = @(channels); + // primitive callback arg + NSNumber* argwithBgm = @(withBgm); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXAudioCustomProcessDelegate::onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm" arguments:@{@"data": argdata == nil ? [NSNull null] : argdata, @"timeStamp": argtimeStamp == nil ? [NSNull null] : argtimeStamp, @"sampleRate": argsampleRate == nil ? [NSNull null] : argsampleRate, @"channels": argchannels == nil ? [NSNull null] : argchannels, @"withBgm": argwithBgm == nil ? [NSNull null] : argwithBgm}]; + }); + +} + +- (void)onRecordPcmData : (NSData*)data timeStamp: (unsigned long long)timeStamp sampleRate: (int)sampleRate channels: (int)channels +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXAudioCustomProcessDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXAudioCustomProcessDelegate::onRecordPcmData_timeStamp_sampleRate_channels"); + } + + // convert to jsonable arg + // ref callback arg + NSData* argdata = data; + // primitive callback arg + NSNumber* argtimeStamp = @(timeStamp); + // primitive callback arg + NSNumber* argsampleRate = @(sampleRate); + // primitive callback arg + NSNumber* argchannels = @(channels); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXAudioCustomProcessDelegate::onRecordPcmData_timeStamp_sampleRate_channels" arguments:@{@"data": argdata == nil ? [NSNull null] : argdata, @"timeStamp": argtimeStamp == nil ? [NSNull null] : argtimeStamp, @"sampleRate": argsampleRate == nil ? [NSNull null] : argsampleRate, @"channels": argchannels == nil ? [NSNull null] : argchannels}]; + }); + +} + +- (void)onPlayEvent : (int)EvtID withParam: (NSDictionary*)param +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLivePlayListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLivePlayListener::onPlayEvent_withParam"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argEvtID = @(EvtID); + // ref callback arg + NSDictionary* argparam = param; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLivePlayListener::onPlayEvent_withParam" arguments:@{@"EvtID": argEvtID == nil ? [NSNull null] : argEvtID, @"param": argparam == nil ? [NSNull null] : argparam}]; + }); + +} + +- (void)onNetStatus : (NSDictionary*)param +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLivePlayListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLivePlayListener::onNetStatus"); + } + + // convert to jsonable arg + // ref callback arg + NSDictionary* argparam = param; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLivePlayListener::onNetStatus" arguments:@{@"param": argparam == nil ? [NSNull null] : argparam}]; + }); + +} + +- (void)onAudioInfoChanged : (int)sampleRate channels: (int)channels +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXAudioRawDataDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXAudioRawDataDelegate::onAudioInfoChanged_channels"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argsampleRate = @(sampleRate); + // primitive callback arg + NSNumber* argchannels = @(channels); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXAudioRawDataDelegate::onAudioInfoChanged_channels" arguments:@{@"sampleRate": argsampleRate == nil ? [NSNull null] : argsampleRate, @"channels": argchannels == nil ? [NSNull null] : argchannels}]; + }); + +} + +- (void)onPcmDataAvailable : (NSData*)data pts: (unsigned long long)timestamp +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXAudioRawDataDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXAudioRawDataDelegate::onPcmDataAvailable_pts"); + } + + // convert to jsonable arg + // ref callback arg + NSData* argdata = data; + // primitive callback arg + NSNumber* argtimestamp = @(timestamp); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXAudioRawDataDelegate::onPcmDataAvailable_pts" arguments:@{@"data": argdata == nil ? [NSNull null] : argdata, @"timestamp": argtimestamp == nil ? [NSNull null] : argtimestamp}]; + }); + +} + +- (GLuint)onPreProcessTexture : (GLuint)texture width: (CGFloat)width height: (CGFloat)height +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoCustomProcessDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoCustomProcessDelegate::onPreProcessTexture_width_height"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argtexture = @(texture); + // primitive callback arg + NSNumber* argwidth = @(width); + // primitive callback arg + NSNumber* argheight = @(height); + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoCustomProcessDelegate::onPreProcessTexture_width_height" + arguments:@{@"texture": argtexture == nil ? [NSNull null] : argtexture, @"width": argwidth == nil ? [NSNull null] : argwidth, @"height": argheight == nil ? [NSNull null] : argheight} + result:^(id result) {}]; // 由于结果是异步返回, 这里用不上, 所以就不生成代码了 + }); + + // 由于flutter无法同步调用method channel, 所以暂不支持有返回值的回调方法 + // 相关issue https://github.com/flutter/flutter/issues/28310 + NSLog(@"暂不支持有返回值的回调方法"); + + ////////////////////////////如果需要手写代码, 请写在这里///////////////////////////// + + //////////////////////////////////////////////////////////////////////////////// + + GLuint result = 0; return result; +} + +- (void)onDetectFacePoints : (NSArray*)points +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoCustomProcessDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoCustomProcessDelegate::onDetectFacePoints"); + } + + // convert to jsonable arg + // ref callback arg + NSArray* argpoints = points; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoCustomProcessDelegate::onDetectFacePoints" arguments:@{@"points": argpoints == nil ? [NSNull null] : argpoints}]; + }); + +} + +- (BOOL)onPlayerPixelBuffer : (CVPixelBufferRef)pixelBuffer +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXVideoCustomProcessDelegate::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXVideoCustomProcessDelegate::onPlayerPixelBuffer"); + } + + // convert to jsonable arg + // value pointer callback arg + NSValue* argpixelBuffer = [NSValue valueWithPointer:pixelBuffer]; + + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXVideoCustomProcessDelegate::onPlayerPixelBuffer" + arguments:@{@"pixelBuffer": argpixelBuffer == nil ? [NSNull null] : argpixelBuffer} + result:^(id result) {}]; // 由于结果是异步返回, 这里用不上, 所以就不生成代码了 + }); + + // 由于flutter无法同步调用method channel, 所以暂不支持有返回值的回调方法 + // 相关issue https://github.com/flutter/flutter/issues/28310 + NSLog(@"暂不支持有返回值的回调方法"); + + ////////////////////////////如果需要手写代码, 请写在这里///////////////////////////// + + //////////////////////////////////////////////////////////////////////////////// + + return NO; +} + +- (void)onPushEvent : (int)EvtID withParam: (NSDictionary*)param +{ + FlutterMethodChannel *channel = [FlutterMethodChannel + methodChannelWithName:@"TXLivePushListener::Callback" + binaryMessenger:[_registrar messenger] + codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; + // print log + if (enableLog) { + NSLog(@"TXLivePushListener::onPushEvent_withParam"); + } + + // convert to jsonable arg + // primitive callback arg + NSNumber* argEvtID = @(EvtID); + // ref callback arg + NSDictionary* argparam = param; + + dispatch_async(dispatch_get_main_queue(), ^{ + [channel invokeMethod:@"Callback::TXLivePushListener::onPushEvent_withParam" arguments:@{@"EvtID": argEvtID == nil ? [NSNull null] : argEvtID, @"param": argparam == nil ? [NSNull null] : argparam}]; + }); + +} + + +@end \ No newline at end of file diff --git a/ios/tencent_live_fluttify.podspec b/ios/tencent_live_fluttify.podspec new file mode 100644 index 0000000..8ccdadb --- /dev/null +++ b/ios/tencent_live_fluttify.podspec @@ -0,0 +1,44 @@ +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# +Pod::Spec.new do |s| + s.name = 'tencent_live_fluttify' + s.version = '0.0.1' + s.summary = 'A `Tencent Live` flutter plugin, Powered by `Fluttify` engine.' + s.description = <<-DESC +A new flutter plugin project. + DESC + s.homepage = 'https://fluttify.com' + s.license = { :file => '../LICENSE' } + s.author = { 'yohom' => 'yohombao@qq.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.public_header_files = ['Classes/**/*.h', 'Vendors/*.h'] # 只接收顶层的.h文件, 防止framework下面的.h文件被包含 + s.dependency 'Flutter' + s.dependency 'foundation_fluttify' + # flutter plugin dependency + + # sdk dependency + s.dependency 'TXLiteAVSDK_Professional', '7.2.8927' + + s.static_framework = true + s.ios.deployment_target = '8.0' + # include project framework + s.vendored_frameworks = 'Vendors/*.framework' + # include project .a + s.vendored_libraries = 'Vendors/*.a' + # ios system framework + s.frameworks = [ + + ] + # ios system library + s.libraries = [ + + ] + # resources + s.resources = 'Vendors/**/*.bundle' + # s.resource_bundles = { + # 'tencent_live_fluttify' => ['Vendors/*.framework/*.bundle'] + # } +end + diff --git a/lib/src/android/android.export.g.dart b/lib/src/android/android.export.g.dart new file mode 100644 index 0000000..ee12f62 --- /dev/null +++ b/lib/src/android/android.export.g.dart @@ -0,0 +1,54 @@ +export 'type_op.g.dart'; +export 'constants.g.dart'; +export 'platformview/TXCloudVideoView.g.dart'; +export 'com/tencent/rtmp/TXLivePlayer.g.dart'; +export 'com/tencent/rtmp/ui/TXDashBoard.g.dart'; +export 'com/tencent/rtmp/ui/TXCloudVideoView.g.dart'; +export 'com/tencent/rtmp/ui/TXLogView.g.dart'; +export 'com/tencent/rtmp/ITXLivePlayListener.g.dart'; +export 'com/tencent/rtmp/video/TXScreenCapture.g.dart'; +export 'com/tencent/rtmp/video/TXScreenCapture/TXScreenCaptureAssistantActivity.g.dart'; +export 'com/tencent/rtmp/TXPlayerAuthBuilder.g.dart'; +export 'com/tencent/rtmp/ITXLivePushListener.g.dart'; +export 'com/tencent/rtmp/TXLivePlayer/ITXSnapshotListener.g.dart'; +export 'com/tencent/rtmp/TXLivePlayer/ITXAudioVolumeEvaluationListener.g.dart'; +export 'com/tencent/rtmp/TXLivePlayer/ITXAudioRawDataListener.g.dart'; +export 'com/tencent/rtmp/TXLivePlayer/ITXVideoRawDataListener.g.dart'; +export 'com/tencent/rtmp/TXLiveConstants.g.dart'; +export 'com/tencent/rtmp/TXLivePushConfig.g.dart'; +export 'com/tencent/rtmp/downloader/ITXVodDownloadListener.g.dart'; +export 'com/tencent/rtmp/downloader/TXVodDownloadDataSource.g.dart'; +export 'com/tencent/rtmp/downloader/TXVodDownloadManager.g.dart'; +export 'com/tencent/rtmp/downloader/TXVodDownloadMediaInfo.g.dart'; +export 'com/tencent/rtmp/TXLivePlayConfig.g.dart'; +export 'com/tencent/rtmp/TXVodPlayConfig.g.dart'; +export 'com/tencent/rtmp/TXLiveBase.g.dart'; +export 'com/tencent/rtmp/TXBitrateItem.g.dart'; +export 'com/tencent/rtmp/ITXVodPlayListener.g.dart'; +export 'com/tencent/rtmp/ITXLiveBaseListener.g.dart'; +export 'com/tencent/rtmp/TXLog.g.dart'; +export 'com/tencent/rtmp/TXImageSprite.g.dart'; +export 'com/tencent/rtmp/TXLivePusher/ITXSnapshotListener.g.dart'; +export 'com/tencent/rtmp/TXLivePusher/ITXAudioVolumeEvaluationListener.g.dart'; +export 'com/tencent/rtmp/TXLivePusher/AudioCustomProcessListener.g.dart'; +export 'com/tencent/rtmp/TXLivePusher/VideoCustomProcessListener.g.dart'; +export 'com/tencent/rtmp/TXLivePusher/OnBGMNotify.g.dart'; +export 'com/tencent/rtmp/TXLivePusher.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioSessionHost/SessionInfo.g.dart'; +export 'com/tencent/rtmp/sharp/jni/MediaCodecEncoder.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioSessionHost.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioCodecList/CodecInfo.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioCodecList.g.dart'; +export 'com/tencent/rtmp/sharp/jni/AudioDeviceInterface.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioSession.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeAudioSession/ITraeAudioCallback.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeMediaPlayer/OnCompletionListener.g.dart'; +export 'com/tencent/rtmp/sharp/jni/TraeMediaPlayer.g.dart'; +export 'com/tencent/rtmp/sharp/jni/QLog.g.dart'; +export 'com/tencent/rtmp/sharp/jni/RingBuffer.g.dart'; +export 'com/tencent/rtmp/sharp/jni/AudioDecoder.g.dart'; +export 'com/tencent/rtmp/sharp/jni/AudioDecoder/OnProgressListener.g.dart'; +export 'com/tencent/rtmp/sharp/jni/AudioDecoder/OnCompleteListener.g.dart'; +export 'com/tencent/rtmp/sharp/jni/AudioSessionDuplicate.g.dart'; +export 'com/tencent/rtmp/sharp/jni/MediaCodecDecoder.g.dart'; +export 'com/tencent/rtmp/sharp/jni/VivoKTVHelper.g.dart'; diff --git a/lib/src/android/com/tencent/rtmp/ITXLiveBaseListener.g.dart b/lib/src/android/com/tencent/rtmp/ITXLiveBaseListener.g.dart new file mode 100644 index 0000000..3bb7335 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ITXLiveBaseListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_ITXLiveBaseListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future OnLog(int var1, String var2, String var3) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/ITXLivePlayListener.g.dart b/lib/src/android/com/tencent/rtmp/ITXLivePlayListener.g.dart new file mode 100644 index 0000000..c86af0f --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ITXLivePlayListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_ITXLivePlayListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onPlayEvent(int var1, android_os_Bundle var2) {} + + @mustCallSuper + Future onNetStatus(android_os_Bundle var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/ITXLivePushListener.g.dart b/lib/src/android/com/tencent/rtmp/ITXLivePushListener.g.dart new file mode 100644 index 0000000..1e1a95c --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ITXLivePushListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_ITXLivePushListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onPushEvent(int var1, android_os_Bundle var2) {} + + @mustCallSuper + Future onNetStatus(android_os_Bundle var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/ITXVodPlayListener.g.dart b/lib/src/android/com/tencent/rtmp/ITXVodPlayListener.g.dart new file mode 100644 index 0000000..d532905 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ITXVodPlayListener.g.dart @@ -0,0 +1,27 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_ITXVodPlayListener on java_lang_Object { + + + + + + + + + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXBitrateItem.g.dart b/lib/src/android/com/tencent/rtmp/TXBitrateItem.g.dart new file mode 100644 index 0000000..c79f4ee --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXBitrateItem.g.dart @@ -0,0 +1,197 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXBitrateItem extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXBitrateItem'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXBitrateItem__', ); + final object = com_tencent_rtmp_TXBitrateItem()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXBitrateItem__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXBitrateItem()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_index() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_index", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_width() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_width", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_height() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_height", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_bitrate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_bitrate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_index(int index) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_index', {'__this__': this, "index": index}); + + + } + + Future set_width(int width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_width', {'__this__': this, "width": width}); + + + } + + Future set_height(int height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_height', {'__this__': this, "height": height}); + + + } + + Future set_bitrate(int bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_bitrate', {'__this__': this, "bitrate": bitrate}); + + + } + + //endregion + + //region methods + + Future compareTo(com_tencent_rtmp_TXBitrateItem var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXBitrateItem@$refId::compareTo([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::compareTo', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXBitrateItem_Batch on List { + //region getters + Future> get_index_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_index_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_width_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_width_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_height_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_height_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_bitrate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.TXBitrateItem::get_bitrate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_index_batch(List index) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_index_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "index": index[__i__]}]); + + + } + + Future set_width_batch(List width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_width_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "width": width[__i__]}]); + + + } + + Future set_height_batch(List height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_height_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "height": height[__i__]}]); + + + } + + Future set_bitrate_batch(List bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.TXBitrateItem::set_bitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bitrate": bitrate[__i__]}]); + + + } + + //endregion + + //region methods + + Future> compareTo_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXBitrateItem::compareTo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXImageSprite.g.dart b/lib/src/android/com/tencent/rtmp/TXImageSprite.g.dart new file mode 100644 index 0000000..5125d96 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXImageSprite.g.dart @@ -0,0 +1,189 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXImageSprite extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXImageSprite'; + + + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXImageSprite__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_TXImageSprite()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXImageSprite__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXImageSprite()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setVTTUrlAndImageUrls(String var1, List var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXImageSprite@$refId::setVTTUrlAndImageUrls([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::setVTTUrlAndImageUrls', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getThumbnail(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXImageSprite@$refId::getThumbnail([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::getThumbnail', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = android_graphics_Bitmap()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future release() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXImageSprite@$refId::release([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::release', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXImageSprite_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setVTTUrlAndImageUrls_batch(List var1, List> var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::setVTTUrlAndImageUrls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getThumbnail_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::getThumbnail_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => android_graphics_Bitmap()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> release_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXImageSprite::release_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLiveBase.g.dart b/lib/src/android/com/tencent/rtmp/TXLiveBase.g.dart new file mode 100644 index 0000000..7b0a514 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLiveBase.g.dart @@ -0,0 +1,596 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLiveBase extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLiveBase'; + + + //endregion + + //region creators + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future getInstance() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::getInstance([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getInstance', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_TXLiveBase()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setLicence(android_content_Context var1, String var2, String var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase@$refId::setLicence([\'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLicence', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getLicenceInfo(android_content_Context var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase@$refId::getLicenceInfo([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getLicenceInfo', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setListener(com_tencent_rtmp_ITXLiveBaseListener var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setListener', ); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLiveBase::setListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.ITXLiveBaseListener::OnLog': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: OnLog([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var0?.OnLog(args['var1'], args['var2'], args['var3']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setLogLevel(int var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setLogLevel([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLogLevel', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setConsoleEnabled(bool var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setConsoleEnabled([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setConsoleEnabled', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAppVersion(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setAppVersion([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setAppVersion', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setLibraryPath(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setLibraryPath([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLibraryPath', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future isLibraryPathValid(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::isLibraryPathValid([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::isLibraryPathValid', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getSDKVersionStr() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::getSDKVersionStr([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getSDKVersionStr', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setPituLicencePath(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setPituLicencePath([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setPituLicencePath', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getPituSDKVersion() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::getPituSDKVersion([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getPituSDKVersion', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAppID(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLiveBase::setAppID([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setAppID', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXLiveBase_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> getInstance_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getInstance_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_TXLiveBase()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setLicence_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLicence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getLicenceInfo_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getLicenceInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setLogLevel_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLogLevel_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setConsoleEnabled_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setConsoleEnabled_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setAppVersion_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setAppVersion_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setLibraryPath_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setLibraryPath_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> isLibraryPathValid_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::isLibraryPathValid_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getSDKVersionStr_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getSDKVersionStr_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setPituLicencePath_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setPituLicencePath_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getPituSDKVersion_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::getPituSDKVersion_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setAppID_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLiveBase::setAppID_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLiveConstants.g.dart b/lib/src/android/com/tencent/rtmp/TXLiveConstants.g.dart new file mode 100644 index 0000000..933ff9d --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLiveConstants.g.dart @@ -0,0 +1,283 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLiveConstants extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLiveConstants'; + + static final int VIDEO_RESOLUTION_TYPE_360_640 = 0; + static final int VIDEO_RESOLUTION_TYPE_540_960 = 1; + static final int VIDEO_RESOLUTION_TYPE_720_1280 = 2; + static final int VIDEO_RESOLUTION_TYPE_640_360 = 3; + static final int VIDEO_RESOLUTION_TYPE_960_540 = 4; + static final int VIDEO_RESOLUTION_TYPE_1280_720 = 5; + static final int VIDEO_RESOLUTION_TYPE_320_480 = 6; + static final int VIDEO_RESOLUTION_TYPE_180_320 = 7; + static final int VIDEO_RESOLUTION_TYPE_270_480 = 8; + static final int VIDEO_RESOLUTION_TYPE_320_180 = 9; + static final int VIDEO_RESOLUTION_TYPE_480_270 = 10; + static final int VIDEO_RESOLUTION_TYPE_240_320 = 11; + static final int VIDEO_RESOLUTION_TYPE_360_480 = 12; + static final int VIDEO_RESOLUTION_TYPE_480_640 = 13; + static final int VIDEO_RESOLUTION_TYPE_320_240 = 14; + static final int VIDEO_RESOLUTION_TYPE_480_360 = 15; + static final int VIDEO_RESOLUTION_TYPE_640_480 = 16; + static final int VIDEO_RESOLUTION_TYPE_480_480 = 17; + static final int VIDEO_RESOLUTION_TYPE_270_270 = 18; + static final int VIDEO_RESOLUTION_TYPE_160_160 = 19; + static final int VIDEO_RESOLUTION_TYPE_1080_1920 = 30; + static final int VIDEO_RESOLUTION_TYPE_1920_1080 = 31; + static final int VIDEO_QUALITY_STANDARD_DEFINITION = 1; + static final int VIDEO_QUALITY_HIGH_DEFINITION = 2; + static final int VIDEO_QUALITY_SUPER_DEFINITION = 3; + static final int VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER = 4; + static final int VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER = 5; + static final int VIDEO_QUALITY_REALTIEM_VIDEOCHAT = 6; + static final int VIDEO_QUALITY_ULTRA_DEFINITION = 7; + static final int VIDEO_ANGLE_HOME_RIGHT = 0; + static final int VIDEO_ANGLE_HOME_DOWN = 1; + static final int VIDEO_ANGLE_HOME_LEFT = 2; + static final int VIDEO_ANGLE_HOME_UP = 3; + static final int CUSTOM_MODE_AUDIO_CAPTURE = 1; + static final int CUSTOM_MODE_VIDEO_CAPTURE = 2; + static final int CUSTOM_MODE_AUDIO_PREPROCESS = 4; + static final int CUSTOM_MODE_VIDEO_PREPROCESS = 8; + static final int RENDER_MODE_FULL_FILL_SCREEN = 0; + static final int RENDER_MODE_ADJUST_RESOLUTION = 1; + static final int RENDER_ROTATION_PORTRAIT = 0; + static final int RENDER_ROTATION_LANDSCAPE = 270; + static final int RENDER_ROTATION_0 = 0; + static final int RENDER_ROTATION_90 = 90; + static final int RENDER_ROTATION_180 = 180; + static final int RENDER_ROTATION_270 = 270; + static final int LOCAL_VIDEO_MIRROR_TYPE_AUTO = 0; + static final int LOCAL_VIDEO_MIRROR_TYPE_ENABLE = 1; + static final int LOCAL_VIDEO_MIRROR_TYPE_DISABLE = 2; + static final int AUTO_ADJUST_NONE = -1; + static final int AUTO_ADJUST_LIVEPUSH_STRATEGY = 0; + static final int AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY = 1; + static final int AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY = 5; + static final int AUTO_ADJUST_BITRATE_STRATEGY_1 = 0; + static final int AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1 = 1; + static final int AUTO_ADJUST_BITRATE_STRATEGY_2 = 2; + static final int AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2 = 3; + static final int AUTO_ADJUST_REALTIME_BITRATE_STRATEGY = 4; + static final int AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY = 5; + static final int PUSH_EVT_CONNECT_SUCC = 1001; + static final int PUSH_EVT_PUSH_BEGIN = 1002; + static final int PUSH_EVT_OPEN_CAMERA_SUCC = 1003; + static final int PUSH_EVT_SCREEN_CAPTURE_SUCC = 1004; + static final int PUSH_EVT_CHANGE_RESOLUTION = 1005; + static final int PUSH_EVT_CHANGE_BITRATE = 1006; + static final int PUSH_EVT_FIRST_FRAME_AVAILABLE = 1007; + static final int PUSH_EVT_START_VIDEO_ENCODER = 1008; + static final int PUSH_EVT_ROOM_IN = 1018; + static final int PUSH_EVT_ROOM_IN_FAILED = 1022; + static final int PUSH_EVT_ROOM_OUT = 1019; + static final int PUSH_EVT_ROOM_USERLIST = 1020; + static final int PUSH_EVT_ROOM_NEED_REENTER = 1021; + static final int PUSH_EVT_ROOM_USER_ENTER = 1031; + static final int PUSH_EVT_ROOM_USER_EXIT = 1032; + static final int PUSH_EVT_ROOM_USER_VIDEO_STATE = 1033; + static final int PUSH_EVT_ROOM_USER_AUDIO_STATE = 1034; + static final int PUSH_ERR_OPEN_CAMERA_FAIL = -1301; + static final int PUSH_ERR_OPEN_MIC_FAIL = -1302; + static final int PUSH_ERR_VIDEO_ENCODE_FAIL = -1303; + static final int PUSH_ERR_AUDIO_ENCODE_FAIL = -1304; + static final int PUSH_ERR_UNSUPPORTED_RESOLUTION = -1305; + static final int PUSH_ERR_UNSUPPORTED_SAMPLERATE = -1306; + static final int PUSH_ERR_NET_DISCONNECT = -1307; + static final int PUSH_ERR_SCREEN_CAPTURE_START_FAILED = -1308; + static final int PUSH_ERR_SCREEN_CAPTURE_UNSURPORT = -1309; + static final int PUSH_ERR_SCREEN_CAPTURE_DISTURBED = -1310; + static final int PUSH_ERR_MIC_RECORD_FAIL = -1311; + static final int PUSH_ERR_SCREEN_CAPTURE_SWITCH_DISPLAY_FAILED = -1312; + static final int PUSH_ERR_INVALID_ADDRESS = -1313; + static final int PUSH_WARNING_NET_BUSY = 1101; + static final int PUSH_WARNING_RECONNECT = 1102; + static final int PUSH_WARNING_HW_ACCELERATION_FAIL = 1103; + static final int PUSH_WARNING_VIDEO_ENCODE_FAIL = 1104; + static final int PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL = 1105; + static final int PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW = 1106; + static final int PUSH_WARNING_VIDEO_ENCODE_SW_SWITCH_HW = 1107; + static final int PUSH_WARNING_DNS_FAIL = 3001; + static final int PUSH_WARNING_SEVER_CONN_FAIL = 3002; + static final int PUSH_WARNING_SHAKE_FAIL = 3003; + static final int PUSH_WARNING_SERVER_DISCONNECT = 3004; + static final int PUSH_WARNING_READ_WRITE_FAIL = 3005; + static final int PUSH_WARNING_VIDEO_RENDER_FAIL = 2110; + static final int PLAY_EVT_CONNECT_SUCC = 2001; + static final int PLAY_EVT_RTMP_STREAM_BEGIN = 2002; + static final int PLAY_EVT_RCV_FIRST_I_FRAME = 2003; + static final int PLAY_EVT_PLAY_BEGIN = 2004; + static final int PLAY_EVT_PLAY_PROGRESS = 2005; + static final int PLAY_EVT_PLAY_END = 2006; + static final int PLAY_EVT_PLAY_LOADING = 2007; + static final int PLAY_EVT_START_VIDEO_DECODER = 2008; + static final int PLAY_EVT_CHANGE_RESOLUTION = 2009; + static final int PLAY_EVT_GET_PLAYINFO_SUCC = 2010; + static final int PLAY_EVT_CHANGE_ROTATION = 2011; + static final int PLAY_EVT_GET_MESSAGE = 2012; + static final int PLAY_EVT_VOD_PLAY_PREPARED = 2013; + static final int PLAY_EVT_VOD_LOADING_END = 2014; + static final int PLAY_EVT_STREAM_SWITCH_SUCC = 2015; + static final int PLAY_EVT_GET_METADATA = 2028; + static final int PLAY_EVT_GET_FLVSESSIONKEY = 2030; + static final int PLAY_ERR_NET_DISCONNECT = -2301; + static final int PLAY_ERR_GET_RTMP_ACC_URL_FAIL = -2302; + static final int PLAY_ERR_FILE_NOT_FOUND = -2303; + static final int PLAY_ERR_HEVC_DECODE_FAIL = -2304; + static final int PLAY_ERR_HLS_KEY = -2305; + static final int PLAY_ERR_GET_PLAYINFO_FAIL = -2306; + static final int PLAY_ERR_STREAM_SWITCH_FAIL = -2307; + static final int PLAY_WARNING_VIDEO_DECODE_FAIL = 2101; + static final int PLAY_WARNING_AUDIO_DECODE_FAIL = 2102; + static final int PLAY_WARNING_RECONNECT = 2103; + static final int PLAY_WARNING_RECV_DATA_LAG = 2104; + static final int PLAY_WARNING_VIDEO_PLAY_LAG = 2105; + static final int PLAY_WARNING_HW_ACCELERATION_FAIL = 2106; + static final int PLAY_WARNING_VIDEO_DISCONTINUITY = 2107; + static final int PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL = 2108; + static final int PLAY_WARNING_DNS_FAIL = 3001; + static final int PLAY_WARNING_SEVER_CONN_FAIL = 3002; + static final int PLAY_WARNING_SHAKE_FAIL = 3003; + static final int PLAY_WARNING_READ_WRITE_FAIL = 3005; + static final int LOG_LEVEL_VERBOSE = 0; + static final int LOG_LEVEL_DEBUG = 1; + static final int LOG_LEVEL_INFO = 2; + static final int LOG_LEVEL_WARN = 3; + static final int LOG_LEVEL_ERROR = 4; + static final int LOG_LEVEL_FATAL = 5; + static final int LOG_LEVEL_NULL = 6; + static final String EVT_TIME = "EVT_TIME"; + static final String EVT_DESCRIPTION = "EVT_MSG"; + static final String EVT_PARAM1 = "EVT_PARAM1"; + static final String EVT_PARAM2 = "EVT_PARAM2"; + static final String EVT_GET_MSG = "EVT_GET_MSG"; + static final String EVT_PLAY_COVER_URL = "EVT_PLAY_COVER_URL"; + static final String EVT_PLAY_URL = "EVT_PLAY_URL"; + static final String EVT_PLAY_NAME = "EVT_PLAY_NAME"; + static final String EVT_PLAY_DESCRIPTION = "EVT_PLAY_DESCRIPTION"; + static final String EVT_PLAY_PROGRESS_MS = "EVT_PLAY_PROGRESS_MS"; + static final String EVT_PLAY_DURATION_MS = "EVT_PLAY_DURATION_MS"; + static final String EVT_PLAY_PROGRESS = "EVT_PLAY_PROGRESS"; + static final String EVT_PLAY_DURATION = "EVT_PLAY_DURATION"; + static final String EVT_PLAYABLE_DURATION_MS = "EVT_PLAYABLE_DURATION_MS"; + static final String NET_STATUS_CPU_USAGE = "CPU_USAGE"; + static final String NET_STATUS_VIDEO_WIDTH = "VIDEO_WIDTH"; + static final String NET_STATUS_VIDEO_HEIGHT = "VIDEO_HEIGHT"; + static final String NET_STATUS_VIDEO_FPS = "VIDEO_FPS"; + static final String NET_STATUS_VIDEO_GOP = "VIDEO_GOP"; + static final String NET_STATUS_VIDEO_BITRATE = "VIDEO_BITRATE"; + static final String NET_STATUS_AUDIO_BITRATE = "AUDIO_BITRATE"; + static final String NET_STATUS_NET_SPEED = "NET_SPEED"; + static final String NET_STATUS_AUDIO_CACHE = "AUDIO_CACHE"; + static final String NET_STATUS_VIDEO_CACHE = "VIDEO_CACHE"; + static final String NET_STATUS_AUDIO_DROP = "AUDIO_DROP"; + static final String NET_STATUS_VIDEO_DROP = "VIDEO_DROP"; + static final String NET_STATUS_V_SUM_CACHE_SIZE = "V_SUM_CACHE_SIZE"; + static final String NET_STATUS_V_DEC_CACHE_SIZE = "V_DEC_CACHE_SIZE"; + static final String NET_STATUS_AV_PLAY_INTERVAL = "AV_PLAY_INTERVAL"; + static final String NET_STATUS_AV_RECV_INTERVAL = "AV_RECV_INTERVAL"; + static final String NET_STATUS_AUDIO_CACHE_THRESHOLD = "AUDIO_CACHE_THRESHOLD"; + static final String NET_STATUS_AUDIO_INFO = "AUDIO_PLAY_INFO"; + static final String NET_STATUS_NET_JITTER = "NET_JITTER"; + static final String NET_STATUS_SERVER_IP = "SERVER_IP"; + static final String NET_STATUS_VIDEO_DPS = "VIDEO_DPS"; + static final String NET_STATUS_QUALITY_LEVEL = "NET_QUALITY_LEVEL"; + static final int PAUSE_FLAG_PAUSE_VIDEO = 1; + static final int PAUSE_FLAG_PAUSE_AUDIO = 2; + static final String TXRTMPSDK_PUSHEVENT_SOURCE_OPENCAMERA = "TXRTMPSDK_PUSHEVENT_SOURCE_OPENCAMERA"; + static final String TXRTMPSDK_PUSHEVENT_SOURCE_OPENMIC = "TXRTMPSDK_PUSHEVENT_SOURCE_OPENMIC"; + static final String TXRTMPSDK_VIDEO_YUVSOURCE_LOCALCAMERA = "TXRTMPSDK_VIDEO_YUVSOURCE_LOCALCAMERA"; + static final String TXRTMPSDK_AUDIO_PCMSOURCE_LOCALMERGER = "TXRTMPSDK_AUDIO_PCMSOURCE_LOCALMERGER"; + static final int REVERB_TYPE_0 = 0; + static final int REVERB_TYPE_1 = 1; + static final int REVERB_TYPE_2 = 2; + static final int REVERB_TYPE_3 = 3; + static final int REVERB_TYPE_4 = 4; + static final int REVERB_TYPE_5 = 5; + static final int REVERB_TYPE_6 = 6; + static final int VOICECHANGER_TYPE_0 = 0; + static final int VOICECHANGER_TYPE_1 = 1; + static final int VOICECHANGER_TYPE_2 = 2; + static final int VOICECHANGER_TYPE_3 = 3; + static final int VOICECHANGER_TYPE_4 = 4; + static final int VOICECHANGER_TYPE_5 = 5; + static final int VOICECHANGER_TYPE_6 = 6; + static final int VOICECHANGER_TYPE_7 = 7; + static final int VOICECHANGER_TYPE_8 = 8; + static final int VOICECHANGER_TYPE_9 = 9; + static final int VOICECHANGER_TYPE_10 = 10; + static final int VOICECHANGER_TYPE_11 = 11; + static final int ENCODE_VIDEO_SOFTWARE = 0; + static final int ENCODE_VIDEO_HARDWARE = 1; + static final int ENCODE_VIDEO_AUTO = 2; + static final int RTMP_CHANNEL_TYPE_AUTO = 0; + static final int RTMP_CHANNEL_TYPE_STANDARD = 1; + static final int RTMP_CHANNEL_TYPE_PRIVATE = 2; + static final int BEAUTY_STYLE_SMOOTH = 0; + static final int BEAUTY_STYLE_NATURE = 1; + static final int BEAUTY_STYLE_HAZY = 2; + static final int AUDIO_ROUTE_SPEAKER = 0; + static final int AUDIO_ROUTE_RECEIVER = 1; + static final int AUDIO_VOLUME_TYPE_AUTO = 0; + static final int AUDIO_VOLUME_TYPE_MEDIA = 1; + static final int AUDIO_VOLUME_TYPE_VOIP = 2; + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLiveConstants__', ); + final object = com_tencent_rtmp_TXLiveConstants()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLiveConstants__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLiveConstants()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_TXLiveConstants_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayConfig.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayConfig.g.dart new file mode 100644 index 0000000..7b06df3 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayConfig.g.dart @@ -0,0 +1,735 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLivePlayConfig extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLivePlayConfig'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLivePlayConfig__', ); + final object = com_tencent_rtmp_TXLivePlayConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLivePlayConfig__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLivePlayConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setAutoAdjustCacheTime(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setAutoAdjustCacheTime([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setAutoAdjustCacheTime', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCacheTime(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setCacheTime([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setCacheTime', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMaxAutoAdjustCacheTime(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setMaxAutoAdjustCacheTime([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMaxAutoAdjustCacheTime', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMinAutoAdjustCacheTime(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setMinAutoAdjustCacheTime([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMinAutoAdjustCacheTime', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoBlockThreshold(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setVideoBlockThreshold([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setVideoBlockThreshold', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setConnectRetryCount(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setConnectRetryCount([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setConnectRetryCount', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setConnectRetryInterval(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setConnectRetryInterval([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setConnectRetryInterval', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEnableMessage(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setEnableMessage([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableMessage', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAEC(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::enableAEC([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::enableAEC', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEnableMetaData(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setEnableMetaData([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableMetaData', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFlvSessionKey(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setFlvSessionKey([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setFlvSessionKey', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setEnableNearestIP(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setEnableNearestIP([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableNearestIP', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setRtmpChannelType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setRtmpChannelType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setRtmpChannelType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setCacheFolderPath(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setCacheFolderPath([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setCacheFolderPath', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setMaxCacheItems(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setMaxCacheItems([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMaxCacheItems', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setHeaders(Map var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayConfig@$refId::setHeaders([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setHeaders', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXLivePlayConfig_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setAutoAdjustCacheTime_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCacheTime_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMaxAutoAdjustCacheTime_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMaxAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMinAutoAdjustCacheTime_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMinAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoBlockThreshold_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setVideoBlockThreshold_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setConnectRetryCount_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setConnectRetryCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setConnectRetryInterval_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setConnectRetryInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEnableMessage_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAEC_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::enableAEC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEnableMetaData_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableMetaData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFlvSessionKey_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setFlvSessionKey_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setEnableNearestIP_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setEnableNearestIP_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setRtmpChannelType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setRtmpChannelType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setCacheFolderPath_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setCacheFolderPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setMaxCacheItems_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setMaxCacheItems_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setHeaders_batch(List> var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayConfig::setHeaders_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayer.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayer.g.dart new file mode 100644 index 0000000..e43c645 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayer.g.dart @@ -0,0 +1,1358 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLivePlayer extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLivePlayer'; + + static final String TAG = "TXLivePlayer"; + static final int PLAY_TYPE_LIVE_RTMP = 0; + static final int PLAY_TYPE_LIVE_FLV = 1; + static final int PLAY_TYPE_VOD_FLV = 2; + static final int PLAY_TYPE_VOD_HLS = 3; + static final int PLAY_TYPE_VOD_MP4 = 4; + static final int PLAY_TYPE_LIVE_RTMP_ACC = 5; + static final int PLAY_TYPE_LOCAL_VIDEO = 6; + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLivePlayer__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_TXLivePlayer()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLivePlayer__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLivePlayer()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setConfig(com_tencent_rtmp_TXLivePlayConfig var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setConfig([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setConfig', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPlayListener(com_tencent_rtmp_ITXLivePlayListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setPlayListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setPlayListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePlayer::setPlayListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.ITXLivePlayListener::onPlayEvent': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPlayEvent([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onPlayEvent(args['var1'], TypeOpTencentLiveFluttifyAndroid((args['var2'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.ITXLivePlayListener::onNetStatus': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onNetStatus([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onNetStatus(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPlayerView(com_tencent_rtmp_ui_TXCloudVideoView var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setPlayerView([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setPlayerView', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPlay(String var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::startPlay([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::startPlay', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPlay(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::stopPlay([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::stopPlay', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isPlaying() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::isPlaying([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::isPlaying', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pause() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::pause([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::pause', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resume() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::resume([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::resume', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSurfaceSize(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setSurfaceSize([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setSurfaceSize', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderMode(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setRenderMode([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRenderMode', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setRenderRotation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRenderRotation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableHardwareDecode(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::enableHardwareDecode([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::enableHardwareDecode', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMute(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setMute([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setMute', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVolume(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setVolume([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setVolume', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioRoute(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setAudioRoute([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAudioRoute', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future switchStream(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::switchStream([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::switchStream', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioVolumeEvaluationListener(com_tencent_rtmp_TXLivePlayer_ITXAudioVolumeEvaluationListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setAudioVolumeEvaluationListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAudioVolumeEvaluationListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePlayer::setAudioVolumeEvaluationListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioVolumeEvaluationListener::onAudioVolumeEvaluationNotify': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioVolumeEvaluationNotify([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onAudioVolumeEvaluationNotify(args['var1']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAudioVolumeEvaluation(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::enableAudioVolumeEvaluation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::enableAudioVolumeEvaluation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future callExperimentalAPI(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::callExperimentalAPI([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::callExperimentalAPI', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startRecord(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::startRecord([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::startRecord', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopRecord() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::stopRecord([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::stopRecord', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future snapshot(com_tencent_rtmp_TXLivePlayer_ITXSnapshotListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::snapshot([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::snapshot', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePlayer::snapshot::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePlayer.ITXSnapshotListener::onSnapshot': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onSnapshot([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onSnapshot(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future addVideoRawData(Uint8List var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::addVideoRawData([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::addVideoRawData', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoRawDataListener(com_tencent_rtmp_TXLivePlayer_ITXVideoRawDataListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setVideoRawDataListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setVideoRawDataListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePlayer::setVideoRawDataListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePlayer.ITXVideoRawDataListener::onVideoRawDataAvailable': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onVideoRawDataAvailable([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}, \'var4\':${args['var4']}])'); + } + + // handle the native call + var1?.onVideoRawDataAvailable(args['var1'], args['var2'], args['var3'], args['var4']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioRawDataListener(com_tencent_rtmp_TXLivePlayer_ITXAudioRawDataListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setAudioRawDataListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAudioRawDataListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePlayer::setAudioRawDataListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioRawDataListener::onPcmDataAvailable': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPcmDataAvailable([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onPcmDataAvailable(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.TXLivePlayer.ITXAudioRawDataListener::onAudioInfoChanged': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioInfoChanged([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.onAudioInfoChanged(args['var1'], args['var2'], args['var3']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future prepareLiveSeek(String var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::prepareLiveSeek([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::prepareLiveSeek', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future seek(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::seek([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::seek', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumeLive() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::resumeLive([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::resumeLive', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setAutoPlay(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setAutoPlay([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAutoPlay', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setRate(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePlayer@$refId::setRate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXLivePlayer_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setConfig_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setConfig_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPlayerView_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setPlayerView_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPlay_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::startPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPlay_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::stopPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isPlaying_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::isPlaying_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pause_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::pause_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resume_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::resume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSurfaceSize_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setSurfaceSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderMode_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRenderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableHardwareDecode_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::enableHardwareDecode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMute_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVolume_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAudioRoute_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAudioRoute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> switchStream_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::switchStream_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAudioVolumeEvaluation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::enableAudioVolumeEvaluation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> callExperimentalAPI_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::callExperimentalAPI_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startRecord_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::startRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopRecord_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::stopRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> addVideoRawData_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::addVideoRawData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> prepareLiveSeek_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::prepareLiveSeek_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> seek_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::seek_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumeLive_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::resumeLive_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setAutoPlay_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setAutoPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setRate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePlayer::setRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioRawDataListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioRawDataListener.g.dart new file mode 100644 index 0000000..2b8b3eb --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioRawDataListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePlayer_ITXAudioRawDataListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onPcmDataAvailable(Uint8List var1, int var2) {} + + @mustCallSuper + Future onAudioInfoChanged(int var1, int var2, int var3) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioVolumeEvaluationListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioVolumeEvaluationListener.g.dart new file mode 100644 index 0000000..5454d6a --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXAudioVolumeEvaluationListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePlayer_ITXAudioVolumeEvaluationListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onAudioVolumeEvaluationNotify(int var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXSnapshotListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXSnapshotListener.g.dart new file mode 100644 index 0000000..ffd0b2a --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXSnapshotListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePlayer_ITXSnapshotListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onSnapshot(android_graphics_Bitmap var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXVideoRawDataListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXVideoRawDataListener.g.dart new file mode 100644 index 0000000..59154c6 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePlayer/ITXVideoRawDataListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePlayer_ITXVideoRawDataListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onVideoRawDataAvailable(Uint8List var1, int var2, int var3, int var4) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePushConfig.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePushConfig.g.dart new file mode 100644 index 0000000..9521779 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePushConfig.g.dart @@ -0,0 +1,1828 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLivePushConfig extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLivePushConfig'; + + static final int DEFAULT_MAX_VIDEO_BITRATE = 1200; + static final int DEFAULT_MIN_VIDEO_BITRATE = 800; + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLivePushConfig__', ); + final object = com_tencent_rtmp_TXLivePushConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLivePushConfig__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLivePushConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setHomeOrientation(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setHomeOrientation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setHomeOrientation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setTouchFocus(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setTouchFocus([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setTouchFocus', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEnableZoom(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setEnableZoom([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setEnableZoom', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setWatermark__android_graphics_Bitmap__int__int(android_graphics_Bitmap var1, int var2, int var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setWatermark([\'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__int__int', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setWatermark__android_graphics_Bitmap__double__double__double(android_graphics_Bitmap var1, double var2, double var3, double var4) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setWatermark([\'var2\':$var2, \'var3\':$var3, \'var4\':$var4])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__double__double__double', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLocalVideoMirrorType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setLocalVideoMirrorType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setLocalVideoMirrorType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPauseImg__android_graphics_Bitmap(android_graphics_Bitmap var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setPauseImg([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseImg__android_graphics_Bitmap', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPauseImg__int__int(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setPauseImg([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseImg__int__int', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPauseFlag(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setPauseFlag([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseFlag', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoResolution(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVideoResolution([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoResolution', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoFPS(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVideoFPS([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoFPS', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoEncodeGop(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVideoEncodeGop([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoEncodeGop', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoBitrate(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVideoBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMaxVideoBitrate(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setMaxVideoBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMaxVideoBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMinVideoBitrate(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setMinVideoBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMinVideoBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAutoAdjustBitrate(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setAutoAdjustBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAutoAdjustBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAutoAdjustStrategy(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setAutoAdjustStrategy([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAutoAdjustStrategy', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioSampleRate(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setAudioSampleRate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAudioSampleRate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioChannels(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setAudioChannels([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAudioChannels', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enablePureAudioPush(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enablePureAudioPush([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enablePureAudioPush', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableScreenCaptureAutoRotate(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableScreenCaptureAutoRotate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableScreenCaptureAutoRotate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableHighResolutionCaptureMode(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableHighResolutionCaptureMode([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableHighResolutionCaptureMode', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoEncoderXMirror(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVideoEncoderXMirror([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoEncoderXMirror', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAudioEarMonitoring(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableAudioEarMonitoring([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAudioEarMonitoring', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setConnectRetryCount(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setConnectRetryCount([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setConnectRetryCount', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setConnectRetryInterval(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setConnectRetryInterval([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setConnectRetryInterval', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCustomModeType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setCustomModeType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomModeType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAEC(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableAEC([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAEC', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAGC(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableAGC([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAGC', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableANS(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableANS([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableANS', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVolumeType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setVolumeType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVolumeType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setHardwareAcceleration(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setHardwareAcceleration([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setHardwareAcceleration', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableVideoHardEncoderMainProfile(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableVideoHardEncoderMainProfile([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableVideoHardEncoderMainProfile', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMetaData(Map var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setMetaData([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMetaData', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFrontCamera(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setFrontCamera([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setFrontCamera', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setBeautyFilter(int var1, int var2, int var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setBeautyFilter([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setBeautyFilter', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setEyeScaleLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setEyeScaleLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setEyeScaleLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFaceSlimLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setFaceSlimLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setFaceSlimLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setRtmpChannelType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setRtmpChannelType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setRtmpChannelType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future enableNearestIP(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::enableNearestIP([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableNearestIP', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCustomVideoPreProcessLibrary(String var1, String var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setCustomVideoPreProcessLibrary([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomVideoPreProcessLibrary', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCustomAudioPreProcessLibrary(String var1, String var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePushConfig@$refId::setCustomAudioPreProcessLibrary([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomAudioPreProcessLibrary', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXLivePushConfig_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setHomeOrientation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setHomeOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setTouchFocus_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setTouchFocus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEnableZoom_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setEnableZoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setWatermark__android_graphics_Bitmap__int__int_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__int__int_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setWatermark__android_graphics_Bitmap__double__double__double_batch(List var1, List var2, List var3, List var4) async { + if (var1.length != var2.length || var2.length != var3.length || var3.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setWatermark__android_graphics_Bitmap__double__double__double_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLocalVideoMirrorType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setLocalVideoMirrorType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPauseImg__android_graphics_Bitmap_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseImg__android_graphics_Bitmap_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPauseImg__int__int_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseImg__int__int_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPauseFlag_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setPauseFlag_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoResolution_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoResolution_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoFPS_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoFPS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoEncodeGop_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoEncodeGop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMaxVideoBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMaxVideoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMinVideoBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMinVideoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAutoAdjustBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAutoAdjustBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAutoAdjustStrategy_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAutoAdjustStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAudioSampleRate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAudioSampleRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAudioChannels_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setAudioChannels_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enablePureAudioPush_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enablePureAudioPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableScreenCaptureAutoRotate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableScreenCaptureAutoRotate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableHighResolutionCaptureMode_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableHighResolutionCaptureMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoEncoderXMirror_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVideoEncoderXMirror_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAudioEarMonitoring_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAudioEarMonitoring_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setConnectRetryCount_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setConnectRetryCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setConnectRetryInterval_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setConnectRetryInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCustomModeType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomModeType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAEC_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAEC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAGC_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableAGC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableANS_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableANS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVolumeType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setVolumeType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setHardwareAcceleration_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setHardwareAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableVideoHardEncoderMainProfile_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableVideoHardEncoderMainProfile_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMetaData_batch(List> var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setMetaData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFrontCamera_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setFrontCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setBeautyFilter_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setBeautyFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setEyeScaleLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setEyeScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFaceSlimLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setFaceSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setRtmpChannelType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setRtmpChannelType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> enableNearestIP_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::enableNearestIP_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCustomVideoPreProcessLibrary_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomVideoPreProcessLibrary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCustomAudioPreProcessLibrary_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePushConfig::setCustomAudioPreProcessLibrary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher.g.dart new file mode 100644 index 0000000..d135742 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher.g.dart @@ -0,0 +1,2653 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLivePusher extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLivePusher'; + + static final int YUV_420SP = 1; + static final int YUV_420YpCbCr = 2; + static final int YUV_420P = 3; + static final int RGB_BGRA = 4; + static final int RGB_RGBA = 5; + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLivePusher__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_TXLivePusher()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLivePusher__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLivePusher()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setConfig(com_tencent_rtmp_TXLivePushConfig var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setConfig([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setConfig', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getConfig() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::getConfig([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getConfig', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_TXLivePushConfig()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setPushListener(com_tencent_rtmp_ITXLivePushListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setPushListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setPushListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::setPushListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.ITXLivePushListener::onPushEvent': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPushEvent([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onPushEvent(args['var1'], TypeOpTencentLiveFluttifyAndroid((args['var2'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.ITXLivePushListener::onNetStatus': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onNetStatus([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onNetStatus(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startCameraPreview(com_tencent_rtmp_ui_TXCloudVideoView var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::startCameraPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startCameraPreview', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopCameraPreview(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::stopCameraPreview([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopCameraPreview', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPusher(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::startPusher([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startPusher', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPusher() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::stopPusher([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopPusher', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startScreenCapture() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::startScreenCapture([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startScreenCapture', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopScreenCapture() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::stopScreenCapture([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopScreenCapture', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pausePusher() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::pausePusher([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::pausePusher', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumePusher() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::resumePusher([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::resumePusher', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isPushing() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::isPushing([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::isPushing', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoQuality(int var1, bool var2, bool var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setVideoQuality([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setVideoQuality', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future switchCamera() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::switchCamera([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::switchCamera', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMirror(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setMirror([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMirror', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setRenderRotation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setRenderRotation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future turnOnFlashLight(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::turnOnFlashLight([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::turnOnFlashLight', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getMaxZoom() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::getMaxZoom([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getMaxZoom', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setZoom(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setZoom([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setZoom', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setExposureCompensation(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setExposureCompensation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setExposureCompensation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyFilter(int var1, int var2, int var3, int var4) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setBeautyFilter([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3, \'var4\':$var4])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBeautyFilter', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFilter(android_graphics_Bitmap var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setFilter([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFilter', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setSpecialRatio(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setSpecialRatio([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setSpecialRatio', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setEyeScaleLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setEyeScaleLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setEyeScaleLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFaceSlimLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setFaceSlimLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceSlimLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFaceVLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setFaceVLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceVLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setChinLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setChinLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setChinLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setFaceShortLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setFaceShortLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceShortLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setNoseSlimLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setNoseSlimLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setNoseSlimLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setGreenScreenFile(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setGreenScreenFile([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setGreenScreenFile', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setMotionTmpl(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setMotionTmpl([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMotionTmpl', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future setMotionMute(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setMotionMute([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMotionMute', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMute(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setMute([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMute', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMNofify(com_tencent_rtmp_TXLivePusher_OnBGMNotify var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setBGMNofify([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMNofify', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::setBGMNofify::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMStart': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onBGMStart([])'); + } + + // handle the native call + var1?.onBGMStart(); + break; + case 'Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onBGMProgress([\'var1\':${args['var1']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.onBGMProgress(args['var1'], args['var3']); + break; + case 'Callback::com.tencent.rtmp.TXLivePusher.OnBGMNotify::onBGMComplete': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onBGMComplete([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onBGMComplete(args['var1']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future playBGM(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::playBGM([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::playBGM', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::stopBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pauseBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::pauseBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::pauseBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumeBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::resumeBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::resumeBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getMusicDuration(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::getMusicDuration([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getMusicDuration', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMVolume(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setBGMVolume([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMVolume', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMicVolume(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setMicVolume([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMicVolume', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMPitch(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setBGMPitch([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMPitch', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setReverb(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setReverb([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setReverb', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVoiceChangerType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setVoiceChangerType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setVoiceChangerType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMPosition(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setBGMPosition([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMPosition', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioVolumeEvaluationListener(com_tencent_rtmp_TXLivePusher_ITXAudioVolumeEvaluationListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setAudioVolumeEvaluationListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setAudioVolumeEvaluationListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::setAudioVolumeEvaluationListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePusher.ITXAudioVolumeEvaluationListener::onAudioVolumeEvaluationNotify': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioVolumeEvaluationNotify([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onAudioVolumeEvaluationNotify(args['var1']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAudioVolumeEvaluation(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::enableAudioVolumeEvaluation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::enableAudioVolumeEvaluation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startRecord(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::startRecord([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startRecord', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopRecord() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::stopRecord([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopRecord', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future snapshot(com_tencent_rtmp_TXLivePusher_ITXSnapshotListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::snapshot([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::snapshot', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::snapshot::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePusher.ITXSnapshotListener::onSnapshot': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onSnapshot([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onSnapshot(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendCustomVideoTexture(int var1, int var2, int var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::sendCustomVideoTexture([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomVideoTexture', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendCustomVideoData(Uint8List var1, int var2, int var3, int var4) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::sendCustomVideoData([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3, \'var4\':$var4])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomVideoData', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendCustomPCMData(Uint8List var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::sendCustomPCMData([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomPCMData', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoProcessListener(com_tencent_rtmp_TXLivePusher_VideoCustomProcessListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setVideoProcessListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setVideoProcessListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::setVideoProcessListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onTextureCustomProcess': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onTextureCustomProcess([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.onTextureCustomProcess(args['var1'], args['var2'], args['var3']); + break; + case 'Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onDetectFacePoints': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDetectFacePoints([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDetectFacePoints(args['var1']); + break; + case 'Callback::com.tencent.rtmp.TXLivePusher.VideoCustomProcessListener::onTextureDestoryed': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onTextureDestoryed([])'); + } + + // handle the native call + var1?.onTextureDestoryed(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioProcessListener(com_tencent_rtmp_TXLivePusher_AudioCustomProcessListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setAudioProcessListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setAudioProcessListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.TXLivePusher::setAudioProcessListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.TXLivePusher.AudioCustomProcessListener::onRecordRawPcmData': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordRawPcmData([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var4\':${args['var4']}, \'var5\':${args['var5']}, \'var6\':${args['var6']}, \'var7\':${args['var7']}])'); + } + + // handle the native call + var1?.onRecordRawPcmData(args['var1'], args['var2'], args['var4'], args['var5'], args['var6'], args['var7']); + break; + case 'Callback::com.tencent.rtmp.TXLivePusher.AudioCustomProcessListener::onRecordPcmData': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordPcmData([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var4\':${args['var4']}, \'var5\':${args['var5']}, \'var6\':${args['var6']}])'); + } + + // handle the native call + var1?.onRecordPcmData(args['var1'], args['var2'], args['var4'], args['var5'], args['var6']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSurfaceSize(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setSurfaceSize([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setSurfaceSize', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFocusPosition(double var1, double var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::setFocusPosition([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFocusPosition', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendMessageEx(Uint8List var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::sendMessageEx([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendMessageEx', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + @deprecated + Future sendMessage(Uint8List var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::sendMessage([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendMessage', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onLogRecord(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXLivePusher@$refId::onLogRecord([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::onLogRecord', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXLivePusher_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setConfig_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setConfig_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getConfig_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getConfig_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_TXLivePushConfig()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> startCameraPreview_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startCameraPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopCameraPreview_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopCameraPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPusher_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startPusher_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPusher_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopPusher_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startScreenCapture_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startScreenCapture_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopScreenCapture_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopScreenCapture_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pausePusher_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::pausePusher_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumePusher_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::resumePusher_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isPushing_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::isPushing_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoQuality_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setVideoQuality_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> switchCamera_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::switchCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMirror_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMirror_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> turnOnFlashLight_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::turnOnFlashLight_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getMaxZoom_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getMaxZoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setZoom_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setZoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setExposureCompensation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setExposureCompensation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyFilter_batch(List var1, List var2, List var3, List var4) async { + if (var1.length != var2.length || var2.length != var3.length || var3.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBeautyFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFilter_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setSpecialRatio_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setSpecialRatio_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setEyeScaleLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setEyeScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFaceSlimLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFaceVLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceVLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setChinLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setChinLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setFaceShortLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFaceShortLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setNoseSlimLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setNoseSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setGreenScreenFile_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setGreenScreenFile_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setMotionTmpl_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMotionTmpl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> setMotionMute_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMotionMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMute_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> playBGM_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::playBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pauseBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::pauseBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumeBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::resumeBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getMusicDuration_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::getMusicDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMVolume_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMicVolume_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setMicVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMPitch_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMPitch_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setReverb_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setReverb_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVoiceChangerType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setVoiceChangerType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMPosition_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setBGMPosition_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAudioVolumeEvaluation_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::enableAudioVolumeEvaluation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startRecord_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::startRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopRecord_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::stopRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendCustomVideoTexture_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomVideoTexture_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendCustomVideoData_batch(List var1, List var2, List var3, List var4) async { + if (var1.length != var2.length || var2.length != var3.length || var3.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomVideoData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendCustomPCMData_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendCustomPCMData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSurfaceSize_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setSurfaceSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFocusPosition_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::setFocusPosition_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendMessageEx_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendMessageEx_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + @deprecated + Future> sendMessage_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::sendMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onLogRecord_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXLivePusher::onLogRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher/AudioCustomProcessListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher/AudioCustomProcessListener.g.dart new file mode 100644 index 0000000..bc217e7 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher/AudioCustomProcessListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePusher_AudioCustomProcessListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onRecordRawPcmData(Uint8List var1, int var2, int var4, int var5, int var6, bool var7) {} + + @mustCallSuper + Future onRecordPcmData(Uint8List var1, int var2, int var4, int var5, int var6) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXAudioVolumeEvaluationListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXAudioVolumeEvaluationListener.g.dart new file mode 100644 index 0000000..d6a27b3 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXAudioVolumeEvaluationListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePusher_ITXAudioVolumeEvaluationListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onAudioVolumeEvaluationNotify(int var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXSnapshotListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXSnapshotListener.g.dart new file mode 100644 index 0000000..5561cfd --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher/ITXSnapshotListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePusher_ITXSnapshotListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onSnapshot(android_graphics_Bitmap var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher/OnBGMNotify.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher/OnBGMNotify.g.dart new file mode 100644 index 0000000..ee27261 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher/OnBGMNotify.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePusher_OnBGMNotify on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onBGMStart() {} + + @mustCallSuper + Future onBGMProgress(int var1, int var3) {} + + @mustCallSuper + Future onBGMComplete(int var1) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLivePusher/VideoCustomProcessListener.g.dart b/lib/src/android/com/tencent/rtmp/TXLivePusher/VideoCustomProcessListener.g.dart new file mode 100644 index 0000000..71c4b0d --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLivePusher/VideoCustomProcessListener.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_TXLivePusher_VideoCustomProcessListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onTextureCustomProcess(int var1, int var2, int var3) {} + + @mustCallSuper + Future onDetectFacePoints(Float64List var1) {} + + @mustCallSuper + Future onTextureDestoryed() {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/TXLog.g.dart b/lib/src/android/com/tencent/rtmp/TXLog.g.dart new file mode 100644 index 0000000..477005e --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXLog.g.dart @@ -0,0 +1,65 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXLog extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXLog'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXLog__', ); + final object = com_tencent_rtmp_TXLog()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXLog__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXLog()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_TXLog_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXPlayerAuthBuilder.g.dart b/lib/src/android/com/tencent/rtmp/TXPlayerAuthBuilder.g.dart new file mode 100644 index 0000000..84ffa3c --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXPlayerAuthBuilder.g.dart @@ -0,0 +1,651 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXPlayerAuthBuilder extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXPlayerAuthBuilder'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXPlayerAuthBuilder__', ); + final object = com_tencent_rtmp_TXPlayerAuthBuilder()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXPlayerAuthBuilder__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXPlayerAuthBuilder()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future getAppId() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getAppId([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getAppId', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getFileId() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getFileId([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getFileId', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getTimeout() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getTimeout([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getTimeout', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getExper() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getExper([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getExper', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getSign() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getSign([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getSign', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getUs() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::getUs([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getUs', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isHttps() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::isHttps([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::isHttps', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAppId(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setAppId([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setAppId', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFileId(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setFileId([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setFileId', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setTimeout(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setTimeout([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setTimeout', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setUs(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setUs([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setUs', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setExper(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setExper([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setExper', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSign(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setSign([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setSign', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setHttps(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXPlayerAuthBuilder@$refId::setHttps([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setHttps', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXPlayerAuthBuilder_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> getAppId_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getAppId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getFileId_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getFileId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getTimeout_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getTimeout_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getExper_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getExper_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getSign_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getSign_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getUs_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::getUs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isHttps_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::isHttps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAppId_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setAppId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFileId_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setFileId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setTimeout_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setTimeout_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setUs_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setUs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setExper_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setExper_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSign_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setSign_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setHttps_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXPlayerAuthBuilder::setHttps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/TXVodPlayConfig.g.dart b/lib/src/android/com/tencent/rtmp/TXVodPlayConfig.g.dart new file mode 100644 index 0000000..8ce8ca5 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/TXVodPlayConfig.g.dart @@ -0,0 +1,609 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_TXVodPlayConfig extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.TXVodPlayConfig'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_TXVodPlayConfig__', ); + final object = com_tencent_rtmp_TXVodPlayConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_TXVodPlayConfig__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_TXVodPlayConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setConnectRetryCount(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setConnectRetryCount([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setConnectRetryCount', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setConnectRetryInterval(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setConnectRetryInterval([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setConnectRetryInterval', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setTimeout(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setTimeout([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setTimeout', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCacheFolderPath(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setCacheFolderPath([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setCacheFolderPath', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMaxCacheItems(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setMaxCacheItems([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setMaxCacheItems', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPlayerType(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setPlayerType([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setPlayerType', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setHeaders(Map var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setHeaders([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setHeaders', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEnableAccurateSeek(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setEnableAccurateSeek([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setEnableAccurateSeek', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAutoRotate(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setAutoRotate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setAutoRotate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSmoothSwitchBitrate(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setSmoothSwitchBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setSmoothSwitchBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCacheMp4ExtName(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setCacheMp4ExtName([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setCacheMp4ExtName', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setProgressInterval(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setProgressInterval([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setProgressInterval', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMaxBufferSize(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.TXVodPlayConfig@$refId::setMaxBufferSize([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setMaxBufferSize', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_TXVodPlayConfig_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setConnectRetryCount_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setConnectRetryCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setConnectRetryInterval_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setConnectRetryInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setTimeout_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setTimeout_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCacheFolderPath_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setCacheFolderPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMaxCacheItems_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setMaxCacheItems_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPlayerType_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setPlayerType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setHeaders_batch(List> var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setHeaders_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEnableAccurateSeek_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setEnableAccurateSeek_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAutoRotate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setAutoRotate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSmoothSwitchBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setSmoothSwitchBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCacheMp4ExtName_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setCacheMp4ExtName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setProgressInterval_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setProgressInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMaxBufferSize_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.TXVodPlayConfig::setMaxBufferSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/downloader/ITXVodDownloadListener.g.dart b/lib/src/android/com/tencent/rtmp/downloader/ITXVodDownloadListener.g.dart new file mode 100644 index 0000000..fac3514 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/downloader/ITXVodDownloadListener.g.dart @@ -0,0 +1,44 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_downloader_ITXVodDownloadListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onDownloadStart(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1) {} + + @mustCallSuper + Future onDownloadProgress(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1) {} + + @mustCallSuper + Future onDownloadStop(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1) {} + + @mustCallSuper + Future onDownloadFinish(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1) {} + + @mustCallSuper + Future onDownloadError(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1, int var2, String var3) {} + + @mustCallSuper + Future hlsKeyVerify(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1, String var2, Uint8List var3) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadDataSource.g.dart b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadDataSource.g.dart new file mode 100644 index 0000000..b7bf3e9 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadDataSource.g.dart @@ -0,0 +1,296 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_downloader_TXVodDownloadDataSource extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.downloader.TXVodDownloadDataSource'; + + static final int QUALITY_OD = 0; + static final int QUALITY_FLU = 1; + static final int QUALITY_SD = 2; + static final int QUALITY_HD = 3; + static final int QUALITY_FHD = 4; + static final int QUALITY_2K = 5; + static final int QUALITY_4K = 6; + static final int QUALITY_UNK = 1000; + //endregion + + //region creators + static Future create__com_tencent_rtmp_TXPlayerAuthBuilder__int(com_tencent_rtmp_TXPlayerAuthBuilder var1, int var2) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__int', {"var1": var1, "var2": var2}); + final object = com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future create__com_tencent_rtmp_TXPlayerAuthBuilder__String(com_tencent_rtmp_TXPlayerAuthBuilder var1, String var2) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__String', {"var1": var1, "var2": var2}); + final object = com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__com_tencent_rtmp_TXPlayerAuthBuilder__int(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__int', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + static Future> create_batch__com_tencent_rtmp_TXPlayerAuthBuilder__String(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadDataSource__com_tencent_rtmp_TXPlayerAuthBuilder__String', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setToken(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadDataSource@$refId::setToken([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::setToken', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getAuthBuilder() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadDataSource@$refId::getAuthBuilder([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getAuthBuilder', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_TXPlayerAuthBuilder()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future getQuality() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadDataSource@$refId::getQuality([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getQuality', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getTemplateName() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadDataSource@$refId::getTemplateName([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getTemplateName', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getToken() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadDataSource@$refId::getToken([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getToken', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_downloader_TXVodDownloadDataSource_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setToken_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::setToken_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getAuthBuilder_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getAuthBuilder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_TXPlayerAuthBuilder()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> getQuality_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getQuality_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getTemplateName_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getTemplateName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getToken_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadDataSource::getToken_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadManager.g.dart b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadManager.g.dart new file mode 100644 index 0000000..3711938 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadManager.g.dart @@ -0,0 +1,437 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_downloader_TXVodDownloadManager extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.downloader.TXVodDownloadManager'; + + static final int DOWNLOAD_SUCCESS = 0; + static final int DOWNLOAD_AUTH_FAILED = -5001; + static final int DOWNLOAD_NO_FILE = -5003; + static final int DOWNLOAD_FORMAT_ERROR = -5004; + static final int DOWNLOAD_DISCONNECT = -5005; + static final int DOWNLOAD_HLS_KEY_ERROR = -5006; + static final int DOWNLOAD_PATH_ERROR = -5007; + //endregion + + //region creators + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future getInstance() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_downloader_TXVodDownloadManager()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setDownloadPath(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::setDownloadPath([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::setDownloadPath', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setHeaders(Map var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::setHeaders([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::setHeaders', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setListener(com_tencent_rtmp_downloader_ITXVodDownloadListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::setListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::setListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.downloader.TXVodDownloadManager::setListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadStart': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDownloadStart([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDownloadStart(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDownloadProgress([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDownloadProgress(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadStop': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDownloadStop([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDownloadStop(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadFinish': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDownloadFinish([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDownloadFinish(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__()); + break; + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::onDownloadError': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDownloadError([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.onDownloadError(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__(), args['var2'], args['var3']); + break; + case 'Callback::com.tencent.rtmp.downloader.ITXVodDownloadListener::hlsKeyVerify': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: hlsKeyVerify([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.hlsKeyVerify(TypeOpTencentLiveFluttifyAndroid((args['var1'] as Object))?.as__(), args['var2'], args['var3']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startDownloadUrl(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::startDownloadUrl([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::startDownloadUrl', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future startDownload(com_tencent_rtmp_downloader_TXVodDownloadDataSource var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::startDownload([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::startDownload', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future stopDownload(com_tencent_rtmp_downloader_TXVodDownloadMediaInfo var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::stopDownload([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::stopDownload', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future deleteDownloadFile(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadManager@$refId::deleteDownloadFile([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::deleteDownloadFile', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_downloader_TXVodDownloadManager_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> getInstance_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::getInstance_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_downloader_TXVodDownloadManager()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setDownloadPath_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::setDownloadPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setHeaders_batch(List> var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::setHeaders_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startDownloadUrl_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::startDownloadUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> startDownload_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::startDownload_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> stopDownload_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::stopDownload_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> deleteDownloadFile_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadManager::deleteDownloadFile_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadMediaInfo.g.dart b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadMediaInfo.g.dart new file mode 100644 index 0000000..60feea0 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/downloader/TXVodDownloadMediaInfo.g.dart @@ -0,0 +1,399 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_downloader_TXVodDownloadMediaInfo extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.downloader.TXVodDownloadMediaInfo'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo__', ); + final object = com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future getDataSource() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getDataSource([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDataSource', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future getDuration() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getDuration([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDuration', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getSize() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getSize([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getSize', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getDownloadSize() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getDownloadSize([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDownloadSize', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getProgress() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getProgress([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getProgress', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getPlayPath() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getPlayPath([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getPlayPath', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getTaskId() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getTaskId([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getTaskId', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getUrl() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.downloader.TXVodDownloadMediaInfo@$refId::getUrl([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getUrl', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_downloader_TXVodDownloadMediaInfo_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> getDataSource_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDataSource_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> getDuration_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getSize_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getDownloadSize_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getDownloadSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getProgress_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getProgress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getPlayPath_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getPlayPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getTaskId_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getTaskId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getUrl_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.downloader.TXVodDownloadMediaInfo::getUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder.g.dart new file mode 100644 index 0000000..8b44ddc --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder.g.dart @@ -0,0 +1,571 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_AudioDecoder extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.AudioDecoder'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioDecoder__', ); + final object = com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioDecoder__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future getSampleRate() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::getSampleRate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getSampleRate', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getChannels() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::getChannels([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getChannels', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getFileTotalMs() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::getFileTotalMs([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getFileTotalMs', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getFrameSize() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::getFrameSize([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getFrameSize', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setIOPath(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::setIOPath([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setIOPath', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setIndex(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::setIndex([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setIndex', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future prepare(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::prepare([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::prepare', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future SeekTo(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::SeekTo([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::SeekTo', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future ReadOneFrame(Uint8List var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::ReadOneFrame([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::ReadOneFrame', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future release() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::release([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::release', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setOnCompleteListener(com_tencent_rtmp_sharp_jni_AudioDecoder_OnCompleteListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::setOnCompleteListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setOnCompleteListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.sharp.jni.AudioDecoder::setOnCompleteListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.sharp.jni.AudioDecoder.OnCompleteListener::completed': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: completed([])'); + } + + // handle the native call + var1?.completed(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setOnProgressListener(com_tencent_rtmp_sharp_jni_AudioDecoder_OnProgressListener var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDecoder@$refId::setOnProgressListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setOnProgressListener', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.sharp.jni.AudioDecoder::setOnProgressListener::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.sharp.jni.AudioDecoder.OnProgressListener::progress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: progress([])'); + } + + // handle the native call + var1?.progress(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_AudioDecoder_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> getSampleRate_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getSampleRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getChannels_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getChannels_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getFileTotalMs_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getFileTotalMs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getFrameSize_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::getFrameSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setIOPath_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setIOPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setIndex_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::setIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> prepare_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::prepare_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> SeekTo_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::SeekTo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> ReadOneFrame_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::ReadOneFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> release_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDecoder::release_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnCompleteListener.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnCompleteListener.g.dart new file mode 100644 index 0000000..af930e2 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnCompleteListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_sharp_jni_AudioDecoder_OnCompleteListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future completed() {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnProgressListener.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnProgressListener.g.dart new file mode 100644 index 0000000..b2bf020 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDecoder/OnProgressListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_sharp_jni_AudioDecoder_OnProgressListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future progress() {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDeviceInterface.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDeviceInterface.g.dart new file mode 100644 index 0000000..6b9b04c --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioDeviceInterface.g.dart @@ -0,0 +1,652 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_AudioDeviceInterface extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.AudioDeviceInterface'; + + static final int OUTPUT_MODE_HEADSET = 0; + static final int OUTPUT_MODE_SPEAKER = 1; + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioDeviceInterface__', ); + final object = com_tencent_rtmp_sharp_jni_AudioDeviceInterface()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioDeviceInterface__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_AudioDeviceInterface()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setContext(android_content_Context var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::setContext([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setContext', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getTraceInfo() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future LogTraceEntry(String var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future LogTraceExit() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future call_preprocess() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::call_preprocess([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future call_postprocess() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::call_postprocess([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future call_preprocess_media() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::call_preprocess_media([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_media', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future call_postprocess_media() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::call_postprocess_media([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_media', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setJavaInterface(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::setJavaInterface([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setJavaInterface', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getAudioRouteSwitchState() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::getAudioRouteSwitchState([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getAudioRouteSwitchState', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future hasLightSensorManager() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::hasLightSensorManager([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::hasLightSensorManager', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getNumberOfCPUCores() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::getNumberOfCPUCores([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getNumberOfCPUCores', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future checkAACSupported() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::checkAACSupported([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACSupported', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future checkAACMediaCodecSupported(bool var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioDeviceInterface@$refId::checkAACMediaCodecSupported([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACMediaCodecSupported', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_AudioDeviceInterface_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setContext_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setContext_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getTraceInfo_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getTraceInfo_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> LogTraceEntry_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceEntry_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> LogTraceExit_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::LogTraceExit_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> call_preprocess_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> call_postprocess_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> call_preprocess_media_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_preprocess_media_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> call_postprocess_media_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::call_postprocess_media_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setJavaInterface_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::setJavaInterface_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getAudioRouteSwitchState_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getAudioRouteSwitchState_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> hasLightSensorManager_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::hasLightSensorManager_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getNumberOfCPUCores_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::getNumberOfCPUCores_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> checkAACSupported_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACSupported_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> checkAACMediaCodecSupported_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioDeviceInterface::checkAACMediaCodecSupported_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/AudioSessionDuplicate.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioSessionDuplicate.g.dart new file mode 100644 index 0000000..3b1c407 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/AudioSessionDuplicate.g.dart @@ -0,0 +1,147 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_AudioSessionDuplicate extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.AudioSessionDuplicate'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate__', ); + final object = com_tencent_rtmp_sharp_jni_AudioSessionDuplicate()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_AudioSessionDuplicate()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future DeleteAudioSessionDuplicate() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future NewAudioSessionDuplicate(android_content_Context var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_AudioSessionDuplicate_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> DeleteAudioSessionDuplicate_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::DeleteAudioSessionDuplicate_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> NewAudioSessionDuplicate_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.AudioSessionDuplicate::NewAudioSessionDuplicate_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecDecoder.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecDecoder.g.dart new file mode 100644 index 0000000..439c2c9 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecDecoder.g.dart @@ -0,0 +1,231 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_MediaCodecDecoder extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.MediaCodecDecoder'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecDecoder__', ); + final object = com_tencent_rtmp_sharp_jni_MediaCodecDecoder()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecDecoder__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_MediaCodecDecoder()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future createAACDecoder(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@$refId::createAACDecoder([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::createAACDecoder', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future decodeAACFrame(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@$refId::decodeAACFrame([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeAACFrame', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future decodeInternalAACFrame(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@$refId::decodeInternalAACFrame([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeInternalAACFrame', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future releaseAACDecoder() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecDecoder@$refId::releaseAACDecoder([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::releaseAACDecoder', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_MediaCodecDecoder_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> createAACDecoder_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::createAACDecoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> decodeAACFrame_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeAACFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> decodeInternalAACFrame_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::decodeInternalAACFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> releaseAACDecoder_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecDecoder::releaseAACDecoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecEncoder.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecEncoder.g.dart new file mode 100644 index 0000000..948d280 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/MediaCodecEncoder.g.dart @@ -0,0 +1,289 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_MediaCodecEncoder extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.MediaCodecEncoder'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__', ); + final object = com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_MediaCodecEncoder__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future createAACEncoder(int var1, int var2, int var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@$refId::createAACEncoder([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::createAACEncoder', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future encodeAACFrame(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@$refId::encodeAACFrame([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeAACFrame', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future encodeInternalAACFrame(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@$refId::encodeInternalAACFrame([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeInternalAACFrame', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future releaseAACEncoder() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@$refId::releaseAACEncoder([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::releaseAACEncoder', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAACEncodeBitrate(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.MediaCodecEncoder@$refId::setAACEncodeBitrate([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::setAACEncodeBitrate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_MediaCodecEncoder_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> createAACEncoder_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::createAACEncoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> encodeAACFrame_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeAACFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> encodeInternalAACFrame_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::encodeInternalAACFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> releaseAACEncoder_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::releaseAACEncoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAACEncodeBitrate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.MediaCodecEncoder::setAACEncodeBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/QLog.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/QLog.g.dart new file mode 100644 index 0000000..f742899 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/QLog.g.dart @@ -0,0 +1,290 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_QLog extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.QLog'; + + static final String ERR_KEY = "qq_error|"; + static final int DEV = 4; + static final int CLR = 2; + static final int USR = 1; + static final int LOG_ITEM_MAX_CACHE_SIZE = 50; + static final String TAG_REPORTLEVEL_DEVELOPER = "D"; + static final String TAG_REPORTLEVEL_COLORUSER = "W"; + static final String TAG_REPORTLEVEL_USER = "E"; + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_QLog__', ); + final object = com_tencent_rtmp_sharp_jni_QLog()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_QLog__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_QLog()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + static Future get_static_sBuildNumber() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.QLog::get_sBuildNumber", ); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + + //endregion + + //region methods + + static Future init(android_content_Context var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.QLog::init([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::init', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future isColorLevel() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.QLog::isColorLevel([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::isColorLevel', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future isDevelopLevel() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getReportLevel(int var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.QLog::getReportLevel([\'var0\':$var0])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::getReportLevel', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future dumpCacheToFile() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_QLog_Batch on List { + //region getters + Future> get_static_sBuildNumber_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.QLog::get_sBuildNumber_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> init_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::init_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> isColorLevel_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::isColorLevel_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> isDevelopLevel_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::isDevelopLevel_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getReportLevel_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::getReportLevel_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> dumpCacheToFile_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.QLog::dumpCacheToFile_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/RingBuffer.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/RingBuffer.g.dart new file mode 100644 index 0000000..02ad585 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/RingBuffer.g.dart @@ -0,0 +1,405 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_RingBuffer extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.RingBuffer'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_RingBuffer__', ); + final object = com_tencent_rtmp_sharp_jni_RingBuffer()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future create__int(int var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_RingBuffer__int', {"var1": var1}); + final object = com_tencent_rtmp_sharp_jni_RingBuffer()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_RingBuffer__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_RingBuffer()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + static Future> create_batch__int(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_RingBuffer__int', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_RingBuffer()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_c_totalSize() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_c_totalSize", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_m_pBuf() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_pBuf", {'__this__': this}); + return __result__ == null ? null : (__result__ as Uint8List); + } + + Future get_m_read() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_read", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_m_write() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_write", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_m_isEmpty() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_isEmpty", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_c_totalSize(int c_totalSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_c_totalSize', {'__this__': this, "c_totalSize": c_totalSize}); + + + } + + Future set_m_pBuf(Uint8List m_pBuf) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_pBuf', {'__this__': this, "m_pBuf": m_pBuf}); + + + } + + Future set_m_read(int m_read) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_read', {'__this__': this, "m_read": m_read}); + + + } + + Future set_m_write(int m_write) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_write', {'__this__': this, "m_write": m_write}); + + + } + + Future set_m_isEmpty(bool m_isEmpty) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_isEmpty', {'__this__': this, "m_isEmpty": m_isEmpty}); + + + } + + //endregion + + //region methods + + Future Push(Uint8List var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.RingBuffer@$refId::Push([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Push', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future RemainRead() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.RingBuffer@$refId::RemainRead([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::RemainRead', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future RemainWrite() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.RingBuffer@$refId::RemainWrite([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::RemainWrite', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future Clear() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.RingBuffer@$refId::Clear([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Clear', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future Pop(Uint8List var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.RingBuffer@$refId::Pop([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Pop', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_RingBuffer_Batch on List { + //region getters + Future> get_c_totalSize_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_c_totalSize_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_m_pBuf_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_pBuf_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__ as Uint8List).toList(); + return typedResult; + } + + Future> get_m_read_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_read_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_m_write_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_write_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_m_isEmpty_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.RingBuffer::get_m_isEmpty_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_c_totalSize_batch(List c_totalSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_c_totalSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "c_totalSize": c_totalSize[__i__]}]); + + + } + + Future set_m_pBuf_batch(List m_pBuf) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_pBuf_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "m_pBuf": m_pBuf[__i__]}]); + + + } + + Future set_m_read_batch(List m_read) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_read_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "m_read": m_read[__i__]}]); + + + } + + Future set_m_write_batch(List m_write) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_write_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "m_write": m_write[__i__]}]); + + + } + + Future set_m_isEmpty_batch(List m_isEmpty) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::set_m_isEmpty_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "m_isEmpty": m_isEmpty[__i__]}]); + + + } + + //endregion + + //region methods + + Future> Push_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Push_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> RemainRead_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::RemainRead_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> RemainWrite_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::RemainWrite_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> Clear_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Clear_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> Pop_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.RingBuffer::Pop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList.g.dart new file mode 100644 index 0000000..7e2cff0 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList.g.dart @@ -0,0 +1,189 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeAudioCodecList extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioCodecList'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_TraeAudioCodecList__', ); + final object = com_tencent_rtmp_sharp_jni_TraeAudioCodecList()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_TraeAudioCodecList__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_TraeAudioCodecList()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future find(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@$refId::find([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::find', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future add(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@$refId::add([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::add', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future remove(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioCodecList@$refId::remove([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::remove', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeAudioCodecList_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> find_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::find_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> add_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::add_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> remove_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList::remove_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList/CodecInfo.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList/CodecInfo.g.dart new file mode 100644 index 0000000..7f0e584 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioCodecList/CodecInfo.g.dart @@ -0,0 +1,118 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo'; + + + //endregion + + //region creators + + //endregion + + //region getters + Future get_sessionId() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_audioDecoder() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder", {'__this__': this}); + return __result__ == null ? null : (com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get__tempBufdec() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec", {'__this__': this}); + return __result__ == null ? null : (__result__ as Uint8List); + } + + //endregion + + //region setters + Future set_sessionId(int sessionId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId', {'__this__': this, "sessionId": sessionId}); + + + } + + Future set_audioDecoder(com_tencent_rtmp_sharp_jni_AudioDecoder audioDecoder) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder', {'__this__': this, "audioDecoder": audioDecoder}); + + + } + + Future set__tempBufdec(Uint8List _tempBufdec) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec', {'__this__': this, "_tempBufdec": _tempBufdec}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo_Batch on List { + //region getters + Future> get_sessionId_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_audioDecoder_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get__tempBufdec_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__ as Uint8List).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_sessionId_batch(List sessionId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sessionId": sessionId[__i__]}]); + + + } + + Future set_audioDecoder_batch(List audioDecoder) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "audioDecoder": audioDecoder[__i__]}]); + + + } + + Future set__tempBufdec_batch(List _tempBufdec) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "_tempBufdec": _tempBufdec[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession.g.dart new file mode 100644 index 0000000..fc5e34a --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession.g.dart @@ -0,0 +1,1133 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeAudioSession extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioSession'; + + + //endregion + + //region creators + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future requestSessionId() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future ExConnectDevice(android_content_Context var0, String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice', {"var0": var0, "var1": var1}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future release() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::release([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::release', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCallback(com_tencent_rtmp_sharp_jni_TraeAudioSession_ITraeAudioCallback var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::setCallback([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::setCallback', {"__this__": this}); + + + // handle native call + MethodChannel('com.tencent.rtmp.sharp.jni.TraeAudioSession::setCallback::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onServiceStateUpdate': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onServiceStateUpdate([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onServiceStateUpdate(args['var1']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onDeviceListUpdate': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDeviceListUpdate([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}, \'var4\':${args['var4']}])'); + } + + // handle the native call + var1?.onDeviceListUpdate(args['var1'], args['var2'], args['var3'], args['var4']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onDeviceChangabledUpdate': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDeviceChangabledUpdate([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onDeviceChangabledUpdate(args['var1']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onStreamTypeUpdate': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onStreamTypeUpdate([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onStreamTypeUpdate(args['var1']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetDeviceListRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGetDeviceListRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}, \'var4\':${args['var4']}, \'var5\':${args['var5']}])'); + } + + // handle the native call + var1?.onGetDeviceListRes(args['var1'], args['var2'], args['var3'], args['var4'], args['var5']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onConnectDeviceRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onConnectDeviceRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])'); + } + + // handle the native call + var1?.onConnectDeviceRes(args['var1'], args['var2'], args['var3']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onIsDeviceChangabledRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onIsDeviceChangabledRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onIsDeviceChangabledRes(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetConnectedDeviceRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGetConnectedDeviceRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onGetConnectedDeviceRes(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetConnectingDeviceRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGetConnectingDeviceRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onGetConnectingDeviceRes(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onGetStreamTypeRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGetStreamTypeRes([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onGetStreamTypeRes(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onRingCompletion': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRingCompletion([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onRingCompletion(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onVoicecallPreprocessRes': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onVoicecallPreprocessRes([\'var1\':${args['var1']}])'); + } + + // handle the native call + var1?.onVoicecallPreprocessRes(args['var1']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onAudioRouteSwitchStart': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioRouteSwitchStart([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onAudioRouteSwitchStart(args['var1'], args['var2']); + break; + case 'Callback::com.tencent.rtmp.sharp.jni.TraeAudioSession.ITraeAudioCallback::onAudioRouteSwitchEnd': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioRouteSwitchEnd([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); + } + + // handle the native call + var1?.onAudioRouteSwitchEnd(args['var1'], args['var2']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startService(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::startService([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::startService', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future disableDeviceSwitch() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::disableDeviceSwitch([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::disableDeviceSwitch', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopService() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::stopService([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::stopService', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getDeviceList() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::getDeviceList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getDeviceList', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getStreamType() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::getStreamType([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getStreamType', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future connectDevice(String var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::connectDevice([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::connectDevice', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future connectHighestPriorityDevice() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::connectHighestPriorityDevice([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::connectHighestPriorityDevice', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future EarAction(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::EarAction([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::EarAction', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isDeviceChangabled() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::isDeviceChangabled([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::isDeviceChangabled', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getConnectedDevice() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::getConnectedDevice([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectedDevice', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getConnectingDevice() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::getConnectingDevice([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectingDevice', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future voiceCallPreprocess(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::voiceCallPreprocess([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPreprocess', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future voiceCallPostprocess() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::voiceCallPostprocess([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPostprocess', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future voiceCallAudioParamChanged(int var1, int var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::voiceCallAudioParamChanged([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallAudioParamChanged', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopRing() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::stopRing([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::stopRing', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future requestReleaseAudioFocus() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::requestReleaseAudioFocus([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::requestReleaseAudioFocus', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future recoverAudioFocus() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::recoverAudioFocus([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::recoverAudioFocus', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onReceiveCallback(android_content_Intent var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::onReceiveCallback([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceiveCallback', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onReceive(android_content_Context var1, android_content_Intent var2) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSession@$refId::onReceive([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceive', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeAudioSession_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> requestSessionId_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::requestSessionId_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> ExConnectDevice_batch(List var0, List var1) async { + if (var0.length != var1.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::ExConnectDevice_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> release_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::release_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startService_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::startService_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> disableDeviceSwitch_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::disableDeviceSwitch_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopService_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::stopService_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getDeviceList_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getDeviceList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getStreamType_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getStreamType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> connectDevice_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::connectDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> connectHighestPriorityDevice_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::connectHighestPriorityDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> EarAction_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::EarAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isDeviceChangabled_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::isDeviceChangabled_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getConnectedDevice_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectedDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getConnectingDevice_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::getConnectingDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> voiceCallPreprocess_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPreprocess_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> voiceCallPostprocess_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallPostprocess_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> voiceCallAudioParamChanged_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::voiceCallAudioParamChanged_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopRing_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::stopRing_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> requestReleaseAudioFocus_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::requestReleaseAudioFocus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> recoverAudioFocus_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::recoverAudioFocus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onReceiveCallback_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceiveCallback_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onReceive_batch(List var1, List var2) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSession::onReceive_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession/ITraeAudioCallback.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession/ITraeAudioCallback.g.dart new file mode 100644 index 0000000..587f86c --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSession/ITraeAudioCallback.g.dart @@ -0,0 +1,68 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_sharp_jni_TraeAudioSession_ITraeAudioCallback on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onServiceStateUpdate(bool var1) {} + + @mustCallSuper + Future onDeviceListUpdate(List var1, String var2, String var3, String var4) {} + + @mustCallSuper + Future onDeviceChangabledUpdate(bool var1) {} + + @mustCallSuper + Future onStreamTypeUpdate(int var1) {} + + @mustCallSuper + Future onGetDeviceListRes(int var1, List var2, String var3, String var4, String var5) {} + + @mustCallSuper + Future onConnectDeviceRes(int var1, String var2, bool var3) {} + + @mustCallSuper + Future onIsDeviceChangabledRes(int var1, bool var2) {} + + @mustCallSuper + Future onGetConnectedDeviceRes(int var1, String var2) {} + + @mustCallSuper + Future onGetConnectingDeviceRes(int var1, String var2) {} + + @mustCallSuper + Future onGetStreamTypeRes(int var1, int var2) {} + + @mustCallSuper + Future onRingCompletion(int var1, String var2) {} + + @mustCallSuper + Future onVoicecallPreprocessRes(int var1) {} + + @mustCallSuper + Future onAudioRouteSwitchStart(String var1, String var2) {} + + @mustCallSuper + Future onAudioRouteSwitchEnd(String var1, int var2) {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost.g.dart new file mode 100644 index 0000000..5753582 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost.g.dart @@ -0,0 +1,231 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeAudioSessionHost extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioSessionHost'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost__', ); + final object = com_tencent_rtmp_sharp_jni_TraeAudioSessionHost()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_TraeAudioSessionHost()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future find(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@$refId::find([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::find', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future add(com_tencent_rtmp_sharp_jni_TraeAudioSession var1, int var2, android_content_Context var4) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@$refId::add([\'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::add', {"var1": var1, "var2": var2, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future remove(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@$refId::remove([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::remove', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendToAudioSessionMessage(android_content_Intent var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeAudioSessionHost@$refId::sendToAudioSessionMessage([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::sendToAudioSessionMessage', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> find_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::find_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> add_batch(List var1, List var2, List var4) async { + if (var1.length != var2.length || var2.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::add_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> remove_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::remove_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendToAudioSessionMessage_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost::sendToAudioSessionMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost/SessionInfo.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost/SessionInfo.g.dart new file mode 100644 index 0000000..0c0d792 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeAudioSessionHost/SessionInfo.g.dart @@ -0,0 +1,94 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo'; + + + //endregion + + //region creators + + //endregion + + //region getters + Future get_sessionId() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get_sessionId", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get__traeAs() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get__traeAs", {'__this__': this}); + return __result__ == null ? null : (com_tencent_rtmp_sharp_jni_TraeAudioSession()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + //endregion + + //region setters + Future set_sessionId(int sessionId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set_sessionId', {'__this__': this, "sessionId": sessionId}); + + + } + + Future set__traeAs(com_tencent_rtmp_sharp_jni_TraeAudioSession _traeAs) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set__traeAs', {'__this__': this, "_traeAs": _traeAs}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo_Batch on List { + //region getters + Future> get_sessionId_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get_sessionId_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get__traeAs_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::get__traeAs_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_TraeAudioSession()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_sessionId_batch(List sessionId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set_sessionId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sessionId": sessionId[__i__]}]); + + + } + + Future set__traeAs_batch(List _traeAs) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioSessionHost.SessionInfo::set__traeAs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "_traeAs": _traeAs[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer.g.dart new file mode 100644 index 0000000..1ac6515 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer.g.dart @@ -0,0 +1,219 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_TraeMediaPlayer extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeMediaPlayer'; + + static final int TRAE_MEDIAPLAER_DATASOURCE_RSID = 0; + static final int TRAE_MEDIAPLAER_DATASOURCE_URI = 1; + static final int TRAE_MEDIAPLAER_DATASOURCE_FILEPATH = 2; + static final int TRAE_MEDIAPLAER_STOP = 100; + //endregion + + //region creators + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future stopRing() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@$refId::stopRing([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::stopRing', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getStreamType() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@$refId::getStreamType([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getStreamType', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getDuration() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@$refId::getDuration([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getDuration', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future hasCall() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.TraeMediaPlayer@$refId::hasCall([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::hasCall', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_TraeMediaPlayer_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> stopRing_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::stopRing_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getStreamType_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getStreamType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getDuration_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> hasCall_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeMediaPlayer::hasCall_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer/OnCompletionListener.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer/OnCompletionListener.g.dart new file mode 100644 index 0000000..3b09eff --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/TraeMediaPlayer/OnCompletionListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin com_tencent_rtmp_sharp_jni_TraeMediaPlayer_OnCompletionListener on java_lang_Object { + + + + + + + + + @mustCallSuper + Future onCompletion() {} + +} + diff --git a/lib/src/android/com/tencent/rtmp/sharp/jni/VivoKTVHelper.g.dart b/lib/src/android/com/tencent/rtmp/sharp/jni/VivoKTVHelper.g.dart new file mode 100644 index 0000000..9d8ce39 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/sharp/jni/VivoKTVHelper.g.dart @@ -0,0 +1,693 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_sharp_jni_VivoKTVHelper extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.sharp.jni.VivoKTVHelper'; + + + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_sharp_jni_VivoKTVHelper__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_sharp_jni_VivoKTVHelper__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future getInstance(android_content_Context var0) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance', {"var0": var0}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future isDeviceSupportKaraoke() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::isDeviceSupportKaraoke([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::isDeviceSupportKaraoke', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future openKTVDevice() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::openKTVDevice([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::openKTVDevice', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future closeKTVDevice() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::closeKTVDevice([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::closeKTVDevice', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMicVolParam(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::setMicVolParam([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setMicVolParam', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVoiceOutParam(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::setVoiceOutParam([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setVoiceOutParam', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPreModeParam(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::setPreModeParam([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPreModeParam', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPlayFeedbackParam(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::setPlayFeedbackParam([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPlayFeedbackParam', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setExtSpeakerParam(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::setExtSpeakerParam([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setExtSpeakerParam', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getExtSpeakerParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getExtSpeakerParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getExtSpeakerParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getPlayFeedbackParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getPlayFeedbackParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPlayFeedbackParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getPreModeParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getPreModeParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPreModeParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getMicTypeParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getMicTypeParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicTypeParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getVoiceOutParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getVoiceOutParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getVoiceOutParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getMicVolParam() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.sharp.jni.VivoKTVHelper@$refId::getMicVolParam([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicVolParam', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_sharp_jni_VivoKTVHelper_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> getInstance_batch(List var0) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getInstance_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> isDeviceSupportKaraoke_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::isDeviceSupportKaraoke_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> openKTVDevice_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::openKTVDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> closeKTVDevice_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::closeKTVDevice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMicVolParam_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setMicVolParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVoiceOutParam_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setVoiceOutParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPreModeParam_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPreModeParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPlayFeedbackParam_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setPlayFeedbackParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setExtSpeakerParam_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::setExtSpeakerParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getExtSpeakerParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getExtSpeakerParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getPlayFeedbackParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPlayFeedbackParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getPreModeParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getPreModeParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getMicTypeParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicTypeParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getVoiceOutParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getVoiceOutParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getMicVolParam_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.VivoKTVHelper::getMicVolParam_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/ui/TXCloudVideoView.g.dart b/lib/src/android/com/tencent/rtmp/ui/TXCloudVideoView.g.dart new file mode 100644 index 0000000..a8c9bd3 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ui/TXCloudVideoView.g.dart @@ -0,0 +1,1129 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_ui_TXCloudVideoView extends android_widget_FrameLayout with android_view_View_OnTouchListener { + //region constants + static const String name__ = 'com.tencent.rtmp.ui.TXCloudVideoView'; + + + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_ui_TXCloudVideoView__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_ui_TXCloudVideoView()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future create__android_view_SurfaceView(android_view_SurfaceView var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_ui_TXCloudVideoView__android_view_SurfaceView', {"var1": var1}); + final object = com_tencent_rtmp_ui_TXCloudVideoView()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_ui_TXCloudVideoView__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_ui_TXCloudVideoView()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + static Future> create_batch__android_view_SurfaceView(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_ui_TXCloudVideoView__android_view_SurfaceView', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_ui_TXCloudVideoView()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future onResume({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::onResume([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onResume', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onPause({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::onPause([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onPause', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future removeVideoView({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::removeVideoView([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::removeVideoView', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future removeFocusIndicatorView({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::removeFocusIndicatorView([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::removeFocusIndicatorView', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onDestroy({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::onDestroy([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onDestroy', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getSurfaceView({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::getSurfaceView([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::getSurfaceView', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = android_view_SurfaceView()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setRenderMode(int var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setRenderMode([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setRenderMode', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(int var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setRenderRotation([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setRenderRotation', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future clearLastFrame(bool var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::clearLastFrame([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::clearLastFrame', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onTouchFocus(int var1, int var2, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::onTouchFocus([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onTouchFocus', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMirror(bool var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setMirror([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setMirror', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future disableLog(bool var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::disableLog([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::disableLog', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future showLog(bool var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::showLog([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::showLog', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future clearLog({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::clearLog([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::clearLog', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogText(android_os_Bundle var1, android_os_Bundle var2, int var3, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setLogText([\'var3\':$var3])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogText', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future updateVideoViewSize(int var1, int var2, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::updateVideoViewSize([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::updateVideoViewSize', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future appendEventInfo(String var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::appendEventInfo([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::appendEventInfo', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future showVideoDebugLog(int var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::showVideoDebugLog([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::showVideoDebugLog', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogMargin(double var1, double var2, double var3, double var4, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setLogMargin([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3, \'var4\':$var4])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogMargin', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogMarginRatio(double var1, double var2, double var3, double var4, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setLogMarginRatio([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3, \'var4\':$var4])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogMarginRatio', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getUserId({bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::getUserId([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::getUserId', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setUserId(String var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::setUserId([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setUserId', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future px2dip(android_content_Context var0, double var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView::px2dip([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::px2dip', {"var0": var0, "var1": var1}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stop(bool var1, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::stop([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::stop', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onTouch(android_view_View var1, android_view_MotionEvent var2, {bool viewChannel = true}) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXCloudVideoView@$refId::onTouch([])'); + } + + // invoke native method + final __result__ = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onTouch', {"var1": var1, "var2": var2, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_ui_TXCloudVideoView_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> onResume_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onResume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onPause_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onPause_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> removeVideoView_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::removeVideoView_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> removeFocusIndicatorView_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::removeFocusIndicatorView_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onDestroy_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onDestroy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getSurfaceView_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::getSurfaceView_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => android_view_SurfaceView()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setRenderMode_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setRenderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> clearLastFrame_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::clearLastFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onTouchFocus_batch(List var1, List var2, {bool viewChannel = true}) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onTouchFocus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMirror_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setMirror_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> disableLog_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::disableLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> showLog_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::showLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> clearLog_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::clearLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogText_batch(List var1, List var2, List var3, {bool viewChannel = true}) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogText_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> updateVideoViewSize_batch(List var1, List var2, {bool viewChannel = true}) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::updateVideoViewSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> appendEventInfo_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::appendEventInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> showVideoDebugLog_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::showVideoDebugLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogMargin_batch(List var1, List var2, List var3, List var4, {bool viewChannel = true}) async { + if (var1.length != var2.length || var2.length != var3.length || var3.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogMargin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogMarginRatio_batch(List var1, List var2, List var3, List var4, {bool viewChannel = true}) async { + if (var1.length != var2.length || var2.length != var3.length || var3.length != var4.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setLogMarginRatio_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getUserId_batch({bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::getUserId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setUserId_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::setUserId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> px2dip_batch(List var0, List var1, {bool viewChannel = true}) async { + if (var0.length != var1.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::px2dip_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stop_batch(List var1, {bool viewChannel = true}) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::stop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onTouch_batch(List var1, List var2, {bool viewChannel = true}) async { + if (var1.length != var2.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel(viewChannel ? 'com.fluttify/tencent_live_fluttify/com_tencent_rtmp_ui_TXCloudVideoView' : 'com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXCloudVideoView::onTouch_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/ui/TXDashBoard.g.dart b/lib/src/android/com/tencent/rtmp/ui/TXDashBoard.g.dart new file mode 100644 index 0000000..0eb8d6e --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ui/TXDashBoard.g.dart @@ -0,0 +1,231 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_ui_TXDashBoard extends android_widget_LinearLayout { + //region constants + static const String name__ = 'com.tencent.rtmp.ui.TXDashBoard'; + + + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_ui_TXDashBoard__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_ui_TXDashBoard()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_ui_TXDashBoard__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_ui_TXDashBoard()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setStatusTextSize(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXDashBoard@$refId::setStatusTextSize([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setStatusTextSize', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEventTextSize(double var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXDashBoard@$refId::setEventTextSize([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setEventTextSize', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogMsgLenLimit(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXDashBoard@$refId::setLogMsgLenLimit([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setLogMsgLenLimit', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setShowLevel(int var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.ui.TXDashBoard@$refId::setShowLevel([\'var1\':$var1])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setShowLevel', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_ui_TXDashBoard_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setStatusTextSize_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setStatusTextSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEventTextSize_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setEventTextSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogMsgLenLimit_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setLogMsgLenLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setShowLevel_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.ui.TXDashBoard::setShowLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/ui/TXLogView.g.dart b/lib/src/android/com/tencent/rtmp/ui/TXLogView.g.dart new file mode 100644 index 0000000..18c89fc --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/ui/TXLogView.g.dart @@ -0,0 +1,65 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_ui_TXLogView extends android_widget_LinearLayout { + //region constants + static const String name__ = 'com.tencent.rtmp.ui.TXLogView'; + + + //endregion + + //region creators + static Future create__android_content_Context(android_content_Context var1) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_ui_TXLogView__android_content_Context', {"var1": var1}); + final object = com_tencent_rtmp_ui_TXLogView()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__android_content_Context(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_ui_TXLogView__android_content_Context', [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_ui_TXLogView()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_ui_TXLogView_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/video/TXScreenCapture.g.dart b/lib/src/android/com/tencent/rtmp/video/TXScreenCapture.g.dart new file mode 100644 index 0000000..0b95f27 --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/video/TXScreenCapture.g.dart @@ -0,0 +1,65 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_video_TXScreenCapture extends java_lang_Object { + //region constants + static const String name__ = 'com.tencent.rtmp.video.TXScreenCapture'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_video_TXScreenCapture__', ); + final object = com_tencent_rtmp_video_TXScreenCapture()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_video_TXScreenCapture__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_video_TXScreenCapture()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} + +extension com_tencent_rtmp_video_TXScreenCapture_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/com/tencent/rtmp/video/TXScreenCapture/TXScreenCaptureAssistantActivity.g.dart b/lib/src/android/com/tencent/rtmp/video/TXScreenCapture/TXScreenCaptureAssistantActivity.g.dart new file mode 100644 index 0000000..379984c --- /dev/null +++ b/lib/src/android/com/tencent/rtmp/video/TXScreenCapture/TXScreenCaptureAssistantActivity.g.dart @@ -0,0 +1,147 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity extends android_app_Activity { + //region constants + static const String name__ = 'com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity'; + + + //endregion + + //region creators + static Future create__() async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity__', ); + final object = com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity__', {'length': length}); + + final List typedResult = resultBatch.map((result) => com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future onCreate(android_os_Bundle var1) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity@$refId::onCreate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onCreate', {"var1": var1, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future onActivityResult(int var1, int var2, android_content_Intent var3) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity@$refId::onActivityResult([\'var1\':$var1, \'var2\':$var2])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onActivityResult', {"var1": var1, "var2": var2, "var3": var3, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> onCreate_batch(List var1) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onCreate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> onActivityResult_batch(List var1, List var2, List var3) async { + if (var1.length != var2.length || var2.length != var3.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.video.TXScreenCapture.TXScreenCaptureAssistantActivity::onActivityResult_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/android/constants.g.dart b/lib/src/android/constants.g.dart new file mode 100644 index 0000000..82d67cb --- /dev/null +++ b/lib/src/android/constants.g.dart @@ -0,0 +1,6 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// +import 'package:flutter/services.dart'; + diff --git a/lib/src/android/platformview/TXCloudVideoView.g.dart b/lib/src/android/platformview/TXCloudVideoView.g.dart new file mode 100644 index 0000000..2623a3b --- /dev/null +++ b/lib/src/android/platformview/TXCloudVideoView.g.dart @@ -0,0 +1,77 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +typedef void TXCloudVideoViewCreatedCallback(com_tencent_rtmp_ui_TXCloudVideoView controller); +typedef Future _OnAndroidViewDispose(); + +class com_tencent_rtmp_ui_TXCloudVideoView_Android extends StatefulWidget { + const com_tencent_rtmp_ui_TXCloudVideoView_Android({ + Key key, + this.onViewCreated, + this.onDispose, + this.params = const {}, + this.gestureRecognizers, + }) : super(key: key); + + final TXCloudVideoViewCreatedCallback onViewCreated; + final _OnAndroidViewDispose onDispose; + final Map params; + final Set> gestureRecognizers; + + @override + _com_tencent_rtmp_ui_TXCloudVideoView_AndroidState createState() => _com_tencent_rtmp_ui_TXCloudVideoView_AndroidState(); +} + +class _com_tencent_rtmp_ui_TXCloudVideoView_AndroidState extends State { + com_tencent_rtmp_ui_TXCloudVideoView _controller; + + @override + Widget build(BuildContext context) { + final gestureRecognizers = widget.gestureRecognizers ?? >{ + Factory(() => EagerGestureRecognizer()), + }; + + final messageCodec = FluttifyMessageCodec('tencent_live_fluttify'); + return AndroidView( + viewType: 'com.fluttify/com.tencent.rtmp.ui.TXCloudVideoView', + gestureRecognizers: gestureRecognizers, + onPlatformViewCreated: _onViewCreated, + creationParamsCodec: messageCodec, + creationParams: widget.params, + ); + } + + void _onViewCreated(int id) async { + // 碰到一个对象返回的hashCode为0的情况, 造成和这个id冲突了, 这里用一个magic number避免一下 + // 把viewId转换为refId再使用, 使其与其他对象统一 + final refId = await viewId2RefId((2147483647 - id).toString()); + _controller = com_tencent_rtmp_ui_TXCloudVideoView()..refId = refId..tag__ = 'tencent_live_fluttify'; + if (widget.onViewCreated != null) { + widget.onViewCreated(_controller); + } + } + + @override + void dispose() { + if (widget.onDispose != null) { + widget.onDispose().then((_) => _controller.release__()); + } else { + _controller.release__(); + } + super.dispose(); + } +} diff --git a/lib/src/android/type_op.g.dart b/lib/src/android/type_op.g.dart new file mode 100644 index 0000000..76442b0 --- /dev/null +++ b/lib/src/android/type_op.g.dart @@ -0,0 +1,439 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:io'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import +extension TypeOpTencentLiveFluttifyAndroid on Object { + // type check + Future is__() async { + final typeName = T.toString(); + if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map)$').hasMatch(typeName)) { + return this is T; + } + else if (T == com_tencent_rtmp_TXLog) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLog', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_ui_TXDashBoard) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXDashBoard', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_ui_TXCloudVideoView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXCloudVideoView', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_ui_TXLogView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXLogView', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLivePlayer) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePlayer', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_video_TXScreenCapture) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLivePusher) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePusher', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLiveBase) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLiveBase', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXPlayerAuthBuilder) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXPlayerAuthBuilder', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadMediaInfo) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadDataSource) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadDataSource', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadManager) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadManager', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLiveConstants) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLiveConstants', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLivePushConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePushConfig', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXBitrateItem) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXBitrateItem', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXLivePlayConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePlayConfig', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXVodPlayConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXVodPlayConfig', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_TXImageSprite) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXImageSprite', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_MediaCodecDecoder) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecDecoder', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSession) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSession', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioDecoder) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDecoder', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_RingBuffer) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_RingBuffer', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_QLog) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_QLog', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioDeviceInterface) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDeviceInterface', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeMediaPlayer) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeMediaPlayer', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioSessionDuplicate) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_MediaCodecEncoder) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecEncoder', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo', {'__this__': this}); + return result; + } + else if (T == com_tencent_rtmp_sharp_jni_VivoKTVHelper) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_VivoKTVHelper', {'__this__': this}); + return result; + } + else if (T == android_content_Context) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_Context', {'__this__': this}); + return result; + } + else if (T == android_content_Intent) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_Intent', {'__this__': this}); + return result; + } + else if (T == android_content_ContentProvider) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_ContentProvider', {'__this__': this}); + return result; + } + else if (T == android_app_Application) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Application', {'__this__': this}); + return result; + } + else if (T == android_app_Notification) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Notification', {'__this__': this}); + return result; + } + else if (T == android_app_Activity) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Activity', {'__this__': this}); + return result; + } + else if (T == android_app_PendingIntent) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_PendingIntent', {'__this__': this}); + return result; + } + else if (T == android_os_Bundle) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_os_Bundle', {'__this__': this}); + return result; + } + else if (T == android_os_Binder) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_os_Binder', {'__this__': this}); + return result; + } + else if (T == android_view_View) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_View', {'__this__': this}); + return result; + } + else if (T == android_view_SurfaceView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_SurfaceView', {'__this__': this}); + return result; + } + else if (T == android_view_ViewGroup) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_ViewGroup', {'__this__': this}); + return result; + } + else if (T == android_graphics_Point) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_Point', {'__this__': this}); + return result; + } + else if (T == android_graphics_PointF) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_PointF', {'__this__': this}); + return result; + } + else if (T == android_graphics_Bitmap) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_Bitmap', {'__this__': this}); + return result; + } + else if (T == android_widget_ImageView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_ImageView', {'__this__': this}); + return result; + } + else if (T == java_io_File) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfjava_io_File', {'__this__': this}); + return result; + } + else if (T == android_location_Location) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_location_Location', {'__this__': this}); + return result; + } + else if (T == android_view_MotionEvent) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_MotionEvent', {'__this__': this}); + return result; + } + else if (T == android_graphics_drawable_Drawable) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_drawable_Drawable', {'__this__': this}); + return result; + } + else if (T == android_widget_FrameLayout) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_FrameLayout', {'__this__': this}); + return result; + } + else if (T == android_widget_TextView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_TextView', {'__this__': this}); + return result; + } + else if (T == android_widget_LinearLayout) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_LinearLayout', {'__this__': this}); + return result; + } + else if (T == android_widget_RelativeLayout) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_RelativeLayout', {'__this__': this}); + return result; + } + else if (T == android_util_Pair) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_util_Pair', {'__this__': this}); + return result; + } + } + + // type cast + T as__() { + final typeName = T.toString(); + // jsonable 直接造型 返回 + if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map)$').hasMatch(typeName)) { + return this as T; + } + // 如果是Ref类的cast, 那么取其refId, 如果本身是refId, 那么直接使用(int) + else if (T == com_tencent_rtmp_TXLog) { + return (com_tencent_rtmp_TXLog()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_ui_TXDashBoard) { + return (com_tencent_rtmp_ui_TXDashBoard()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_ui_TXCloudVideoView) { + return (com_tencent_rtmp_ui_TXCloudVideoView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_ui_TXLogView) { + return (com_tencent_rtmp_ui_TXLogView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLivePlayer) { + return (com_tencent_rtmp_TXLivePlayer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity) { + return (com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_video_TXScreenCapture) { + return (com_tencent_rtmp_video_TXScreenCapture()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLivePusher) { + return (com_tencent_rtmp_TXLivePusher()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLiveBase) { + return (com_tencent_rtmp_TXLiveBase()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXPlayerAuthBuilder) { + return (com_tencent_rtmp_TXPlayerAuthBuilder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadMediaInfo) { + return (com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadDataSource) { + return (com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_downloader_TXVodDownloadManager) { + return (com_tencent_rtmp_downloader_TXVodDownloadManager()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLiveConstants) { + return (com_tencent_rtmp_TXLiveConstants()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLivePushConfig) { + return (com_tencent_rtmp_TXLivePushConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXBitrateItem) { + return (com_tencent_rtmp_TXBitrateItem()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXLivePlayConfig) { + return (com_tencent_rtmp_TXLivePlayConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXVodPlayConfig) { + return (com_tencent_rtmp_TXVodPlayConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_TXImageSprite) { + return (com_tencent_rtmp_TXImageSprite()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList) { + return (com_tencent_rtmp_sharp_jni_TraeAudioCodecList()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_MediaCodecDecoder) { + return (com_tencent_rtmp_sharp_jni_MediaCodecDecoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSession) { + return (com_tencent_rtmp_sharp_jni_TraeAudioSession()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost) { + return (com_tencent_rtmp_sharp_jni_TraeAudioSessionHost()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo) { + return (com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioDecoder) { + return (com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_RingBuffer) { + return (com_tencent_rtmp_sharp_jni_RingBuffer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_QLog) { + return (com_tencent_rtmp_sharp_jni_QLog()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioDeviceInterface) { + return (com_tencent_rtmp_sharp_jni_AudioDeviceInterface()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeMediaPlayer) { + return (com_tencent_rtmp_sharp_jni_TraeMediaPlayer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_AudioSessionDuplicate) { + return (com_tencent_rtmp_sharp_jni_AudioSessionDuplicate()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_MediaCodecEncoder) { + return (com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo) { + return (com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == com_tencent_rtmp_sharp_jni_VivoKTVHelper) { + return (com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_content_Context) { + return (android_content_Context()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_content_Intent) { + return (android_content_Intent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_content_ContentProvider) { + return (android_content_ContentProvider()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_app_Application) { + return (android_app_Application()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_app_Notification) { + return (android_app_Notification()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_app_Activity) { + return (android_app_Activity()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_app_PendingIntent) { + return (android_app_PendingIntent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_os_Bundle) { + return (android_os_Bundle()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_os_Binder) { + return (android_os_Binder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_view_View) { + return (android_view_View()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_view_SurfaceView) { + return (android_view_SurfaceView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_view_ViewGroup) { + return (android_view_ViewGroup()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_graphics_Point) { + return (android_graphics_Point()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_graphics_PointF) { + return (android_graphics_PointF()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_graphics_Bitmap) { + return (android_graphics_Bitmap()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_widget_ImageView) { + return (android_widget_ImageView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == java_io_File) { + return (java_io_File()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_location_Location) { + return (android_location_Location()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_view_MotionEvent) { + return (android_view_MotionEvent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_graphics_drawable_Drawable) { + return (android_graphics_drawable_Drawable()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_widget_FrameLayout) { + return (android_widget_FrameLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_widget_TextView) { + return (android_widget_TextView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_widget_LinearLayout) { + return (android_widget_LinearLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_widget_RelativeLayout) { + return (android_widget_RelativeLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == android_util_Pair) { + return (android_util_Pair()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + } +} \ No newline at end of file diff --git a/lib/src/facade/cloud_video.widget.dart b/lib/src/facade/cloud_video.widget.dart new file mode 100644 index 0000000..95fe781 --- /dev/null +++ b/lib/src/facade/cloud_video.widget.dart @@ -0,0 +1,57 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:foundation_fluttify/foundation_fluttify.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; + +import 'cloud_video_controller.dart'; + +/// controller只能是com_tencent_rtmp_ui_TXCloudVideoView或UIView类型 +typedef Future OnCloudVideoCreated(CloudVideoController controller); + +/// 推流/拉流预览播放器 +class CloudVideo extends StatefulWidget { + const CloudVideo({ + Key key, + this.onCloudVideoCreated, + }) : super(key: key); + + /// widget创建完成回调 + final OnCloudVideoCreated onCloudVideoCreated; + + @override + _CloudVideoState createState() => _CloudVideoState(); +} + +class _CloudVideoState extends State { + CloudVideoController _controller; + + @override + Widget build(BuildContext context) { + if (Platform.isAndroid) { + return com_tencent_rtmp_ui_TXCloudVideoView_Android( + onDispose: _controller?.dispose, + onViewCreated: (controller) async { + _controller = CloudVideoController.android(controller); + if (widget.onCloudVideoCreated != null) { + widget.onCloudVideoCreated(_controller); + } + }, + ); + } else if (Platform.isIOS) { + return UIViewWidget( + onDispose: _controller?.dispose, + onUIViewCreated: (controller) async { + _controller = CloudVideoController.ios(controller); + if (widget.onCloudVideoCreated != null) { + widget.onCloudVideoCreated(_controller); + } + }, + ); + } else { + return Center( + child: Text('未实现的平台'), + ); + } + } +} diff --git a/lib/src/facade/cloud_video_controller.dart b/lib/src/facade/cloud_video_controller.dart new file mode 100644 index 0000000..d5bb7ef --- /dev/null +++ b/lib/src/facade/cloud_video_controller.dart @@ -0,0 +1,52 @@ +import 'dart:io'; + +import 'package:flutter/widgets.dart'; +import 'package:foundation_fluttify/foundation_fluttify.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; + +/// 预览控制器 +class CloudVideoController with WidgetsBindingObserver { + CloudVideoController.android(this._androidController) + : _iosController = null { + WidgetsBinding.instance.addObserver(this); // 注册监听器 + } + + CloudVideoController.ios(this._iosController) : _androidController = null { + WidgetsBinding.instance.addObserver(this); // 注册监听器 + } + + final com_tencent_rtmp_ui_TXCloudVideoView _androidController; + final UIView _iosController; + + /// 播放器view + /// + /// 类型为[com_tencent_rtmp_ui_TXCloudVideoView]或[UIView] + dynamic get playerView { + if (Platform.isAndroid) + return _androidController; + else if (Platform.isIOS) + return _iosController; + else + throw '不支持的平台'; + } + + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + switch (state) { + case AppLifecycleState.resumed: + _androidController.onResume(); + break; + case AppLifecycleState.paused: + _androidController.onPause(); + break; + default: + break; + } + } + + Future dispose() async { + await _androidController?.onPause(); + await _androidController?.onDestroy(); + WidgetsBinding.instance.removeObserver(this); + } +} diff --git a/lib/src/facade/enums.dart b/lib/src/facade/enums.dart new file mode 100644 index 0000000..c2db40a --- /dev/null +++ b/lib/src/facade/enums.dart @@ -0,0 +1,156 @@ +import 'package:flutter/material.dart'; + +/// 画质 +enum Quality { + /// 标清 360*640 + STANDARD, + + /// 高清 540*960 + HIGH, + + /// 超清 720*1280 + SUPER_HIGH, + + /// 连麦:主 进入连麦状态后, 大主播使用 + LINKMIC_MAIN, + + /// 连麦:副 进入连麦状态后, 副主播使用 + LINKMIC_SUB, +} + +/// 美颜风格 +enum BeautyFilter { + /// 光滑风格,算法更加注重皮肤的光滑程度,适合秀场直播类场景下使用 + SMOOTH, + + /// 自然风格,算法更加注重保留皮肤细节,适合对真实性要求更高的主播 + NATURE, + + /// 朦胧风格,算法会更加侧重画面去噪,使整体画面风格偏柔和 + HAZY, +} + +/// 色彩滤镜 +class ColorFilter { + ColorFilter._(); + + /// 白兰 + static const BAILAN = + AssetImage('assets/filter_bailan.png', package: 'tencent_live_fluttify'); + + /// 标准 + static const BIAOZHUN = AssetImage('assets/filter_biaozhun.png', + package: 'tencent_live_fluttify'); + + /// 超脱 + static const CHAOTUO = + AssetImage('assets/filter_chaotuo.png', package: 'tencent_live_fluttify'); + + /// 纯真 + static const CHUNZHEN = AssetImage('assets/filter_chunzhen.png', + package: 'tencent_live_fluttify'); + + /// 粉嫩 + static const FENNEN = + AssetImage('assets/filter_fennen.png', package: 'tencent_live_fluttify'); + + /// 怀旧 + static const HUAIJIU = + AssetImage('assets/filter_huaijiu.png', package: 'tencent_live_fluttify'); + + /// 蓝调 + static const LANDIAO = + AssetImage('assets/filter_landiao.png', package: 'tencent_live_fluttify'); + + /// 浪漫 + static const LANGMAN = + AssetImage('assets/filter_langman.png', package: 'tencent_live_fluttify'); + + /// 清凉 + static const QINGLIANG = AssetImage('assets/filter_qingliang.png', + package: 'tencent_live_fluttify'); + + /// 清新 + static const QINGXIN = + AssetImage('assets/filter_qingxin.png', package: 'tencent_live_fluttify'); + + /// 日系 + static const RIXI = + AssetImage('assets/filter_rixi.png', package: 'tencent_live_fluttify'); + + /// 唯美 + static const WEIMEI = + AssetImage('assets/filter_weimei.png', package: 'tencent_live_fluttify'); + + /// 美白 + static const WHITE = + AssetImage('assets/filter_white.png', package: 'tencent_live_fluttify'); + + /// 香粉 + static const XIANGFEN = AssetImage('assets/filter_xiangfen.png', + package: 'tencent_live_fluttify'); + + /// 樱红 + static const YINGHONG = AssetImage('assets/filter_yinghong.png', + package: 'tencent_live_fluttify'); + + /// 元气 + static const YUANQI = + AssetImage('assets/filter_yuanqi.png', package: 'tencent_live_fluttify'); + + /// 云裳 + static const YUNSHANG = AssetImage('assets/filter_yunshang.png', + package: 'tencent_live_fluttify'); +} + +/// 混响效果 +enum ReverbType { + REVERB_TYPE_0, + REVERB_TYPE_1, + REVERB_TYPE_2, + REVERB_TYPE_3, + REVERB_TYPE_4, + REVERB_TYPE_5, + REVERB_TYPE_6, + REVERB_TYPE_7 +} + +/// 混响效果 +enum VoiceChangerType { + VOICECHANGER_TYPE_0, + VOICECHANGER_TYPE_1, + VOICECHANGER_TYPE_2, + VOICECHANGER_TYPE_3, + VOICECHANGER_TYPE_4, + VOICECHANGER_TYPE_5, + VOICECHANGER_TYPE_6, + VOICECHANGER_TYPE_7, + VOICECHANGER_TYPE_8, + VOICECHANGER_TYPE_9, + VOICECHANGER_TYPE_10, + VOICECHANGER_TYPE_11 +} + +/// 播放类型 +enum PlayType { + /// RTMP 直播地址 + RTMP, + + /// FLV 直播地址 + FLV, + + /// 低延迟链路地址(仅适合于连麦场景) + RTMP_ACC, + + /// HLS(m3u8)播放地址 + HLS, +} + +/// 渲染模式 +enum RenderMode { + /// 将图像等比例铺满整个屏幕,多余部分裁剪掉,此模式下画面不会留黑边,但可能因为部分区域被裁剪而显示不全。 + FULL_SCREEN, + + /// 将图像等比例缩放,适配最长边,缩放后的宽和高都不会超过显示区域,居中显示,画面可能会留有黑边。 + ADJUST_RESOLUTION, +} diff --git a/lib/src/facade/live_player.dart b/lib/src/facade/live_player.dart new file mode 100644 index 0000000..ab07477 --- /dev/null +++ b/lib/src/facade/live_player.dart @@ -0,0 +1,282 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:foundation_fluttify/foundation_fluttify.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; + +import 'cloud_video_controller.dart'; +import 'enums.dart'; + +part 'player_delegates.dart'; + +/// 拉流控制器 +class LivePlayer extends _Holder with _Community, _Pro { + LivePlayer._(); + + /// 创建一个播放器 + /// + /// 直播和点播 + /// - 直播(LIVE)的视频源是主播实时推送的。因此,主播停止推送后,播放端的画面也会随即停止,而且由于是实时直播,所以播放器在播直播 URL 的时候是没有进度条的。 + /// - 点播(VOD)的视频源是云端的一个视频文件,只要未被从云端移除,视频就可以随时播放, 播放中您可以通过进度条控制播放位置,腾讯视频和优酷、土豆等视频网站上的视频观看就是典型的点播场景。 + /// + /// 协议的支持 + /// - FLV 优点: 成熟度高、高并发无压力 缺点: 需集成 SDK 才能播放 播放延迟: 2s - 3s + /// - RTMP 优点: 优质线路下理论延迟最低 缺点: 高并发情况下表现不佳 播放延迟: 1s - 3s + /// - HLS(m3u8) 优点: 手机浏览器支持度高 缺点: 延迟非常高 播放延迟: 10s - 30s + static Future create() async { + return platform( + android: (pool) async { + final instance = LivePlayer._(); + + final context = await android_app_Application.get(); + instance._androidPlayer = await com_tencent_rtmp_TXLivePlayer + .create__android_content_Context(context); + + return instance; + }, + ios: (pool) async { + final instance = LivePlayer._(); + + instance._iosPlayer = await TXLivePlayer.create__(); + + return instance; + }, + ); + } +} + +mixin _Community on _Holder { + /// 设置播放界面 + Future setPlayerView(CloudVideoController playerView) async { + return platform( + android: (pool) async { + await _androidPlayer.setPlayerView(playerView.playerView); + }, + ios: (pool) async { + // 其首个参数 frame 在 1.5.2 版本后已经被废弃 + final rect = await CGRect.create(0, 0, 0, 0); + await _iosPlayer.setupVideoWidget_containView_insertIndex( + rect, + playerView.playerView, + 0, + ); + }, + ); + } + + /// 开始播放 + Future startPlay(String playUrl, {@required PlayType type}) async { + final httpsUrl = Uri.parse(playUrl).scheme == 'http' + ? playUrl.replaceFirst('http', 'https') + : playUrl; + return platform( + android: (pool) async { + int _type; + switch (type) { + case PlayType.RTMP: + _type = com_tencent_rtmp_TXLivePlayer.PLAY_TYPE_LIVE_RTMP; + break; + case PlayType.FLV: + _type = com_tencent_rtmp_TXLivePlayer.PLAY_TYPE_LIVE_FLV; + break; + case PlayType.RTMP_ACC: + _type = com_tencent_rtmp_TXLivePlayer.PLAY_TYPE_LIVE_RTMP_ACC; + break; + case PlayType.HLS: + _type = com_tencent_rtmp_TXLivePlayer.PLAY_TYPE_VOD_HLS; + break; + } + final result = await _androidPlayer.startPlay(httpsUrl, _type); + debugPrint('result: $result'); + }, + ios: (pool) async { + TX_Enum_PlayType _type; + switch (type) { + case PlayType.RTMP: + _type = TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP; + break; + case PlayType.FLV: + _type = TX_Enum_PlayType.PLAY_TYPE_LIVE_FLV; + break; + case PlayType.RTMP_ACC: + _type = TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP_ACC; + break; + case PlayType.HLS: + _type = TX_Enum_PlayType.PLAY_TYPE_VOD_HLS; + break; + } + final result = await _iosPlayer.startPlay_type(httpsUrl, _type); + debugPrint('result: $result'); + }, + ); + } + + /// 恢复播放 + Future resumePlay() async { + return platform( + android: (pool) => _androidPlayer.resume(), + ios: (pool) => _iosPlayer.resume(), + ); + } + + /// 恢复直播 + Future resumeLive() async { + return platform( + android: (pool) => _androidPlayer.resumeLive(), + ios: (pool) => _iosPlayer.resumeLive(), + ); + } + + /// 是否在播放中 + Future isPlaying() async { + return platform( + android: (pool) => _androidPlayer.isPlaying(), + ios: (pool) => _iosPlayer.isPlaying(), + ); + } + + /// 暂停播放 + Future pausePlay() async { + return platform( + android: (pool) => _androidPlayer.pause(), + ios: (pool) => _iosPlayer.pause(), + ); + } + + /// 停止播放 + Future stopPlay() async { + return platform( + android: (pool) => _androidPlayer.stopPlay(true), + ios: (pool) => _iosPlayer.stopPlay(), + ); + } + + /// 事件处理 + Future setOnEventListener({ + VoidCallback onWarningVideoDecodeFail, + VoidCallback onWarningAudioDecodeFail, + VoidCallback onWarningReconnect, + VoidCallback onWarningRecvDataLag, + VoidCallback onWarningVideoPlayLag, + VoidCallback onWarningHwAccelerationFail, + VoidCallback onWarningVideoDiscontinuity, + VoidCallback onWarningDNSFail, + VoidCallback onWarningServerConnFail, + VoidCallback onWarningShakeFail, + VoidCallback onEventRcvFirstIFrame, + VoidCallback onEventPlayBegin, + VoidCallback onEventPlayEnd, + }) async { + return platform( + android: (pool) async { + await _androidPlayer.setPlayListener( + _androidEventDelegate + .._onWarningVideoDecodeFail = onWarningVideoDecodeFail + .._onWarningAudioDecodeFail = onWarningAudioDecodeFail + .._onWarningReconnect = onWarningReconnect + .._onWarningRecvDataLag = onWarningRecvDataLag + .._onWarningVideoPlayLag = onWarningVideoPlayLag + .._onWarningHwAccelerationFail = onWarningHwAccelerationFail + .._onWarningVideoDiscontinuity = onWarningVideoDiscontinuity + .._onWarningDNSFail = onWarningDNSFail + .._onWarningServerConnFail = onWarningServerConnFail + .._onWarningShakeFail = onWarningShakeFail + .._onEventRcvFirstIFrame = onEventRcvFirstIFrame + .._onEventPlayBegin = onEventPlayBegin + .._onEventPlayEnd = onEventPlayEnd, + ); + }, + ios: (pool) async { + await _iosPlayer.set_delegate( + _iosEventDelegate + .._onWarningVideoDecodeFail = onWarningVideoDecodeFail + .._onWarningAudioDecodeFail = onWarningAudioDecodeFail + .._onWarningReconnect = onWarningReconnect + .._onWarningRecvDataLag = onWarningRecvDataLag + .._onWarningVideoPlayLag = onWarningVideoPlayLag + .._onWarningHwAccelerationFail = onWarningHwAccelerationFail + .._onWarningVideoDiscontinuity = onWarningVideoDiscontinuity + .._onWarningDNSFail = onWarningDNSFail + .._onWarningServerConnFail = onWarningServerConnFail + .._onWarningShakeFail = onWarningShakeFail + .._onEventRcvFirstIFrame = onEventRcvFirstIFrame + .._onEventPlayBegin = onEventPlayBegin + .._onEventPlayEnd = onEventPlayEnd, + ); + }, + ); + } + + Future dispose() async { + return platform( + android: (pool) async { + await _androidPlayer.stopPlay(true); + await _androidPlayer.release__(); + }, + ios: (pool) async { + await _iosPlayer.removeVideoWidget(); + await _iosPlayer.release__(); + }, + ); + } +} + +mixin _Pro on _Holder { + /// 清晰度无缝切换 + /// + /// 日常使用中,网络情况在不断发生变化。在网络较差的情况下,最好适度降低画质,以减少卡顿;反之,网速比较好,可以提高观看画质。 + /// 传统切流方式一般是重新播放,会导致切换前后画面衔接不上、黑屏、卡顿等问题。使用无缝切换方案,在不中断直播的情况下,能直接切到另条流上。 + /// 清晰度切换在直播开始后,任意时间都可以调用。 + Future switchStream(String newStream) async { + return platform( + android: (pool) => _androidPlayer.switchStream(newStream), + ios: (pool) => _iosPlayer.switchStream(newStream), + ); + } + + /// 画面调整 + /// + /// 铺满or适应 + Future setRenderMode(RenderMode renderMode) async { + return platform( + android: (pool) async { + int _renderMode; + switch (renderMode) { + case RenderMode.FULL_SCREEN: + _renderMode = + com_tencent_rtmp_TXLiveConstants.RENDER_MODE_FULL_FILL_SCREEN; + break; + case RenderMode.ADJUST_RESOLUTION: + _renderMode = + com_tencent_rtmp_TXLiveConstants.RENDER_MODE_ADJUST_RESOLUTION; + break; + } + await _androidPlayer.setRenderMode(_renderMode); + }, + ios: (pool) async { + TX_Enum_Type_RenderMode _renderMode; + switch (renderMode) { + case RenderMode.FULL_SCREEN: + _renderMode = TX_Enum_Type_RenderMode.RENDER_MODE_FILL_SCREEN; + break; + case RenderMode.ADJUST_RESOLUTION: + _renderMode = TX_Enum_Type_RenderMode.RENDER_MODE_FILL_EDGE; + break; + } + await _iosPlayer.setRenderMode(_renderMode); + }, + ); + } +} + +class _Holder { + com_tencent_rtmp_TXLivePlayer _androidPlayer; + TXLivePlayer _iosPlayer; + + com_tencent_rtmp_TXLivePlayConfig _androidConfig; + TXLivePlayConfig _iOSConfig; + + final _androidEventDelegate = _AndroidEventDelegate(); + final _iosEventDelegate = _IOSEventDelegate(); +} diff --git a/lib/src/facade/live_pusher.dart b/lib/src/facade/live_pusher.dart new file mode 100644 index 0000000..451b614 --- /dev/null +++ b/lib/src/facade/live_pusher.dart @@ -0,0 +1,777 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +import 'dart:convert'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:foundation_fluttify/foundation_fluttify.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; + +import 'cloud_video_controller.dart'; +import 'enums.dart'; + +part 'pusher_delegates.dart'; + +/// 推流控制器 +class LivePusher extends _Holder with _Community, _Pro { + LivePusher._(); + + static Future create({bool enableTouchFocus}) async { + return platform( + android: (pool) async { + final instance = LivePusher._(); + + instance._androidConfig = + await com_tencent_rtmp_TXLivePushConfig.create__(); + if (enableTouchFocus != null) { + await instance._androidConfig.setTouchFocus(enableTouchFocus); + } + + final context = await android_app_Application.get(); + instance._androidPusher = await com_tencent_rtmp_TXLivePusher + .create__android_content_Context(context); + + await instance._androidPusher.setConfig(instance._androidConfig); + + return instance; + }, + ios: (pool) async { + final instance = LivePusher._(); + + instance._iOSConfig = await TXLivePushConfig.create__(); + if (enableTouchFocus != null) { + await instance._iOSConfig.set_touchFocus(enableTouchFocus); + } + + instance._iosPusher = await TXLivePush.create__(); + + await instance._iosPusher.initWithConfig(instance._iOSConfig); + return instance; + }, + ); + } + + /// 事件处理 + /// + /// [onWaringNetBusy]弱网提醒 + Future setOnEventListener({ + VoidCallback onWaringNetBusy, + VoidCallback onWaringReconnect, + VoidCallback onWaringHardwareAccelerationFail, + VoidCallback onWaringDNSFail, + VoidCallback onWaringServerConnFail, + VoidCallback onWaringShakeFail, + VoidCallback onWaringServerDisconnect, + VoidCallback onEventConnectSucc, + VoidCallback onEventPushBegin, + VoidCallback onEventOpenCameraSuccess, + VoidCallback onErrorOpenCameraFail, + VoidCallback onErrorOpenMicFail, + VoidCallback onErrorVideoEncodeFail, + VoidCallback onErrorAudioEncodeFail, + VoidCallback onErrorUnsupportedResolution, + VoidCallback onErrorUnsupportedSampleRate, + VoidCallback onErrorNetDisconnect, + }) async { + return platform( + android: (pool) async { + _androidPusher.setPushListener( + _androidEventDelegate + .._onWaringNetBusy = onWaringNetBusy + .._onWaringReconnect = onWaringReconnect + .._onWaringHardwareAccelerationFail = + onWaringHardwareAccelerationFail + .._onWaringDNSFail = onWaringDNSFail + .._onWaringServerConnFail = onWaringServerConnFail + .._onWaringShakeFail = onWaringShakeFail + .._onWaringServerDisconnect = onWaringServerDisconnect + .._onEventConnectSucc = onEventConnectSucc + .._onEventPushBegin = onEventPushBegin + .._onEventOpenCameraSuccess = onEventOpenCameraSuccess + .._onErrorOpenCameraFail = onErrorOpenCameraFail + .._onErrorOpenMicFail = onErrorOpenMicFail + .._onErrorVideoEncodeFail = onErrorVideoEncodeFail + .._onErrorAudioEncodeFail = onErrorAudioEncodeFail + .._onErrorUnsupportedResolution = onErrorUnsupportedResolution + .._onErrorUnsupportedSampleRate = onErrorUnsupportedSampleRate + .._onErrorNetDisconnect = onErrorNetDisconnect, + ); + }, + ios: (pool) async { + _iosPusher.set_delegate( + _iosEventDelegate + .._onWaringNetBusy = onWaringNetBusy + .._onWaringReconnect = onWaringReconnect + .._onWaringHardwareAccelerationFail = + onWaringHardwareAccelerationFail + .._onWaringDNSFail = onWaringDNSFail + .._onWaringServerConnFail = onWaringServerConnFail + .._onWaringShakeFail = onWaringShakeFail + .._onWaringServerDisconnect = onWaringServerDisconnect + .._onEventConnectSucc = onEventConnectSucc + .._onEventPushBegin = onEventPushBegin + .._onEventOpenCameraSuccess = onEventOpenCameraSuccess + .._onErrorOpenCameraFail = onErrorOpenCameraFail + .._onErrorOpenMicFail = onErrorOpenMicFail + .._onErrorVideoEncodeFail = onErrorVideoEncodeFail + .._onErrorAudioEncodeFail = onErrorAudioEncodeFail + .._onErrorUnsupportedResolution = onErrorUnsupportedResolution + .._onErrorUnsupportedSampleRate = onErrorUnsupportedSampleRate + .._onErrorNetDisconnect = onErrorNetDisconnect, + ); + }, + ); + } +} + +mixin _Community on _Holder { + /// 开始预览 + Future startPreview(CloudVideoController preview) async { + return platform( + android: (pool) async { + await _androidPusher.startCameraPreview(preview.playerView); + }, + ios: (pool) async { + await _iosPusher.startPreview(preview.playerView); + }, + ); + } + + /// 开始推流 + Future startPush(String pushUrl) async { + return platform( + android: (pool) async { + final result = await _androidPusher.startPusher(pushUrl); + debugPrint('result: $result'); + }, + ios: (pool) async { + final result = await _iosPusher.startPush(pushUrl); + debugPrint('result: $result'); + }, + ); + } + + /// 暂停推流 + Future pausePush() async { + return platform( + android: (pool) => _androidPusher.pausePusher(), + ios: (pool) => _iosPusher.pausePush(), + ); + } + + /// 恢复推流 + Future resumePush() async { + return platform( + android: (pool) => _androidPusher.resumePusher(), + ios: (pool) => _iosPusher.resumePush(), + ); + } + + /// 停止预览 + Future stopPreview() async { + return platform( + android: (pool) => _androidPusher.stopCameraPreview(true), + ios: (pool) => _iosPusher.stopPreview(), + ); + } + + /// 停止推流 + Future stopPush() async { + return platform( + android: (pool) => _androidPusher.stopPusher(), + ios: (pool) => _iosPusher.stopPush(), + ); + } + + /// 切换前后摄像头 + Future switchCamera() async { + return platform( + android: (pool) => _androidPusher.switchCamera(), + ios: (pool) => _iosPusher.switchCamera(), + ); + } + + /// 打开/关闭闪光灯 + /// + /// 仅在当前是后置摄像头时有效 + Future turnFlashLight(bool on) async { + return platform( + android: (pool) => _androidPusher.turnOnFlashLight(on), + ios: (pool) => _iosPusher.toggleTorch(on), + ); + } + + /// 播放背景音乐 + /// + /// 调用 TXLivePush 中的 BGM 相关接口可以实现背景混音功能。背景混音是指主播在直播时可以选取一首歌曲伴唱, + /// 歌曲会在主播的手机端播放出来,同时也会被混合到音视频流中被观众端听到,所以被称为“混音” + Future playBGM(String path) async { + return platform( + android: (pool) => _androidPusher.playBGM(path), + ios: (pool) => _iosPusher.playBGM(path), + ); + } + + /// 停止背景音乐 + Future stopBGM() async { + return platform( + android: (pool) => _androidPusher.stopBGM(), + ios: (pool) => _iosPusher.stopBGM(), + ); + } + + /// 暂停背景音乐 + Future pauseBGM() async { + return platform( + android: (pool) => _androidPusher.pauseBGM(), + ios: (pool) => _iosPusher.pauseBGM(), + ); + } + + /// 恢复背景音乐 + Future resumeBGM() async { + return platform( + android: (pool) => _androidPusher.resumeBGM(), + ios: (pool) => _iosPusher.resumeBGM(), + ); + } + + /// 麦克风音量大小 + Future setMicVolume(double volume) async { + return platform( + android: (pool) => _androidPusher.setMicVolume(volume), + ios: (pool) => _iosPusher.setMicVolume(volume), + ); + } + + /// 背景音乐音量大小 + Future setBGMVolume(double volume) async { + return platform( + android: (pool) => _androidPusher.setBGMVolume(volume), + ios: (pool) => _iosPusher.setBGMVolume(volume), + ); + } + + /// 背景音乐音调高低 + Future setBgmPitch(double level) async { + return platform( + android: (pool) => _androidPusher.setBGMPitch(level), + ios: (pool) => _iosPusher.setBGMPitch(level), + ); + } + + Future dispose() async { + return platform( + android: (pool) async { + await _androidPusher.release__(); + }, + ios: (pool) async { + await _iosPusher.release__(); + }, + ); + } +} + +mixin _Pro on _Holder { + /// 设置观众看到的画面清晰度 + /// + /// [quality]画面清晰度, [adjustBitrate]是否根据网络状态自动调整画质 + Future setVideoQuality( + Quality quality, { + bool adjustBitrate = true, + }) async { + return platform( + android: (pool) async { + int androidQuality = + com_tencent_rtmp_TXLiveConstants.VIDEO_QUALITY_HIGH_DEFINITION; + switch (quality) { + case Quality.STANDARD: + androidQuality = com_tencent_rtmp_TXLiveConstants + .VIDEO_QUALITY_STANDARD_DEFINITION; + break; + case Quality.HIGH: + androidQuality = + com_tencent_rtmp_TXLiveConstants.VIDEO_QUALITY_HIGH_DEFINITION; + break; + case Quality.SUPER_HIGH: + androidQuality = + com_tencent_rtmp_TXLiveConstants.VIDEO_QUALITY_SUPER_DEFINITION; + break; + case Quality.LINKMIC_MAIN: + androidQuality = com_tencent_rtmp_TXLiveConstants + .VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER; + break; + case Quality.LINKMIC_SUB: + androidQuality = com_tencent_rtmp_TXLiveConstants + .VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER; + break; + } + await _androidPusher.setVideoQuality( + androidQuality, + adjustBitrate, + false, + ); + }, + ios: (pool) async { + TX_Enum_Type_VideoQuality iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION; + switch (quality) { + case Quality.STANDARD: + iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_STANDARD_DEFINITION; + break; + case Quality.HIGH: + iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION; + break; + case Quality.SUPER_HIGH: + iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_SUPER_DEFINITION; + break; + case Quality.LINKMIC_MAIN: + iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER; + break; + case Quality.LINKMIC_SUB: + iosQuality = + TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER; + break; + } + await _iosPusher.setVideoQuality_adjustBitrate_adjustResolution( + iosQuality, + adjustBitrate, + false, + ); + }, + ); + } + + /// 设置美颜效果 + /// + /// [filter] 美颜算法 + /// [beautyLevel] 磨皮等级: 取值为 0-9.取值为 0 时代表关闭美颜效果.默认值: 0,即关闭美颜效果 + /// [whiteningLevel] 美白等级: 取值为 0-9.取值为 0 时代表关闭美白效果.默认值: 0,即关闭美白效果. + /// [ruddyLevel] 红润等级: 取值为 0-9.取值为 0 时代表关闭美白效果.默认值: 0,即关闭美白效果. + Future setBeautyFilter( + BeautyFilter filter, { + int beautyLevel = 5, + int whiteningLevel = 5, + int ruddyLevel = 5, + }) async { + assert(filter != null); + return platform( + android: (pool) async { + int androidFilter = + com_tencent_rtmp_TXLiveConstants.BEAUTY_STYLE_SMOOTH; + switch (filter) { + case BeautyFilter.SMOOTH: + androidFilter = + com_tencent_rtmp_TXLiveConstants.BEAUTY_STYLE_SMOOTH; + break; + case BeautyFilter.NATURE: + androidFilter = + com_tencent_rtmp_TXLiveConstants.BEAUTY_STYLE_NATURE; + break; + case BeautyFilter.HAZY: + androidFilter = com_tencent_rtmp_TXLiveConstants.BEAUTY_STYLE_HAZY; + break; + } + await _androidPusher.setBeautyFilter( + androidFilter, + beautyLevel, + whiteningLevel, + ruddyLevel, + ); + }, + ios: (pool) async { + TX_Enum_Type_BeautyStyle iosFilter = + TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_SMOOTH; + switch (filter) { + case BeautyFilter.SMOOTH: + iosFilter = TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_SMOOTH; + break; + case BeautyFilter.NATURE: + iosFilter = TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_NATURE; + break; + case BeautyFilter.HAZY: + iosFilter = TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_PITU; + break; + } + await _iosPusher + .setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel( + iosFilter, + beautyLevel.toDouble(), + whiteningLevel.toDouble(), + ruddyLevel.toDouble(), + ); + }, + ); + } + + /// 色彩滤镜效果 + /// + /// [specialRatio] 设定滤镜的浓度,设置的浓度越高,滤镜效果也就越明显 + Future setFilter( + AssetImage filterProvider, + ImageConfiguration imageConfiguration, { + double specialRatio = 0.5, + }) async { + final imageData = await filterProvider.toImageData(imageConfiguration); + return platform( + android: (pool) async { + final bitmap = await android_graphics_Bitmap.create(imageData); + await _androidPusher.setFilter(bitmap); + await _androidPusher.setSpecialRatio(specialRatio); + + pool.add(bitmap); + }, + ios: (pool) async { + final bitmap = await UIImage.create(imageData); + await _iosPusher.setFilter(bitmap); + await _iosPusher.setSpecialRatio(specialRatio); + + pool.add(bitmap); + }, + ); + } + + /// 调整摄像头的焦距 + /// + /// 可以通过 TXLivePusher 的getMaxZoom()函数获取最大焦距,setZoom的取值范围即为 1 - 最大焦距 + Future setZoom(int zoomLevel) async { + return platform( + android: (pool) => _androidPusher.setZoom(zoomLevel), + ios: (pool) => _iosPusher.setZoom(zoomLevel.toDouble()), + ); + } + + /// 设置曝光比例,取值范围从-1到1 + /// + /// 负数表示调低曝光,-1是最小值,对应getMinExposureCompensation。正数表示调高曝光,1是最大值,对getMaxExposureCompensation。0表示不调整曝光,默认值为0 + Future setExposureCompensation(int zoomLevel) async { + return platform( + android: (pool) => _androidPusher.setZoom(zoomLevel), + ios: (pool) => _iosPusher.setZoom(zoomLevel.toDouble()), + ); + } + + /// 观众端的镜像效果 + /// + /// 调用 TXLivePusher 中的setMirror接口可以设置观众端的镜像效果。之所以说是观众端的镜像效果, + /// 是因为当主播在使用前置摄像头直播时,自己看到的画面会被 SDK 默认反转,这时主播的体验跟自己照镜子时的体验是保持一致的。 + /// setMirror所影响的是观众端观看到的画面情况. + Future setMirror(bool mirror) async { + return platform( + android: (pool) => _androidPusher.setMirror(mirror), + ios: (pool) => _iosPusher.setMirror(mirror), + ); + } + + /// 横屏推流 + /// + /// 大多数情况下,主播习惯以“竖屏持握”手机进行直播拍摄,观众端看到的也是竖屏分辨率的画面(例如 540 × 960 这样的分辨率); + /// 有时主播也会“横屏持握”手机,这时观众端期望能看到是横屏分辨率的画面(例如 960 × 540 这样的分辨率) + /// + /// TXLivePusher 默认推出的是竖屏分辨率的视频画面,如果希望推出横屏分辨率的画面,需要: + /// 设置 TXLivePushConfig 中的setHomeOrientation改变观众端看到的视频画面的宽高比方向。 + /// 调用 TXLivePusher 中的setRenderRotation接口改变主播端的视频画面的渲染方向。 + Future setRenderRotation(bool portrait) async { + return platform( + android: (pool) async { + if (portrait) { + await _androidConfig.setHomeOrientation( + com_tencent_rtmp_TXLiveConstants.VIDEO_ANGLE_HOME_DOWN); + await _androidPusher.setConfig(_androidConfig); + await _androidPusher.setRenderRotation(0); + } else { + await _androidConfig.setHomeOrientation( + com_tencent_rtmp_TXLiveConstants.VIDEO_ANGLE_HOME_RIGHT); + await _androidPusher.setConfig(_androidConfig); + // 因为采集旋转了,为了保证本地渲染是正的,则设置渲染角度为90度。 + await _androidPusher.setRenderRotation(90); + } + }, + ios: (pool) async { + if (portrait) { + await _iOSConfig.set_homeOrientation( + TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_DOWN.index); + await _iosPusher.set_config(_iOSConfig); + await _iosPusher.setRenderRotation(0); + } else { + await _iOSConfig.set_homeOrientation( + TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_RIGHT.index); + await _iosPusher.set_config(_iOSConfig); + await _iosPusher.setRenderRotation(90); + } + }, + ); + } + + /// 隐私模式(垫片推流) + /// + /// 有时候主播的一些动作不希望被观众看到,但直播过程中又不能下播,那就可以考虑进入隐私模式。 + /// 在隐私模式下,SDK 可以暂停采集主播手机的摄像头画面以及麦克风声音,并使用一张默认图片作为替代图像进行推流,也就是所谓的“垫片”。 + Future setPauseConfig( + int pauseTime, + int pauseFps, + ImageProvider image, + ImageConfiguration imageConfiguration, + ) async { + final imageData = await image.toImageData(imageConfiguration); + return platform( + android: (pool) async { + final bitmap = await android_graphics_Bitmap.create(imageData); + + await _androidConfig.setPauseImg__int__int(pauseTime, pauseFps); + await _androidConfig.setPauseImg__android_graphics_Bitmap(bitmap); + await _androidConfig.setPauseFlag( + com_tencent_rtmp_TXLiveConstants.PAUSE_FLAG_PAUSE_AUDIO | + com_tencent_rtmp_TXLiveConstants.PAUSE_FLAG_PAUSE_VIDEO, + ); + + await _androidPusher.setConfig(_androidConfig); + + pool.add(bitmap); + }, + ios: (pool) async { + await _iOSConfig.set_pauseTime(pauseTime); + await _iOSConfig.set_pauseFps(pauseFps); + + final bitmap = await UIImage.create(imageData); + await _iOSConfig.set_pauseImg(bitmap); + + await _iosPusher.set_config(_iOSConfig); + + pool.add(bitmap); + }, + ); + } + + /// 设置混音效果 + Future setReverbType(ReverbType type) async { + return platform( + android: (pool) async { + int androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_0; + switch (type) { + case ReverbType.REVERB_TYPE_0: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_0; + break; + case ReverbType.REVERB_TYPE_1: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_1; + break; + case ReverbType.REVERB_TYPE_2: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_2; + break; + case ReverbType.REVERB_TYPE_3: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_3; + break; + case ReverbType.REVERB_TYPE_4: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_4; + break; + case ReverbType.REVERB_TYPE_5: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_5; + break; + case ReverbType.REVERB_TYPE_6: + androidType = com_tencent_rtmp_TXLiveConstants.REVERB_TYPE_6; + break; + case ReverbType.REVERB_TYPE_7: + debugPrint('android端暂无此类型混响效果'); + break; + } + await _androidPusher.setReverb(androidType); + }, + ios: (pool) async { + TXReverbType iosType = TXReverbType.REVERB_TYPE_0; + switch (type) { + case ReverbType.REVERB_TYPE_0: + iosType = TXReverbType.REVERB_TYPE_0; + break; + case ReverbType.REVERB_TYPE_1: + iosType = TXReverbType.REVERB_TYPE_1; + break; + case ReverbType.REVERB_TYPE_2: + iosType = TXReverbType.REVERB_TYPE_2; + break; + case ReverbType.REVERB_TYPE_3: + iosType = TXReverbType.REVERB_TYPE_3; + break; + case ReverbType.REVERB_TYPE_4: + iosType = TXReverbType.REVERB_TYPE_4; + break; + case ReverbType.REVERB_TYPE_5: + iosType = TXReverbType.REVERB_TYPE_5; + break; + case ReverbType.REVERB_TYPE_6: + iosType = TXReverbType.REVERB_TYPE_6; + break; + case ReverbType.REVERB_TYPE_7: + iosType = TXReverbType.REVERB_TYPE_7; + break; + } + await _iosPusher.setReverbType(iosType); + }, + ); + } + + /// 设置变调效果 + Future setVoiceChangerType(VoiceChangerType type) async { + return platform( + android: (pool) async { + int androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_0; + switch (type) { + case VoiceChangerType.VOICECHANGER_TYPE_0: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_0; + break; + case VoiceChangerType.VOICECHANGER_TYPE_1: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_1; + break; + case VoiceChangerType.VOICECHANGER_TYPE_2: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_2; + break; + case VoiceChangerType.VOICECHANGER_TYPE_3: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_3; + break; + case VoiceChangerType.VOICECHANGER_TYPE_4: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_4; + break; + case VoiceChangerType.VOICECHANGER_TYPE_5: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_5; + break; + case VoiceChangerType.VOICECHANGER_TYPE_6: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_6; + break; + case VoiceChangerType.VOICECHANGER_TYPE_7: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_7; + break; + case VoiceChangerType.VOICECHANGER_TYPE_8: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_8; + break; + case VoiceChangerType.VOICECHANGER_TYPE_9: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_9; + break; + case VoiceChangerType.VOICECHANGER_TYPE_10: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_10; + break; + case VoiceChangerType.VOICECHANGER_TYPE_11: + androidType = com_tencent_rtmp_TXLiveConstants.VOICECHANGER_TYPE_11; + break; + } + await _androidPusher.setVoiceChangerType(androidType); + }, + ios: (pool) async { + TXVoiceChangerType iosType = TXVoiceChangerType.VOICECHANGER_TYPE_0; + switch (type) { + case VoiceChangerType.VOICECHANGER_TYPE_0: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_0; + break; + case VoiceChangerType.VOICECHANGER_TYPE_1: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_1; + break; + case VoiceChangerType.VOICECHANGER_TYPE_2: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_2; + break; + case VoiceChangerType.VOICECHANGER_TYPE_3: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_3; + break; + case VoiceChangerType.VOICECHANGER_TYPE_4: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_4; + break; + case VoiceChangerType.VOICECHANGER_TYPE_5: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_5; + break; + case VoiceChangerType.VOICECHANGER_TYPE_6: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_6; + break; + case VoiceChangerType.VOICECHANGER_TYPE_7: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_7; + break; + case VoiceChangerType.VOICECHANGER_TYPE_8: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_8; + break; + case VoiceChangerType.VOICECHANGER_TYPE_9: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_9; + break; + case VoiceChangerType.VOICECHANGER_TYPE_10: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_10; + break; + case VoiceChangerType.VOICECHANGER_TYPE_11: + iosType = TXVoiceChangerType.VOICECHANGER_TYPE_11; + break; + } + await _iosPusher.setVoiceChangerType(iosType); + }, + ); + } + + /// 设置 Logo 水印 + Future setWatermark( + ImageProvider watermark, + ImageConfiguration imageConfiguration, { + double x, + double y, + double width, + double height, + }) async { + final imageData = await watermark.toImageData(imageConfiguration); + return platform( + android: (pool) async { + final bitmap = await android_graphics_Bitmap.create(imageData); + await _androidConfig + .setWatermark__android_graphics_Bitmap__double__double__double( + bitmap, + x, + y, + width, + ); + pool.add(bitmap); + }, + ios: (pool) async { + final bitmap = await UIImage.create(imageData); + await _iOSConfig.set_watermark(bitmap); + await _iOSConfig.set_watermarkNormalization( + await CGRect.create(x, y, width, height), + ); + pool.add(bitmap); + }, + ); + } + + /// 开始本地录制 + Future startRecord(String videoPath) async { + return platform( + android: (pool) => _androidPusher.startRecord(videoPath), + ios: (pool) => _iosPusher.startRecord(videoPath), + ); + } + + /// 停止本地录制 + Future stopRecord() async { + return platform( + android: (pool) => _androidPusher.stopRecord(), + ios: (pool) => _iosPusher.stopRecord(), + ); + } + + /// 发送 SEI 消息 + Future sendMessageEx(String message) async { + return platform( + android: (pool) => _androidPusher.sendMessageEx(utf8.encode(message)), + ios: (pool) async { + return _iosPusher.sendMessageEx( + await NSData.createWithUint8List(utf8.encode(message)), + ); + }, + ); + } +} + +class _Holder { + com_tencent_rtmp_TXLivePusher _androidPusher; + TXLivePush _iosPusher; + + com_tencent_rtmp_TXLivePushConfig _androidConfig; + TXLivePushConfig _iOSConfig; + + final _androidEventDelegate = _AndroidEventDelegate(); + final _iosEventDelegate = _IOSEventDelegate(); +} diff --git a/lib/src/facade/player_delegates.dart b/lib/src/facade/player_delegates.dart new file mode 100644 index 0000000..c12abae --- /dev/null +++ b/lib/src/facade/player_delegates.dart @@ -0,0 +1,162 @@ +part of 'live_player.dart'; + +class _AndroidEventDelegate extends java_lang_Object + with com_tencent_rtmp_ITXLivePlayListener { + VoidCallback _onWarningVideoDecodeFail; + VoidCallback _onWarningAudioDecodeFail; + VoidCallback _onWarningReconnect; + VoidCallback _onWarningRecvDataLag; + VoidCallback _onWarningVideoPlayLag; + VoidCallback _onWarningHwAccelerationFail; + VoidCallback _onWarningVideoDiscontinuity; + VoidCallback _onWarningDNSFail; + VoidCallback _onWarningServerConnFail; + VoidCallback _onWarningShakeFail; + + VoidCallback _onEventRcvFirstIFrame; + VoidCallback _onEventPlayBegin; + VoidCallback _onEventPlayEnd; + + @override + Future onPlayEvent(int var1, android_os_Bundle var2) async { + super.onPlayEvent(var1, var2); + debugPrint('onPlayEvent: $var1'); + // 当前视频帧解码失败 + if (var1 == 2101 && _onWarningVideoDecodeFail != null) { + _onWarningVideoDecodeFail(); + } + // 当前音频帧解码失败 + else if (var1 == 2102 && _onWarningAudioDecodeFail != null) { + _onWarningAudioDecodeFail(); + } + // 网络断连,已启动自动重连(重连超过三次就直接抛送 PLAY_ERR_NET_DISCONNECT) + else if (var1 == 2103 && _onWarningReconnect != null) { + _onWarningReconnect(); + } + // 网络来包不稳:可能是下行带宽不足,或由于主播端出流不均匀 + else if (var1 == 2104 && _onWarningRecvDataLag != null) { + _onWarningRecvDataLag(); + } + // 当前视频播放出现卡顿 + else if (var1 == 2105 && _onWarningVideoPlayLag != null) { + _onWarningVideoPlayLag(); + } + // 硬解启动失败,采用软解 + else if (var1 == 2106 && _onWarningHwAccelerationFail != null) { + _onWarningHwAccelerationFail(); + } + // 当前视频帧不连续,可能丢帧 + else if (var1 == 2107 && _onWarningVideoDiscontinuity != null) { + _onWarningVideoDiscontinuity(); + } + // RTMP - DNS 解析失败(会触发重试流程) 3001 + else if (var1 == 3001 && _onWarningDNSFail != null) { + _onWarningDNSFail(); + } + // RTMP 服务器连接失败(会触发重试流程) 3002 + else if (var1 == 3002 && _onWarningServerConnFail != null) { + _onWarningServerConnFail(); + } + // RTMP 服务器握手失败(会触发重试流程) 3003 + else if (var1 == 3003 && _onWarningShakeFail != null) { + _onWarningShakeFail(); + } + // 收到首帧数据,越快收到此消息说明链路质量越好 + else if (var1 == 2003 && _onEventRcvFirstIFrame != null) { + _onEventRcvFirstIFrame(); + } + // 视频播放开始,如果您自己做 loading,会需要它 + else if (var1 == 2004 && _onEventPlayBegin != null) { + _onEventPlayBegin(); + } + // 视频播放结束 + else if (var1 == 2006 && _onEventPlayEnd != null) { + _onEventPlayEnd(); + } + } + + @override + Future onNetStatus(android_os_Bundle var1) async { + super.onNetStatus(var1); + } +} + +class _IOSEventDelegate extends NSObject with TXLivePlayListener { + VoidCallback _onWarningVideoDecodeFail; + VoidCallback _onWarningAudioDecodeFail; + VoidCallback _onWarningReconnect; + VoidCallback _onWarningRecvDataLag; + VoidCallback _onWarningVideoPlayLag; + VoidCallback _onWarningHwAccelerationFail; + VoidCallback _onWarningVideoDiscontinuity; + VoidCallback _onWarningDNSFail; + VoidCallback _onWarningServerConnFail; + VoidCallback _onWarningShakeFail; + + VoidCallback _onEventRcvFirstIFrame; + VoidCallback _onEventPlayBegin; + VoidCallback _onEventPlayEnd; + + @override + Future onPlayEvent_withParam(int EvtID, Map param) async { + super.onPlayEvent_withParam(EvtID, param); + debugPrint('onPlayEvent_withParam: $EvtID, $param'); + // 当前视频帧解码失败 + if (EvtID == 2101 && _onWarningVideoDecodeFail != null) { + _onWarningVideoDecodeFail(); + } + // 当前音频帧解码失败 + else if (EvtID == 2102 && _onWarningAudioDecodeFail != null) { + _onWarningAudioDecodeFail(); + } + // 网络断连,已启动自动重连(重连超过三次就直接抛送 PLAY_ERR_NET_DISCONNECT) + else if (EvtID == 2103 && _onWarningReconnect != null) { + _onWarningReconnect(); + } + // 网络来包不稳:可能是下行带宽不足,或由于主播端出流不均匀 + else if (EvtID == 2104 && _onWarningRecvDataLag != null) { + _onWarningRecvDataLag(); + } + // 当前视频播放出现卡顿 + else if (EvtID == 2105 && _onWarningVideoPlayLag != null) { + _onWarningVideoPlayLag(); + } + // 硬解启动失败,采用软解 + else if (EvtID == 2106 && _onWarningHwAccelerationFail != null) { + _onWarningHwAccelerationFail(); + } + // 当前视频帧不连续,可能丢帧 + else if (EvtID == 2107 && _onWarningVideoDiscontinuity != null) { + _onWarningVideoDiscontinuity(); + } + // RTMP - DNS 解析失败(会触发重试流程) 3001 + else if (EvtID == 3001 && _onWarningDNSFail != null) { + _onWarningDNSFail(); + } + // RTMP 服务器连接失败(会触发重试流程) 3002 + else if (EvtID == 3002 && _onWarningServerConnFail != null) { + _onWarningServerConnFail(); + } + // RTMP 服务器握手失败(会触发重试流程) 3003 + else if (EvtID == 3003 && _onWarningShakeFail != null) { + _onWarningShakeFail(); + } + // 收到首帧数据,越快收到此消息说明链路质量越好 + else if (EvtID == 2003 && _onEventRcvFirstIFrame != null) { + _onEventRcvFirstIFrame(); + } + // 视频播放开始,如果您自己做 loading,会需要它 + else if (EvtID == 2004 && _onEventPlayBegin != null) { + _onEventPlayBegin(); + } + // 视频播放结束 + else if (EvtID == 2006 && _onEventPlayEnd != null) { + _onEventPlayEnd(); + } + } + + @override + Future onNetStatus(Map param) async { + super.onNetStatus(param); + } +} diff --git a/lib/src/facade/pusher_delegates.dart b/lib/src/facade/pusher_delegates.dart new file mode 100644 index 0000000..296459e --- /dev/null +++ b/lib/src/facade/pusher_delegates.dart @@ -0,0 +1,202 @@ +part of 'live_pusher.dart'; + +class _AndroidEventDelegate extends java_lang_Object + with com_tencent_rtmp_ITXLivePushListener { + VoidCallback _onWaringNetBusy; + VoidCallback _onWaringReconnect; + VoidCallback _onWaringHardwareAccelerationFail; + VoidCallback _onWaringDNSFail; + VoidCallback _onWaringServerConnFail; + VoidCallback _onWaringShakeFail; + VoidCallback _onWaringServerDisconnect; + + VoidCallback _onEventConnectSucc; + VoidCallback _onEventPushBegin; + VoidCallback _onEventOpenCameraSuccess; + + VoidCallback _onErrorOpenCameraFail; + VoidCallback _onErrorOpenMicFail; + VoidCallback _onErrorVideoEncodeFail; + VoidCallback _onErrorAudioEncodeFail; + VoidCallback _onErrorUnsupportedResolution; + VoidCallback _onErrorUnsupportedSampleRate; + VoidCallback _onErrorNetDisconnect; + + @override + Future onPushEvent(int var1, android_os_Bundle var2) async { + super.onPushEvent(var1, var2); + // 网络环境不佳 1101 + if (var1 == 1101 && _onWaringNetBusy != null) { + _onWaringNetBusy(); + } + // 网络断连,已启动自动重连(自动重连连续失败超过三次会放弃) 1102 + else if (var1 == 1102 && _onWaringReconnect != null) { + _onWaringReconnect(); + } + // 硬编码启动失败,采用软编码 1103 + else if (var1 == 1103 && _onWaringHardwareAccelerationFail != null) { + _onWaringHardwareAccelerationFail(); + } + // RTMP - DNS 解析失败(会触发重试流程) 3001 + else if (var1 == 3001 && _onWaringDNSFail != null) { + _onWaringDNSFail(); + } + // RTMP 服务器连接失败(会触发重试流程) 3002 + else if (var1 == 3002 && _onWaringServerConnFail != null) { + _onWaringServerConnFail(); + } + // RTMP 服务器握手失败(会触发重试流程) 3003 + else if (var1 == 3003 && _onWaringShakeFail != null) { + _onWaringShakeFail(); + } + // RTMP 服务器主动断开连接(会触发重试流程) 3004 + else if (var1 == 3004 && _onWaringServerDisconnect != null) { + _onWaringServerDisconnect(); + } + // 已经成功连接到腾讯云推流服务器 1001 + else if (var1 == 1001 && _onEventConnectSucc != null) { + _onEventConnectSucc(); + } + // 与服务器握手完毕,一切正常,准备开始推流 1002 + else if (var1 == 1002 && _onEventPushBegin != null) { + _onEventPushBegin(); + } + // 推流器已成功打开摄像头(部分 Android 手机在此过程需要耗时1s - 2s) 1003 + else if (var1 == 1003 && _onEventOpenCameraSuccess != null) { + _onEventOpenCameraSuccess(); + } + // 打开摄像头失败 -1301 + else if (var1 == -1301 && _onErrorOpenCameraFail != null) { + _onErrorOpenCameraFail(); + } + // 打开麦克风失败 -1302 + else if (var1 == -1302 && _onErrorOpenMicFail != null) { + _onErrorOpenMicFail(); + } + // 视频编码失败 -1303 + else if (var1 == -1303 && _onErrorVideoEncodeFail != null) { + _onErrorVideoEncodeFail(); + } + // 音频编码失败 -1304 + else if (var1 == -1304 && _onErrorAudioEncodeFail != null) { + _onErrorAudioEncodeFail(); + } + // 不支持的视频分辨率 -1305 + else if (var1 == -1305 && _onErrorUnsupportedResolution != null) { + _onErrorUnsupportedResolution(); + } + // 不支持的音频采样率 -1306 + else if (var1 == -1306 && _onErrorUnsupportedSampleRate != null) { + _onErrorUnsupportedSampleRate(); + } + // 网络断连,且经三次重连无效,更多重试请自行重启推流 -1307 + else if (var1 == -1306 && _onErrorNetDisconnect != null) { + _onErrorNetDisconnect(); + } + } + + @override + Future onNetStatus(android_os_Bundle var1) async { + super.onNetStatus(var1); + } +} + +class _IOSEventDelegate extends NSObject with TXLivePushListener { + VoidCallback _onWaringNetBusy; + VoidCallback _onWaringReconnect; + VoidCallback _onWaringHardwareAccelerationFail; + VoidCallback _onWaringDNSFail; + VoidCallback _onWaringServerConnFail; + VoidCallback _onWaringShakeFail; + VoidCallback _onWaringServerDisconnect; + + VoidCallback _onEventConnectSucc; + VoidCallback _onEventPushBegin; + VoidCallback _onEventOpenCameraSuccess; + + VoidCallback _onErrorOpenCameraFail; + VoidCallback _onErrorOpenMicFail; + VoidCallback _onErrorVideoEncodeFail; + VoidCallback _onErrorAudioEncodeFail; + VoidCallback _onErrorUnsupportedResolution; + VoidCallback _onErrorUnsupportedSampleRate; + VoidCallback _onErrorNetDisconnect; + + @override + Future onPushEvent_withParam(int EvtID, Map param) async { + super.onPushEvent_withParam(EvtID, param); + // 网络环境不佳 1101 + if (EvtID == 1101 && _onWaringNetBusy != null) { + _onWaringNetBusy(); + } + // 网络断连,已启动自动重连(自动重连连续失败超过三次会放弃) 1102 + else if (EvtID == 1102 && _onWaringReconnect != null) { + _onWaringReconnect(); + } + // 硬编码启动失败,采用软编码 1103 + else if (EvtID == 1103 && _onWaringHardwareAccelerationFail != null) { + _onWaringHardwareAccelerationFail(); + } + // RTMP - DNS 解析失败(会触发重试流程) 3001 + else if (EvtID == 3001 && _onWaringDNSFail != null) { + _onWaringDNSFail(); + } + // RTMP 服务器连接失败(会触发重试流程) 3002 + else if (EvtID == 3002 && _onWaringServerConnFail != null) { + _onWaringServerConnFail(); + } + // RTMP 服务器握手失败(会触发重试流程) 3003 + else if (EvtID == 3003 && _onWaringShakeFail != null) { + _onWaringShakeFail(); + } + // RTMP 服务器主动断开连接(会触发重试流程) 3004 + else if (EvtID == 3004 && _onWaringServerDisconnect != null) { + _onWaringServerDisconnect(); + } + // 已经成功连接到腾讯云推流服务器 1001 + else if (EvtID == 1001 && _onEventConnectSucc != null) { + _onEventConnectSucc(); + } + // 与服务器握手完毕,一切正常,准备开始推流 1002 + else if (EvtID == 1002 && _onEventPushBegin != null) { + _onEventPushBegin(); + } + // 推流器已成功打开摄像头(部分 Android 手机在此过程需要耗时1s - 2s) 1003 + else if (EvtID == 1003 && _onEventOpenCameraSuccess != null) { + _onEventOpenCameraSuccess(); + } + // 打开摄像头失败 -1301 + else if (EvtID == -1301 && _onErrorOpenCameraFail != null) { + _onErrorOpenCameraFail(); + } + // 打开麦克风失败 -1302 + else if (EvtID == -1302 && _onErrorOpenMicFail != null) { + _onErrorOpenMicFail(); + } + // 视频编码失败 -1303 + else if (EvtID == -1303 && _onErrorVideoEncodeFail != null) { + _onErrorVideoEncodeFail(); + } + // 音频编码失败 -1304 + else if (EvtID == -1304 && _onErrorAudioEncodeFail != null) { + _onErrorAudioEncodeFail(); + } + // 不支持的视频分辨率 -1305 + else if (EvtID == -1305 && _onErrorUnsupportedResolution != null) { + _onErrorUnsupportedResolution(); + } + // 不支持的音频采样率 -1306 + else if (EvtID == -1306 && _onErrorUnsupportedSampleRate != null) { + _onErrorUnsupportedSampleRate(); + } + // 网络断连,且经三次重连无效,更多重试请自行重启推流 -1307 + else if (EvtID == -1306 && _onErrorNetDisconnect != null) { + _onErrorNetDisconnect(); + } + } + + @override + Future onNetStatus(Map param) async { + super.onNetStatus(param); + } +} diff --git a/lib/src/facade/tencent_live.dart b/lib/src/facade/tencent_live.dart new file mode 100644 index 0000000..4395773 --- /dev/null +++ b/lib/src/facade/tencent_live.dart @@ -0,0 +1,78 @@ +import 'dart:async'; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:foundation_fluttify/foundation_fluttify.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; + +/// 腾讯直播 +class TencentLive { + static TencentLive instance = TencentLive._(); + + TencentLive._(); + + /// 初始化SDK + /// + /// license申请请参考 https://console.cloud.tencent.com/live/license + Future init({ + @required String licenseUrl, + @required String licenseKey, + }) async { + // iOS端有一个坑, 生成出来的licenseUrl是以http开头的, 在ios上会报鉴权失败(-5), 实际上 + // 你需要把 http 改成 https , 才能正常推流! + final httpsUrl = Uri.parse(licenseUrl).scheme == 'http' + ? licenseUrl.replaceFirst('http', 'https') + : licenseUrl; + debugPrint('licenseUrl: $httpsUrl'); + await platform( + android: (pool) async { + final context = await android_app_Application.get(); + + final base = await com_tencent_rtmp_TXLiveBase.getInstance(); + await base.setLicence(context, httpsUrl, licenseKey); + }, + ios: (pool) async { + await TXLiveBase.setLicenceURL_key(httpsUrl, licenseKey); + }, + ); + } + + /// 开始纯音频推流 + Future startPureAudioPush(String pushUrl) async { + assert(pushUrl != null); + platform( + android: (pool) async { + final context = await android_app_Application.get(); + + final config = await com_tencent_rtmp_TXLivePushConfig.create__(); + await config.enablePureAudioPush(true); + + final pusher = await com_tencent_rtmp_TXLivePusher + .create__android_content_Context(context); + + await pusher.setConfig(config); + + final result = await pusher.startPusher(pushUrl); + + debugPrint('result: $result'); + + pool..add(context)..add(config)..add(pusher); + }, + ios: (pool) async { + final config = await TXLivePushConfig.create__(); + await config.set_enablePureAudioPush(true); + + final pusher = await TXLivePush.create__(); + await pusher.initWithConfig(config); + + final result = await pusher.startPush(pushUrl); + + debugPrint('result: $result'); + + pool..add(config)..add(pusher); + }, + ); + } +} diff --git a/lib/src/ios/EventID.g.dart b/lib/src/ios/EventID.g.dart new file mode 100644 index 0000000..e915f8c --- /dev/null +++ b/lib/src/ios/EventID.g.dart @@ -0,0 +1,251 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum EventID { + PUSH_EVT_CONNECT_SUCC /* EVT_RTMP_PUSH_CONNECT_SUCC */, + PUSH_EVT_PUSH_BEGIN /* EVT_RTMP_PUSH_BEGIN */, + PUSH_EVT_OPEN_CAMERA_SUCC /* EVT_CAMERA_START_SUCC */, + PUSH_EVT_CHANGE_RESOLUTION /* EVT_UP_CHANGE_RESOLUTION */, + PUSH_EVT_CHANGE_BITRATE /* EVT_UP_CHANGE_BITRATE */, + PUSH_EVT_FIRST_FRAME_AVAILABLE /* EVT_FIRST_FRAME_AVAILABLE */, + PUSH_EVT_START_VIDEO_ENCODER /* EVT_START_VIDEO_ENCODER */, + PUSH_EVT_ROOM_IN /* EVT_ROOM_ENTER */, + PUSH_EVT_ROOM_IN_FAILED /* EVT_ROOM_ENTER_FAILED */, + PUSH_EVT_ROOM_OUT /* EVT_ROOM_EXIT */, + PUSH_EVT_ROOM_USERLIST /* EVT_ROOM_USERLIST */, + PUSH_EVT_ROOM_NEED_REENTER /* EVT_ROOM_NEED_REENTER */, + PUSH_EVT_ROOM_USER_ENTER /* EVT_ROOM_USER_ENTER */, + PUSH_EVT_ROOM_USER_EXIT /* EVT_ROOM_USER_EXIT */, + PUSH_EVT_ROOM_USER_VIDEO_STATE /* EVT_ROOM_USER_VIDEO_STATE */, + PUSH_EVT_ROOM_USER_AUDIO_STATE /* EVT_ROOM_USER_AUDIO_STATE */, + PUSH_ERR_OPEN_CAMERA_FAIL /* ERR_CAMERA_START_FAIL */, + PUSH_ERR_OPEN_MIC_FAIL /* ERR_MIC_START_FAIL */, + PUSH_ERR_VIDEO_ENCODE_FAIL /* ERR_VIDEO_ENCODE_FAIL */, + PUSH_ERR_AUDIO_ENCODE_FAIL /* ERR_AUDIO_ENCODE_FAIL */, + PUSH_ERR_UNSUPPORTED_RESOLUTION /* ERR_UNSUPPORTED_RESOLUTION */, + PUSH_ERR_UNSUPPORTED_SAMPLERATE /* ERR_UNSUPPORTED_SAMPLERATE */, + PUSH_ERR_NET_DISCONNECT /* ERR_RTMP_PUSH_NET_DISCONNECT */, + PUSH_ERR_AUDIO_SYSTEM_NOT_WORK /* -1308 */, + PUSH_ERR_INVALID_ADDRESS /* ERR_RTMP_PUSH_INVALID_ADDRESS */, + PUSH_WARNING_NET_BUSY /* WARNING_NET_BUSY */, + PUSH_WARNING_RECONNECT /* WARNING_RTMP_SERVER_RECONNECT */, + PUSH_WARNING_HW_ACCELERATION_FAIL /* WARNING_HW_ENCODER_START_FAIL */, + PUSH_WARNING_VIDEO_ENCODE_FAIL /* 1104 */, + PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL /* 1105 */, + PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW /* 1106 */, + PUSH_WARNING_DNS_FAIL /* WARNING_RTMP_DNS_FAIL */, + PUSH_WARNING_SEVER_CONN_FAIL /* WARNING_RTMP_SEVER_CONN_FAIL */, + PUSH_WARNING_SHAKE_FAIL /* WARNING_RTMP_SHAKE_FAIL */, + PUSH_WARNING_SERVER_DISCONNECT /* WARNING_RTMP_SERVER_BREAK_CONNECT */, + PUSH_WARNING_READ_WRITE_FAIL /* WARNING_RTMP_READ_WRITE_FAIL */, + INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE /* 100001 */, + INNER_EVT_BGM_PLAY_FINISH /* 100002 */, + PLAY_EVT_CONNECT_SUCC /* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */, + PLAY_EVT_RTMP_STREAM_BEGIN /* EVT_PLAY_LIVE_STREAM_BEGIN */, + PLAY_EVT_RCV_FIRST_I_FRAME /* EVT_RENDER_FIRST_I_FRAME */, + PLAY_EVT_PLAY_BEGIN /* EVT_VIDEO_PLAY_BEGIN */, + PLAY_EVT_PLAY_PROGRESS /* EVT_VIDEO_PLAY_PROGRESS */, + PLAY_EVT_PLAY_END /* EVT_VIDEO_PLAY_END */, + PLAY_EVT_PLAY_LOADING /* EVT_VIDEO_PLAY_LOADING */, + PLAY_EVT_START_VIDEO_DECODER /* EVT_START_VIDEO_DECODER */, + PLAY_EVT_CHANGE_RESOLUTION /* EVT_DOWN_CHANGE_RESOLUTION */, + PLAY_EVT_GET_PLAYINFO_SUCC /* EVT_GET_VODFILE_MEDIAINFO_SUCC */, + PLAY_EVT_CHANGE_ROTATION /* EVT_VIDEO_CHANGE_ROTATION */, + PLAY_EVT_GET_MESSAGE /* EVT_PLAY_GET_MESSAGE */, + PLAY_EVT_VOD_PLAY_PREPARED /* EVT_VOD_PLAY_PREPARED */, + PLAY_EVT_VOD_LOADING_END /* EVT_VOD_PLAY_LOADING_END */, + PLAY_EVT_STREAM_SWITCH_SUCC /* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */, + PLAY_EVT_GET_METADATA /* EVT_PLAY_GET_METADATA */, + PLAY_EVT_GET_FLVSESSIONKEY /* EVT_PLAY_GET_FLVSESSIONKEY */, + PLAY_ERR_NET_DISCONNECT /* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */, + PLAY_ERR_GET_RTMP_ACC_URL_FAIL /* ERR_GET_RTMP_ACC_URL_FAIL */, + PLAY_ERR_FILE_NOT_FOUND /* ERR_FILE_NOT_FOUND */, + PLAY_ERR_HEVC_DECODE_FAIL /* ERR_HEVC_DECODE_FAIL */, + PLAY_ERR_HLS_KEY /* ERR_VOD_DECRYPT_FAIL */, + PLAY_ERR_GET_PLAYINFO_FAIL /* ERR_GET_VODFILE_MEDIAINFO_FAIL */, + PLAY_ERR_STREAM_SWITCH_FAIL /* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */, + PLAY_WARNING_VIDEO_DECODE_FAIL /* WARNING_VIDEO_FRAME_DECODE_FAIL */, + PLAY_WARNING_AUDIO_DECODE_FAIL /* WARNING_AUDIO_FRAME_DECODE_FAIL */, + PLAY_WARNING_RECONNECT /* WARNING_LIVE_STREAM_SERVER_RECONNECT */, + PLAY_WARNING_RECV_DATA_LAG /* WARNING_RECV_DATA_LAG */, + PLAY_WARNING_VIDEO_PLAY_LAG /* WARNING_VIDEO_PLAY_LAG */, + PLAY_WARNING_HW_ACCELERATION_FAIL /* WARNING_HW_DECODER_START_FAIL */, + PLAY_WARNING_VIDEO_DISCONTINUITY /* 2107 */, + PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL /* WARNING_VIDEO_DECODER_HW_TO_SW */, + PLAY_WARNING_DNS_FAIL /* WARNING_RTMP_DNS_FAIL */, + PLAY_WARNING_SEVER_CONN_FAIL /* WARNING_RTMP_SEVER_CONN_FAIL */, + PLAY_WARNING_SHAKE_FAIL /* WARNING_RTMP_SHAKE_FAIL */, + PLAY_WARNING_SERVER_DISCONNECT /* WARNING_RTMP_SERVER_BREAK_CONNECT */, + PLAY_WARNING_READ_WRITE_FAIL /* WARNING_RTMP_READ_WRITE_FAIL */, + UGC_WRITE_FILE_FAIL /* 4001 */ +} + +extension EventIDToX on EventID { + int toValue() { + switch (this) { + case EventID.PUSH_EVT_CONNECT_SUCC: return 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */; + case EventID.PUSH_EVT_PUSH_BEGIN: return 1002/* EVT_RTMP_PUSH_BEGIN */; + case EventID.PUSH_EVT_OPEN_CAMERA_SUCC: return 1003/* EVT_CAMERA_START_SUCC */; + case EventID.PUSH_EVT_CHANGE_RESOLUTION: return 1005/* EVT_UP_CHANGE_RESOLUTION */; + case EventID.PUSH_EVT_CHANGE_BITRATE: return 1006/* EVT_UP_CHANGE_BITRATE */; + case EventID.PUSH_EVT_FIRST_FRAME_AVAILABLE: return 1007/* EVT_FIRST_FRAME_AVAILABLE */; + case EventID.PUSH_EVT_START_VIDEO_ENCODER: return 1008/* EVT_START_VIDEO_ENCODER */; + case EventID.PUSH_EVT_ROOM_IN: return 1018/* EVT_ROOM_ENTER */; + case EventID.PUSH_EVT_ROOM_IN_FAILED: return 1022/* EVT_ROOM_ENTER_FAILED */; + case EventID.PUSH_EVT_ROOM_OUT: return 1019/* EVT_ROOM_EXIT */; + case EventID.PUSH_EVT_ROOM_USERLIST: return 1020/* EVT_ROOM_USERLIST */; + case EventID.PUSH_EVT_ROOM_NEED_REENTER: return 1021/* EVT_ROOM_NEED_REENTER */; + case EventID.PUSH_EVT_ROOM_USER_ENTER: return 1031/* EVT_ROOM_USER_ENTER */; + case EventID.PUSH_EVT_ROOM_USER_EXIT: return 1032/* EVT_ROOM_USER_EXIT */; + case EventID.PUSH_EVT_ROOM_USER_VIDEO_STATE: return 1033/* EVT_ROOM_USER_VIDEO_STATE */; + case EventID.PUSH_EVT_ROOM_USER_AUDIO_STATE: return 1034/* EVT_ROOM_USER_AUDIO_STATE */; + case EventID.PUSH_ERR_OPEN_CAMERA_FAIL: return -1301/* ERR_CAMERA_START_FAIL */; + case EventID.PUSH_ERR_OPEN_MIC_FAIL: return -1302/* ERR_MIC_START_FAIL */; + case EventID.PUSH_ERR_VIDEO_ENCODE_FAIL: return -1303/* ERR_VIDEO_ENCODE_FAIL */; + case EventID.PUSH_ERR_AUDIO_ENCODE_FAIL: return -1304/* ERR_AUDIO_ENCODE_FAIL */; + case EventID.PUSH_ERR_UNSUPPORTED_RESOLUTION: return -1305/* ERR_UNSUPPORTED_RESOLUTION */; + case EventID.PUSH_ERR_UNSUPPORTED_SAMPLERATE: return -1306/* ERR_UNSUPPORTED_SAMPLERATE */; + case EventID.PUSH_ERR_NET_DISCONNECT: return -1307/* ERR_RTMP_PUSH_NET_DISCONNECT */; + case EventID.PUSH_ERR_AUDIO_SYSTEM_NOT_WORK: return -1308; + case EventID.PUSH_ERR_INVALID_ADDRESS: return -1313/* ERR_RTMP_PUSH_INVALID_ADDRESS */; + case EventID.PUSH_WARNING_NET_BUSY: return 1101/* WARNING_NET_BUSY */; + case EventID.PUSH_WARNING_RECONNECT: return 1102/* WARNING_RTMP_SERVER_RECONNECT */; + case EventID.PUSH_WARNING_HW_ACCELERATION_FAIL: return 1103/* WARNING_HW_ENCODER_START_FAIL */; + case EventID.PUSH_WARNING_VIDEO_ENCODE_FAIL: return 1104; + case EventID.PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL: return 1105; + case EventID.PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW: return 1106; + case EventID.PUSH_WARNING_DNS_FAIL: return 3001/* WARNING_RTMP_DNS_FAIL */; + case EventID.PUSH_WARNING_SEVER_CONN_FAIL: return 3002/* WARNING_RTMP_SEVER_CONN_FAIL */; + case EventID.PUSH_WARNING_SHAKE_FAIL: return 3003/* WARNING_RTMP_SHAKE_FAIL */; + case EventID.PUSH_WARNING_SERVER_DISCONNECT: return 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */; + case EventID.PUSH_WARNING_READ_WRITE_FAIL: return 3005/* WARNING_RTMP_READ_WRITE_FAIL */; + case EventID.INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE: return 100001; + case EventID.INNER_EVT_BGM_PLAY_FINISH: return 100002; + case EventID.PLAY_EVT_CONNECT_SUCC: return 2001/* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */; + case EventID.PLAY_EVT_RTMP_STREAM_BEGIN: return 2002/* EVT_PLAY_LIVE_STREAM_BEGIN */; + case EventID.PLAY_EVT_RCV_FIRST_I_FRAME: return 2003/* EVT_RENDER_FIRST_I_FRAME */; + case EventID.PLAY_EVT_PLAY_BEGIN: return 2004/* EVT_VIDEO_PLAY_BEGIN */; + case EventID.PLAY_EVT_PLAY_PROGRESS: return 2005/* EVT_VIDEO_PLAY_PROGRESS */; + case EventID.PLAY_EVT_PLAY_END: return 2006/* EVT_VIDEO_PLAY_END */; + case EventID.PLAY_EVT_PLAY_LOADING: return 2007/* EVT_VIDEO_PLAY_LOADING */; + case EventID.PLAY_EVT_START_VIDEO_DECODER: return 2008/* EVT_START_VIDEO_DECODER */; + case EventID.PLAY_EVT_CHANGE_RESOLUTION: return 2009/* EVT_DOWN_CHANGE_RESOLUTION */; + case EventID.PLAY_EVT_GET_PLAYINFO_SUCC: return 2010/* EVT_GET_VODFILE_MEDIAINFO_SUCC */; + case EventID.PLAY_EVT_CHANGE_ROTATION: return 2011/* EVT_VIDEO_CHANGE_ROTATION */; + case EventID.PLAY_EVT_GET_MESSAGE: return 2012/* EVT_PLAY_GET_MESSAGE */; + case EventID.PLAY_EVT_VOD_PLAY_PREPARED: return 2013/* EVT_VOD_PLAY_PREPARED */; + case EventID.PLAY_EVT_VOD_LOADING_END: return 2014/* EVT_VOD_PLAY_LOADING_END */; + case EventID.PLAY_EVT_STREAM_SWITCH_SUCC: return 2015/* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */; + case EventID.PLAY_EVT_GET_METADATA: return 2028/* EVT_PLAY_GET_METADATA */; + case EventID.PLAY_EVT_GET_FLVSESSIONKEY: return 2030/* EVT_PLAY_GET_FLVSESSIONKEY */; + case EventID.PLAY_ERR_NET_DISCONNECT: return -2301/* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */; + case EventID.PLAY_ERR_GET_RTMP_ACC_URL_FAIL: return -2302/* ERR_GET_RTMP_ACC_URL_FAIL */; + case EventID.PLAY_ERR_FILE_NOT_FOUND: return -2303/* ERR_FILE_NOT_FOUND */; + case EventID.PLAY_ERR_HEVC_DECODE_FAIL: return -2304/* ERR_HEVC_DECODE_FAIL */; + case EventID.PLAY_ERR_HLS_KEY: return -2305/* ERR_VOD_DECRYPT_FAIL */; + case EventID.PLAY_ERR_GET_PLAYINFO_FAIL: return -2306/* ERR_GET_VODFILE_MEDIAINFO_FAIL */; + case EventID.PLAY_ERR_STREAM_SWITCH_FAIL: return -2307/* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */; + case EventID.PLAY_WARNING_VIDEO_DECODE_FAIL: return 2101/* WARNING_VIDEO_FRAME_DECODE_FAIL */; + case EventID.PLAY_WARNING_AUDIO_DECODE_FAIL: return 2102/* WARNING_AUDIO_FRAME_DECODE_FAIL */; + case EventID.PLAY_WARNING_RECONNECT: return 2103/* WARNING_LIVE_STREAM_SERVER_RECONNECT */; + case EventID.PLAY_WARNING_RECV_DATA_LAG: return 2104/* WARNING_RECV_DATA_LAG */; + case EventID.PLAY_WARNING_VIDEO_PLAY_LAG: return 2105/* WARNING_VIDEO_PLAY_LAG */; + case EventID.PLAY_WARNING_HW_ACCELERATION_FAIL: return 2106/* WARNING_HW_DECODER_START_FAIL */; + case EventID.PLAY_WARNING_VIDEO_DISCONTINUITY: return 2107; + case EventID.PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL: return 2108/* WARNING_VIDEO_DECODER_HW_TO_SW */; + case EventID.PLAY_WARNING_DNS_FAIL: return 3001/* WARNING_RTMP_DNS_FAIL */; + case EventID.PLAY_WARNING_SEVER_CONN_FAIL: return 3002/* WARNING_RTMP_SEVER_CONN_FAIL */; + case EventID.PLAY_WARNING_SHAKE_FAIL: return 3003/* WARNING_RTMP_SHAKE_FAIL */; + case EventID.PLAY_WARNING_SERVER_DISCONNECT: return 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */; + case EventID.PLAY_WARNING_READ_WRITE_FAIL: return 3005/* WARNING_RTMP_READ_WRITE_FAIL */; + case EventID.UGC_WRITE_FILE_FAIL: return 4001; + default: return 0; + } + } +} + +extension EventIDFromX on int { + EventID toEventID() { + switch (this) { + case 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */: return EventID.PUSH_EVT_CONNECT_SUCC; + case 1002/* EVT_RTMP_PUSH_BEGIN */: return EventID.PUSH_EVT_PUSH_BEGIN; + case 1003/* EVT_CAMERA_START_SUCC */: return EventID.PUSH_EVT_OPEN_CAMERA_SUCC; + case 1005/* EVT_UP_CHANGE_RESOLUTION */: return EventID.PUSH_EVT_CHANGE_RESOLUTION; + case 1006/* EVT_UP_CHANGE_BITRATE */: return EventID.PUSH_EVT_CHANGE_BITRATE; + case 1007/* EVT_FIRST_FRAME_AVAILABLE */: return EventID.PUSH_EVT_FIRST_FRAME_AVAILABLE; + case 1008/* EVT_START_VIDEO_ENCODER */: return EventID.PUSH_EVT_START_VIDEO_ENCODER; + case 1018/* EVT_ROOM_ENTER */: return EventID.PUSH_EVT_ROOM_IN; + case 1022/* EVT_ROOM_ENTER_FAILED */: return EventID.PUSH_EVT_ROOM_IN_FAILED; + case 1019/* EVT_ROOM_EXIT */: return EventID.PUSH_EVT_ROOM_OUT; + case 1020/* EVT_ROOM_USERLIST */: return EventID.PUSH_EVT_ROOM_USERLIST; + case 1021/* EVT_ROOM_NEED_REENTER */: return EventID.PUSH_EVT_ROOM_NEED_REENTER; + case 1031/* EVT_ROOM_USER_ENTER */: return EventID.PUSH_EVT_ROOM_USER_ENTER; + case 1032/* EVT_ROOM_USER_EXIT */: return EventID.PUSH_EVT_ROOM_USER_EXIT; + case 1033/* EVT_ROOM_USER_VIDEO_STATE */: return EventID.PUSH_EVT_ROOM_USER_VIDEO_STATE; + case 1034/* EVT_ROOM_USER_AUDIO_STATE */: return EventID.PUSH_EVT_ROOM_USER_AUDIO_STATE; + case -1301/* ERR_CAMERA_START_FAIL */: return EventID.PUSH_ERR_OPEN_CAMERA_FAIL; + case -1302/* ERR_MIC_START_FAIL */: return EventID.PUSH_ERR_OPEN_MIC_FAIL; + case -1303/* ERR_VIDEO_ENCODE_FAIL */: return EventID.PUSH_ERR_VIDEO_ENCODE_FAIL; + case -1304/* ERR_AUDIO_ENCODE_FAIL */: return EventID.PUSH_ERR_AUDIO_ENCODE_FAIL; + case -1305/* ERR_UNSUPPORTED_RESOLUTION */: return EventID.PUSH_ERR_UNSUPPORTED_RESOLUTION; + case -1306/* ERR_UNSUPPORTED_SAMPLERATE */: return EventID.PUSH_ERR_UNSUPPORTED_SAMPLERATE; + case -1307/* ERR_RTMP_PUSH_NET_DISCONNECT */: return EventID.PUSH_ERR_NET_DISCONNECT; + case -1308: return EventID.PUSH_ERR_AUDIO_SYSTEM_NOT_WORK; + case -1313/* ERR_RTMP_PUSH_INVALID_ADDRESS */: return EventID.PUSH_ERR_INVALID_ADDRESS; + case 1101/* WARNING_NET_BUSY */: return EventID.PUSH_WARNING_NET_BUSY; + case 1102/* WARNING_RTMP_SERVER_RECONNECT */: return EventID.PUSH_WARNING_RECONNECT; + case 1103/* WARNING_HW_ENCODER_START_FAIL */: return EventID.PUSH_WARNING_HW_ACCELERATION_FAIL; + case 1104: return EventID.PUSH_WARNING_VIDEO_ENCODE_FAIL; + case 1105: return EventID.PUSH_WARNING_BEAUTYSURFACE_VIEW_INIT_FAIL; + case 1106: return EventID.PUSH_WARNING_VIDEO_ENCODE_BITRATE_OVERFLOW; + case 3001/* WARNING_RTMP_DNS_FAIL */: return EventID.PUSH_WARNING_DNS_FAIL; + case 3002/* WARNING_RTMP_SEVER_CONN_FAIL */: return EventID.PUSH_WARNING_SEVER_CONN_FAIL; + case 3003/* WARNING_RTMP_SHAKE_FAIL */: return EventID.PUSH_WARNING_SHAKE_FAIL; + case 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */: return EventID.PUSH_WARNING_SERVER_DISCONNECT; + case 3005/* WARNING_RTMP_READ_WRITE_FAIL */: return EventID.PUSH_WARNING_READ_WRITE_FAIL; + case 100001: return EventID.INNER_EVT_SET_BITRATE_4_SCREEN_CAPTURE; + case 100002: return EventID.INNER_EVT_BGM_PLAY_FINISH; + case 2001/* EVT_PLAY_LIVE_STREAM_CONNECT_SUCC */: return EventID.PLAY_EVT_CONNECT_SUCC; + case 2002/* EVT_PLAY_LIVE_STREAM_BEGIN */: return EventID.PLAY_EVT_RTMP_STREAM_BEGIN; + case 2003/* EVT_RENDER_FIRST_I_FRAME */: return EventID.PLAY_EVT_RCV_FIRST_I_FRAME; + case 2004/* EVT_VIDEO_PLAY_BEGIN */: return EventID.PLAY_EVT_PLAY_BEGIN; + case 2005/* EVT_VIDEO_PLAY_PROGRESS */: return EventID.PLAY_EVT_PLAY_PROGRESS; + case 2006/* EVT_VIDEO_PLAY_END */: return EventID.PLAY_EVT_PLAY_END; + case 2007/* EVT_VIDEO_PLAY_LOADING */: return EventID.PLAY_EVT_PLAY_LOADING; + case 2008/* EVT_START_VIDEO_DECODER */: return EventID.PLAY_EVT_START_VIDEO_DECODER; + case 2009/* EVT_DOWN_CHANGE_RESOLUTION */: return EventID.PLAY_EVT_CHANGE_RESOLUTION; + case 2010/* EVT_GET_VODFILE_MEDIAINFO_SUCC */: return EventID.PLAY_EVT_GET_PLAYINFO_SUCC; + case 2011/* EVT_VIDEO_CHANGE_ROTATION */: return EventID.PLAY_EVT_CHANGE_ROTATION; + case 2012/* EVT_PLAY_GET_MESSAGE */: return EventID.PLAY_EVT_GET_MESSAGE; + case 2013/* EVT_VOD_PLAY_PREPARED */: return EventID.PLAY_EVT_VOD_PLAY_PREPARED; + case 2014/* EVT_VOD_PLAY_LOADING_END */: return EventID.PLAY_EVT_VOD_LOADING_END; + case 2015/* EVT_PLAY_LIVE_STREAM_SWITCH_SUCC */: return EventID.PLAY_EVT_STREAM_SWITCH_SUCC; + case 2028/* EVT_PLAY_GET_METADATA */: return EventID.PLAY_EVT_GET_METADATA; + case 2030/* EVT_PLAY_GET_FLVSESSIONKEY */: return EventID.PLAY_EVT_GET_FLVSESSIONKEY; + case -2301/* ERR_PLAY_LIVE_STREAM_NET_DISCONNECT */: return EventID.PLAY_ERR_NET_DISCONNECT; + case -2302/* ERR_GET_RTMP_ACC_URL_FAIL */: return EventID.PLAY_ERR_GET_RTMP_ACC_URL_FAIL; + case -2303/* ERR_FILE_NOT_FOUND */: return EventID.PLAY_ERR_FILE_NOT_FOUND; + case -2304/* ERR_HEVC_DECODE_FAIL */: return EventID.PLAY_ERR_HEVC_DECODE_FAIL; + case -2305/* ERR_VOD_DECRYPT_FAIL */: return EventID.PLAY_ERR_HLS_KEY; + case -2306/* ERR_GET_VODFILE_MEDIAINFO_FAIL */: return EventID.PLAY_ERR_GET_PLAYINFO_FAIL; + case -2307/* ERR_PLAY_LIVE_STREAM_SWITCH_FAIL */: return EventID.PLAY_ERR_STREAM_SWITCH_FAIL; + case 2101/* WARNING_VIDEO_FRAME_DECODE_FAIL */: return EventID.PLAY_WARNING_VIDEO_DECODE_FAIL; + case 2102/* WARNING_AUDIO_FRAME_DECODE_FAIL */: return EventID.PLAY_WARNING_AUDIO_DECODE_FAIL; + case 2103/* WARNING_LIVE_STREAM_SERVER_RECONNECT */: return EventID.PLAY_WARNING_RECONNECT; + case 2104/* WARNING_RECV_DATA_LAG */: return EventID.PLAY_WARNING_RECV_DATA_LAG; + case 2105/* WARNING_VIDEO_PLAY_LAG */: return EventID.PLAY_WARNING_VIDEO_PLAY_LAG; + case 2106/* WARNING_HW_DECODER_START_FAIL */: return EventID.PLAY_WARNING_HW_ACCELERATION_FAIL; + case 2107: return EventID.PLAY_WARNING_VIDEO_DISCONTINUITY; + case 2108/* WARNING_VIDEO_DECODER_HW_TO_SW */: return EventID.PLAY_WARNING_FIRST_IDR_HW_DECODE_FAIL; + case 3001/* WARNING_RTMP_DNS_FAIL */: return EventID.PLAY_WARNING_DNS_FAIL; + case 3002/* WARNING_RTMP_SEVER_CONN_FAIL */: return EventID.PLAY_WARNING_SEVER_CONN_FAIL; + case 3003/* WARNING_RTMP_SHAKE_FAIL */: return EventID.PLAY_WARNING_SHAKE_FAIL; + case 3004/* WARNING_RTMP_SERVER_BREAK_CONNECT */: return EventID.PLAY_WARNING_SERVER_DISCONNECT; + case 3005/* WARNING_RTMP_READ_WRITE_FAIL */: return EventID.PLAY_WARNING_READ_WRITE_FAIL; + case 4001: return EventID.UGC_WRITE_FILE_FAIL; + default: return EventID.values[this + 1001/* EVT_RTMP_PUSH_CONNECT_SUCC */]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXAnimatedPaster.g.dart b/lib/src/ios/TXAnimatedPaster.g.dart new file mode 100644 index 0000000..ce7a080 --- /dev/null +++ b/lib/src/ios/TXAnimatedPaster.g.dart @@ -0,0 +1,181 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXAnimatedPaster extends NSObject { + //region constants + static const String name__ = 'TXAnimatedPaster'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXAnimatedPaster', {'init': init}); + final object = TXAnimatedPaster()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXAnimatedPaster', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXAnimatedPaster()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_animatedPasterpath() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_animatedPasterpath", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_frame() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_frame", {'__this__': this}); + return __result__ == null ? null : (CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_rotateAngle() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_rotateAngle", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_startTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_startTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_endTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_endTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_animatedPasterpath(String animatedPasterpath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXAnimatedPaster::set_animatedPasterpath', {'__this__': this, "animatedPasterpath": animatedPasterpath}); + + + } + + Future set_frame(CGRect frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXAnimatedPaster::set_frame', {'__this__': this, "frame": frame}); + + + } + + Future set_rotateAngle(double rotateAngle) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXAnimatedPaster::set_rotateAngle', {'__this__': this, "rotateAngle": rotateAngle}); + + + } + + Future set_startTime(double startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXAnimatedPaster::set_startTime', {'__this__': this, "startTime": startTime}); + + + } + + Future set_endTime(double endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXAnimatedPaster::set_endTime', {'__this__': this, "endTime": endTime}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXAnimatedPaster_Batch on List { + //region getters + Future> get_animatedPasterpath_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_animatedPasterpath_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_frame_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_frame_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_rotateAngle_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_rotateAngle_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_startTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_endTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXAnimatedPaster::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_animatedPasterpath_batch(List animatedPasterpath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXAnimatedPaster::set_animatedPasterpath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "animatedPasterpath": animatedPasterpath[__i__]}]); + + + } + + Future set_frame_batch(List frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXAnimatedPaster::set_frame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frame": frame[__i__]}]); + + + } + + Future set_rotateAngle_batch(List rotateAngle) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXAnimatedPaster::set_rotateAngle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "rotateAngle": rotateAngle[__i__]}]); + + + } + + Future set_startTime_batch(List startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXAnimatedPaster::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]); + + + } + + Future set_endTime_batch(List endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXAnimatedPaster::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXAudioCustomProcessDelegate.g.dart b/lib/src/ios/TXAudioCustomProcessDelegate.g.dart new file mode 100644 index 0000000..71ab45c --- /dev/null +++ b/lib/src/ios/TXAudioCustomProcessDelegate.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXAudioCustomProcessDelegate on NSObject { + + + + + + + + + @mustCallSuper + Future onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm(NSData data, int timeStamp, int sampleRate, int channels, bool withBgm) {} + + @mustCallSuper + Future onRecordPcmData_timeStamp_sampleRate_channels(NSData data, int timeStamp, int sampleRate, int channels) {} + +} + diff --git a/lib/src/ios/TXAudioRawDataDelegate.g.dart b/lib/src/ios/TXAudioRawDataDelegate.g.dart new file mode 100644 index 0000000..03b4a81 --- /dev/null +++ b/lib/src/ios/TXAudioRawDataDelegate.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXAudioRawDataDelegate on NSObject { + + + + + + + + + @mustCallSuper + Future onAudioInfoChanged_channels(int sampleRate, int channels) {} + + @mustCallSuper + Future onPcmDataAvailable_pts(NSData data, int timestamp) {} + +} + diff --git a/lib/src/ios/TXAudioRouteType.g.dart b/lib/src/ios/TXAudioRouteType.g.dart new file mode 100644 index 0000000..803b7f3 --- /dev/null +++ b/lib/src/ios/TXAudioRouteType.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXAudioRouteType { + AUDIO_ROUTE_SPEAKER /* 0 */, + AUDIO_ROUTE_RECEIVER /* 1 */ +} + +extension TXAudioRouteTypeToX on TXAudioRouteType { + int toValue() { + switch (this) { + case TXAudioRouteType.AUDIO_ROUTE_SPEAKER: return 0; + case TXAudioRouteType.AUDIO_ROUTE_RECEIVER: return 1; + default: return 0; + } + } +} + +extension TXAudioRouteTypeFromX on int { + TXAudioRouteType toTXAudioRouteType() { + switch (this) { + case 0: return TXAudioRouteType.AUDIO_ROUTE_SPEAKER; + case 1: return TXAudioRouteType.AUDIO_ROUTE_RECEIVER; + default: return TXAudioRouteType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXAudioSampleRate.g.dart b/lib/src/ios/TXAudioSampleRate.g.dart new file mode 100644 index 0000000..5ceb1b6 --- /dev/null +++ b/lib/src/ios/TXAudioSampleRate.g.dart @@ -0,0 +1,34 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXAudioSampleRate { + AUDIO_SAMPLERATE_8000 /* 0 */, + AUDIO_SAMPLERATE_16000 /* null */, + AUDIO_SAMPLERATE_32000 /* null */, + AUDIO_SAMPLERATE_44100 /* null */, + AUDIO_SAMPLERATE_48000 /* null */ +} + +extension TXAudioSampleRateToX on TXAudioSampleRate { + int toValue() { + switch (this) { + case TXAudioSampleRate.AUDIO_SAMPLERATE_8000: return 0; + case TXAudioSampleRate.AUDIO_SAMPLERATE_16000: return TXAudioSampleRate.AUDIO_SAMPLERATE_16000.index + 0; + case TXAudioSampleRate.AUDIO_SAMPLERATE_32000: return TXAudioSampleRate.AUDIO_SAMPLERATE_32000.index + 0; + case TXAudioSampleRate.AUDIO_SAMPLERATE_44100: return TXAudioSampleRate.AUDIO_SAMPLERATE_44100.index + 0; + case TXAudioSampleRate.AUDIO_SAMPLERATE_48000: return TXAudioSampleRate.AUDIO_SAMPLERATE_48000.index + 0; + default: return 0; + } + } +} + +extension TXAudioSampleRateFromX on int { + TXAudioSampleRate toTXAudioSampleRate() { + switch (this) { + case 0: return TXAudioSampleRate.AUDIO_SAMPLERATE_8000; + default: return TXAudioSampleRate.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXBeautyManager.g.dart b/lib/src/ios/TXBeautyManager.g.dart new file mode 100644 index 0000000..efd5735 --- /dev/null +++ b/lib/src/ios/TXBeautyManager.g.dart @@ -0,0 +1,1239 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXBeautyManager extends NSObject { + //region constants + static const String name__ = 'TXBeautyManager'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXBeautyManager', {'init': init}); + final object = TXBeautyManager()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXBeautyManager', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXBeautyManager()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future setBeautyStyle(TXBeautyStyle beautyStyle) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setBeautyStyle([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setBeautyStyle', {"beautyStyle": beautyStyle.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setBeautyLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setBeautyLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setWhitenessLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setWhitenessLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setWhitenessLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRuddyLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setRuddyLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setRuddyLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilter(UIImage image) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFilter([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFilter', {"image": image, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilterStrength(double strength) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFilterStrength([\'strength\':$strength])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFilterStrength', {"strength": strength, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setGreenScreenFile(String file) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setGreenScreenFile([\'file\':$file])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setGreenScreenFile', {"file": file, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeScaleLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setEyeScaleLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeScaleLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceSlimLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFaceSlimLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceSlimLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceVLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFaceVLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceVLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setChinLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setChinLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setChinLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceShortLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFaceShortLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceShortLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setNoseSlimLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setNoseSlimLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNoseSlimLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeLightenLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setEyeLightenLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeLightenLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setToothWhitenLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setToothWhitenLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setToothWhitenLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setWrinkleRemoveLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setWrinkleRemoveLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setWrinkleRemoveLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPounchRemoveLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setPounchRemoveLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setPounchRemoveLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSmileLinesRemoveLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setSmileLinesRemoveLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setSmileLinesRemoveLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setForeheadLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setForeheadLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setForeheadLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeDistanceLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setEyeDistanceLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeDistanceLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeAngleLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setEyeAngleLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeAngleLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMouthShapeLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setMouthShapeLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMouthShapeLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setNoseWingLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setNoseWingLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNoseWingLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setNosePositionLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setNosePositionLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNosePositionLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLipsThicknessLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setLipsThicknessLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setLipsThicknessLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceBeautyLevel(double level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setFaceBeautyLevel([\'level\':$level])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceBeautyLevel', {"level": level, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMotionTmpl_inDir(String tmplName, String tmplDir) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setMotionTmpl([\'tmplName\':$tmplName, \'tmplDir\':$tmplDir])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMotionTmpl_inDir', {"tmplName": tmplName, "tmplDir": tmplDir, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMotionMute(bool motionMute) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXBeautyManager@$refId::setMotionMute([\'motionMute\':$motionMute])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMotionMute', {"motionMute": motionMute, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXBeautyManager_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> setBeautyStyle_batch(List beautyStyle) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setBeautyStyle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"beautyStyle": beautyStyle[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setBeautyLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setWhitenessLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setWhitenessLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRuddyLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setRuddyLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilter_batch(List image) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"image": image[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilterStrength_batch(List strength) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFilterStrength_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"strength": strength[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setGreenScreenFile_batch(List file) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setGreenScreenFile_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"file": file[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeScaleLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceSlimLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceVLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceVLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setChinLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setChinLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceShortLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceShortLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setNoseSlimLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNoseSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeLightenLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeLightenLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setToothWhitenLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setToothWhitenLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setWrinkleRemoveLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setWrinkleRemoveLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPounchRemoveLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setPounchRemoveLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSmileLinesRemoveLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setSmileLinesRemoveLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setForeheadLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setForeheadLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeDistanceLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeDistanceLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeAngleLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setEyeAngleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMouthShapeLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMouthShapeLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setNoseWingLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNoseWingLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setNosePositionLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setNosePositionLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLipsThicknessLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setLipsThicknessLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceBeautyLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setFaceBeautyLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"level": level[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMotionTmpl_inDir_batch(List tmplName, List tmplDir) async { + if (tmplName.length != tmplDir.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMotionTmpl_inDir_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"tmplName": tmplName[__i__], "tmplDir": tmplDir[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMotionMute_batch(List motionMute) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBeautyManager::setMotionMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"motionMute": motionMute[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXBeautyStyle.g.dart b/lib/src/ios/TXBeautyStyle.g.dart new file mode 100644 index 0000000..c6ca2ec --- /dev/null +++ b/lib/src/ios/TXBeautyStyle.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXBeautyStyle { + TXBeautyStyleSmooth /* 0 */, + TXBeautyStyleNature /* 1 */, + TXBeautyStylePitu /* 2 */ +} + +extension TXBeautyStyleToX on TXBeautyStyle { + int toValue() { + switch (this) { + case TXBeautyStyle.TXBeautyStyleSmooth: return 0; + case TXBeautyStyle.TXBeautyStyleNature: return 1; + case TXBeautyStyle.TXBeautyStylePitu: return 2; + default: return 0; + } + } +} + +extension TXBeautyStyleFromX on int { + TXBeautyStyle toTXBeautyStyle() { + switch (this) { + case 0: return TXBeautyStyle.TXBeautyStyleSmooth; + case 1: return TXBeautyStyle.TXBeautyStyleNature; + case 2: return TXBeautyStyle.TXBeautyStylePitu; + default: return TXBeautyStyle.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXBitrateItem.g.dart b/lib/src/ios/TXBitrateItem.g.dart new file mode 100644 index 0000000..9bdd986 --- /dev/null +++ b/lib/src/ios/TXBitrateItem.g.dart @@ -0,0 +1,157 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXBitrateItem extends NSObject { + //region constants + static const String name__ = 'TXBitrateItem'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXBitrateItem', {'init': init}); + final object = TXBitrateItem()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXBitrateItem', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXBitrateItem()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_index() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_index", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_width() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_width", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_height() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_height", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_bitrate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_bitrate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_index(int index) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBitrateItem::set_index', {'__this__': this, "index": index}); + + + } + + Future set_width(int width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBitrateItem::set_width', {'__this__': this, "width": width}); + + + } + + Future set_height(int height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBitrateItem::set_height', {'__this__': this, "height": height}); + + + } + + Future set_bitrate(int bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXBitrateItem::set_bitrate', {'__this__': this, "bitrate": bitrate}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXBitrateItem_Batch on List { + //region getters + Future> get_index_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_index_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_width_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_width_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_height_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_height_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_bitrate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXBitrateItem::get_bitrate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_index_batch(List index) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXBitrateItem::set_index_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "index": index[__i__]}]); + + + } + + Future set_width_batch(List width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXBitrateItem::set_width_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "width": width[__i__]}]); + + + } + + Future set_height_batch(List height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXBitrateItem::set_height_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "height": height[__i__]}]); + + + } + + Future set_bitrate_batch(List bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXBitrateItem::set_bitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bitrate": bitrate[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXCAVRoom.g.dart b/lib/src/ios/TXCAVRoom.g.dart new file mode 100644 index 0000000..38d4baa --- /dev/null +++ b/lib/src/ios/TXCAVRoom.g.dart @@ -0,0 +1,1212 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXCAVRoom extends NSObject { + //region constants + static const String name__ = 'TXCAVRoom'; + + + //endregion + + //region creators + + //endregion + + //region getters + + //endregion + + //region setters + Future set_delegate(TXCAVRoomListener delegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::set_delegate', {'__this__': this, }); + + MethodChannel('TXCAVRoomListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXCAVRoomListener::onAVRoomStatus': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAVRoomStatus([\'array\':${args['array']}])'); + } + + // handle the native call + delegate?.onAVRoomStatus((args['array'] as List).cast().map((__it__) => TypeOpTencentLiveFluttifyIOS(__it__).as__()).toList()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + //endregion + + //region methods + + Future> getRoomMemberList() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::getRoomMemberList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::getRoomMemberList', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = (__result__ as List).cast(); + return __return__; + } + } + + + Future> getRoomVideoList() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::getRoomVideoList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::getRoomVideoList', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = (__result__ as List).cast(); + return __return__; + } + } + + + Future isInRoom() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::isInRoom([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::isInRoom', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isPushing() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::isPushing([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::isPushing', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enterRoom_withCompletion(TXCAVRoomParam param, void completion(int result)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::enterRoom([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::enterRoom_withCompletion', {"param": param, "__this__": this}); + + + // handle native call + MethodChannel('TXIAVRoomCompletionHandler::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (completion != null) completion(args['result']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future exitRoom(void completion(int result)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::exitRoom([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::exitRoom', {"__this__": this}); + + + // handle native call + MethodChannel('TXIAVRoomCompletionHandler::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (completion != null) completion(args['result']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startLocalPreview(UIView view) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::startLocalPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::startLocalPreview', {"view": view, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopLocalPreview() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::stopLocalPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::stopLocalPreview', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderMode(TXEAVRoomRenderMode renderMode) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setRenderMode([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setRenderMode', {"renderMode": renderMode.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future switchCamera() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::switchCamera([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::switchCamera', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMirror(bool isMirror) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setMirror([\'isMirror\':$isMirror])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setMirror', {"isMirror": isMirror, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioMode(TXEAVRoomAudioMode audioMode) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setAudioMode([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setAudioMode', {"audioMode": audioMode.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLocalMute(bool bEnable) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setLocalMute([\'bEnable\':$bEnable])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setLocalMute', {"bEnable": bEnable, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pause() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::pause([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::pause', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resume() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::resume([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::resume', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoBitrate_videoAspect(int videoBitrate, TXEAVRoomVideoAspect videoAspect) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setVideoBitrate([\'videoBitrate\':$videoBitrate])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setVideoBitrate_videoAspect', {"videoBitrate": videoBitrate, "videoAspect": videoAspect.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyLevel_whitenessLevel_ruddinessLevel(int beautyLevel, int whitenessLevel, int ruddinessLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setBeautyLevel([\'beautyLevel\':$beautyLevel, \'whitenessLevel\':$whitenessLevel, \'ruddinessLevel\':$ruddinessLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setBeautyLevel_whitenessLevel_ruddinessLevel', {"beautyLevel": beautyLevel, "whitenessLevel": whitenessLevel, "ruddinessLevel": ruddinessLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeScaleLevel(double eyeScaleLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setEyeScaleLevel([\'eyeScaleLevel\':$eyeScaleLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setEyeScaleLevel', {"eyeScaleLevel": eyeScaleLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceScaleLevel(double faceScaleLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setFaceScaleLevel([\'faceScaleLevel\':$faceScaleLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceScaleLevel', {"faceScaleLevel": faceScaleLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilter(UIImage filterImage) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setFilter([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFilter', {"filterImage": filterImage, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future selectMotionTmpl_inDir(String tmplName, String tmplDir) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::selectMotionTmpl([\'tmplName\':$tmplName, \'tmplDir\':$tmplDir])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::selectMotionTmpl_inDir', {"tmplName": tmplName, "tmplDir": tmplDir, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceVLevel(double vLeve) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setFaceVLevel([\'vLeve\':$vLeve])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceVLevel', {"vLeve": vLeve, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceShortLevel(double shortLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setFaceShortLevel([\'shortLevel\':$shortLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceShortLevel', {"shortLevel": shortLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setNoseSlimLevel(double slimLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setNoseSlimLevel([\'slimLevel\':$slimLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setNoseSlimLevel', {"slimLevel": slimLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setChinLevel(double chinLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setChinLevel([\'chinLevel\':$chinLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setChinLevel', {"chinLevel": chinLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyStyle(int style) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setBeautyStyle([\'style\':$style])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setBeautyStyle', {"style": style, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilterMixLevel(double mixLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXCAVRoom@$refId::setFilterMixLevel([\'mixLevel\':$mixLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFilterMixLevel', {"mixLevel": mixLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXCAVRoom_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future>> getRoomMemberList_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::getRoomMemberList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as List).cast()).toList(); + return typedResult; + } + } + + + Future>> getRoomVideoList_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::getRoomVideoList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as List).cast()).toList(); + return typedResult; + } + } + + + Future> isInRoom_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::isInRoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isPushing_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::isPushing_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startLocalPreview_batch(List view) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::startLocalPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"view": view[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopLocalPreview_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::stopLocalPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderMode_batch(List renderMode) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setRenderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"renderMode": renderMode[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> switchCamera_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::switchCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMirror_batch(List isMirror) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setMirror_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isMirror": isMirror[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAudioMode_batch(List audioMode) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setAudioMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"audioMode": audioMode[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLocalMute_batch(List bEnable) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setLocalMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"bEnable": bEnable[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pause_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::pause_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resume_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::resume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoBitrate_videoAspect_batch(List videoBitrate, List videoAspect) async { + if (videoBitrate.length != videoAspect.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setVideoBitrate_videoAspect_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoBitrate": videoBitrate[__i__], "videoAspect": videoAspect[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyLevel_whitenessLevel_ruddinessLevel_batch(List beautyLevel, List whitenessLevel, List ruddinessLevel) async { + if (beautyLevel.length != whitenessLevel.length || whitenessLevel.length != ruddinessLevel.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setBeautyLevel_whitenessLevel_ruddinessLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"beautyLevel": beautyLevel[__i__], "whitenessLevel": whitenessLevel[__i__], "ruddinessLevel": ruddinessLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeScaleLevel_batch(List eyeScaleLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setEyeScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"eyeScaleLevel": eyeScaleLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceScaleLevel_batch(List faceScaleLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"faceScaleLevel": faceScaleLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilter_batch(List filterImage) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"filterImage": filterImage[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> selectMotionTmpl_inDir_batch(List tmplName, List tmplDir) async { + if (tmplName.length != tmplDir.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::selectMotionTmpl_inDir_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"tmplName": tmplName[__i__], "tmplDir": tmplDir[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceVLevel_batch(List vLeve) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceVLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"vLeve": vLeve[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceShortLevel_batch(List shortLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFaceShortLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"shortLevel": shortLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setNoseSlimLevel_batch(List slimLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setNoseSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"slimLevel": slimLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setChinLevel_batch(List chinLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setChinLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"chinLevel": chinLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyStyle_batch(List style) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setBeautyStyle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"style": style[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilterMixLevel_batch(List mixLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoom::setFilterMixLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"mixLevel": mixLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXCAVRoomConfig.g.dart b/lib/src/ios/TXCAVRoomConfig.g.dart new file mode 100644 index 0000000..4d06681 --- /dev/null +++ b/lib/src/ios/TXCAVRoomConfig.g.dart @@ -0,0 +1,325 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXCAVRoomConfig extends NSObject { + //region constants + static const String name__ = 'TXCAVRoomConfig'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXCAVRoomConfig', {'init': init}); + final object = TXCAVRoomConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXCAVRoomConfig', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXCAVRoomConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_enableVideoHWAcceleration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableVideoHWAcceleration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAudioHWAcceleration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableAudioHWAcceleration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_homeOrientation() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_homeOrientation", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_renderMode() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_renderMode", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoFPS() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoFPS", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoBitrate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoBitrate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoAspect() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoAspect", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_frontCamera() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_frontCamera", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_pauseFps() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseFps", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_pauseImg() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseImg", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_enablePureAudioPush() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enablePureAudioPush", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_enableVideoHWAcceleration(bool enableVideoHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enableVideoHWAcceleration', {'__this__': this, "enableVideoHWAcceleration": enableVideoHWAcceleration}); + + + } + + Future set_enableAudioHWAcceleration(bool enableAudioHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enableAudioHWAcceleration', {'__this__': this, "enableAudioHWAcceleration": enableAudioHWAcceleration}); + + + } + + Future set_homeOrientation(int homeOrientation) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_homeOrientation', {'__this__': this, "homeOrientation": homeOrientation}); + + + } + + Future set_renderMode(int renderMode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_renderMode', {'__this__': this, "renderMode": renderMode}); + + + } + + Future set_videoFPS(int videoFPS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoFPS', {'__this__': this, "videoFPS": videoFPS}); + + + } + + Future set_videoBitrate(int videoBitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoBitrate', {'__this__': this, "videoBitrate": videoBitrate}); + + + } + + Future set_videoAspect(int videoAspect) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoAspect', {'__this__': this, "videoAspect": videoAspect}); + + + } + + Future set_frontCamera(bool frontCamera) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_frontCamera', {'__this__': this, "frontCamera": frontCamera}); + + + } + + Future set_pauseFps(int pauseFps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_pauseFps', {'__this__': this, "pauseFps": pauseFps}); + + + } + + Future set_pauseImg(UIImage pauseImg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_pauseImg', {'__this__': this, "pauseImg": pauseImg}); + + + } + + Future set_enablePureAudioPush(bool enablePureAudioPush) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enablePureAudioPush', {'__this__': this, "enablePureAudioPush": enablePureAudioPush}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXCAVRoomConfig_Batch on List { + //region getters + Future> get_enableVideoHWAcceleration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableVideoHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAudioHWAcceleration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableAudioHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_homeOrientation_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_homeOrientation_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_renderMode_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_renderMode_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoFPS_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoFPS_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoBitrate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoBitrate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoAspect_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoAspect_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_frontCamera_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_frontCamera_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_pauseFps_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseFps_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_pauseImg_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseImg_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_enablePureAudioPush_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enablePureAudioPush_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_enableVideoHWAcceleration_batch(List enableVideoHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enableVideoHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableVideoHWAcceleration": enableVideoHWAcceleration[__i__]}]); + + + } + + Future set_enableAudioHWAcceleration_batch(List enableAudioHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enableAudioHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAudioHWAcceleration": enableAudioHWAcceleration[__i__]}]); + + + } + + Future set_homeOrientation_batch(List homeOrientation) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_homeOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "homeOrientation": homeOrientation[__i__]}]); + + + } + + Future set_renderMode_batch(List renderMode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_renderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "renderMode": renderMode[__i__]}]); + + + } + + Future set_videoFPS_batch(List videoFPS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoFPS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoFPS": videoFPS[__i__]}]); + + + } + + Future set_videoBitrate_batch(List videoBitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBitrate": videoBitrate[__i__]}]); + + + } + + Future set_videoAspect_batch(List videoAspect) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoAspect_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoAspect": videoAspect[__i__]}]); + + + } + + Future set_frontCamera_batch(List frontCamera) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_frontCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frontCamera": frontCamera[__i__]}]); + + + } + + Future set_pauseFps_batch(List pauseFps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_pauseFps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseFps": pauseFps[__i__]}]); + + + } + + Future set_pauseImg_batch(List pauseImg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_pauseImg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseImg": pauseImg[__i__]}]); + + + } + + Future set_enablePureAudioPush_batch(List enablePureAudioPush) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enablePureAudioPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enablePureAudioPush": enablePureAudioPush[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXCAVRoomListener.g.dart b/lib/src/ios/TXCAVRoomListener.g.dart new file mode 100644 index 0000000..9953e1e --- /dev/null +++ b/lib/src/ios/TXCAVRoomListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXCAVRoomListener on NSObject { + + + + + + + + + @mustCallSuper + Future onAVRoomStatus(List array) {} + +} + diff --git a/lib/src/ios/TXCAVRoomParam.g.dart b/lib/src/ios/TXCAVRoomParam.g.dart new file mode 100644 index 0000000..69c02b1 --- /dev/null +++ b/lib/src/ios/TXCAVRoomParam.g.dart @@ -0,0 +1,133 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXCAVRoomParam extends NSObject { + //region constants + static const String name__ = 'TXCAVRoomParam'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXCAVRoomParam', {'init': init}); + final object = TXCAVRoomParam()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXCAVRoomParam', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXCAVRoomParam()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_roomID() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_roomID", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_authBits() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_authBits", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXEAVRoomAuthBits()); + } + + Future get_authBuffer() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_authBuffer", {'__this__': this}); + return __result__ == null ? null : (NSData()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + //endregion + + //region setters + Future set_roomID(int roomID) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomParam::set_roomID', {'__this__': this, "roomID": roomID}); + + + } + + Future set_authBits(TXEAVRoomAuthBits authBits) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomParam::set_authBits', {'__this__': this, "authBits": authBits.toValue()}); + + + } + + Future set_authBuffer(NSData authBuffer) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomParam::set_authBuffer', {'__this__': this, "authBuffer": authBuffer}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXCAVRoomParam_Batch on List { + //region getters + Future> get_roomID_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_roomID_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_authBits_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_authBits_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXEAVRoomAuthBits()).toList(); + return typedResult; + } + + Future> get_authBuffer_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomParam::get_authBuffer_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => NSData()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_roomID_batch(List roomID) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomParam::set_roomID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "roomID": roomID[__i__]}]); + + + } + + Future set_authBits_batch(List authBits) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomParam::set_authBits_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "authBits": authBits[__i__].toValue()}]); + + + } + + Future set_authBuffer_batch(List authBuffer) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomParam::set_authBuffer_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "authBuffer": authBuffer[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXDownloadError.g.dart b/lib/src/ios/TXDownloadError.g.dart new file mode 100644 index 0000000..1e1f1fb --- /dev/null +++ b/lib/src/ios/TXDownloadError.g.dart @@ -0,0 +1,44 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXDownloadError { + TXDownloadSuccess /* 0 */, + TXDownloadAuthFaild /* -5001 */, + TXDownloadNoFile /* -5003 */, + TXDownloadFormatError /* -5004 */, + TXDownloadDisconnet /* -5005 */, + TXDownloadHlsKeyError /* -5006 */, + TXDownloadPathError /* -5007 */ +} + +extension TXDownloadErrorToX on TXDownloadError { + int toValue() { + switch (this) { + case TXDownloadError.TXDownloadSuccess: return 0; + case TXDownloadError.TXDownloadAuthFaild: return -5001; + case TXDownloadError.TXDownloadNoFile: return -5003; + case TXDownloadError.TXDownloadFormatError: return -5004; + case TXDownloadError.TXDownloadDisconnet: return -5005; + case TXDownloadError.TXDownloadHlsKeyError: return -5006; + case TXDownloadError.TXDownloadPathError: return -5007; + default: return 0; + } + } +} + +extension TXDownloadErrorFromX on int { + TXDownloadError toTXDownloadError() { + switch (this) { + case 0: return TXDownloadError.TXDownloadSuccess; + case -5001: return TXDownloadError.TXDownloadAuthFaild; + case -5003: return TXDownloadError.TXDownloadNoFile; + case -5004: return TXDownloadError.TXDownloadFormatError; + case -5005: return TXDownloadError.TXDownloadDisconnet; + case -5006: return TXDownloadError.TXDownloadHlsKeyError; + case -5007: return TXDownloadError.TXDownloadPathError; + default: return TXDownloadError.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomAudioMode.g.dart b/lib/src/ios/TXEAVRoomAudioMode.g.dart new file mode 100644 index 0000000..ff457b9 --- /dev/null +++ b/lib/src/ios/TXEAVRoomAudioMode.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomAudioMode { + AVROOM_AUDIO_MODE_SPEAKER /* 0 */, + AVROOM_AUDIO_MODE_RECEIVER /* 1 */ +} + +extension TXEAVRoomAudioModeToX on TXEAVRoomAudioMode { + int toValue() { + switch (this) { + case TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_SPEAKER: return 0; + case TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_RECEIVER: return 1; + default: return 0; + } + } +} + +extension TXEAVRoomAudioModeFromX on int { + TXEAVRoomAudioMode toTXEAVRoomAudioMode() { + switch (this) { + case 0: return TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_SPEAKER; + case 1: return TXEAVRoomAudioMode.AVROOM_AUDIO_MODE_RECEIVER; + default: return TXEAVRoomAudioMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomAuthBits.g.dart b/lib/src/ios/TXEAVRoomAuthBits.g.dart new file mode 100644 index 0000000..f9be486 --- /dev/null +++ b/lib/src/ios/TXEAVRoomAuthBits.g.dart @@ -0,0 +1,50 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomAuthBits { + AVROOM_AUTH_BITS_DEFAULT /* -1 */, + AVROOM_AUTH_BITS_CREATE_ROOM /* 0x00000001 */, + AVROOM_AUTH_BITS_JOIN_ROOM /* 0x00000002 */, + AVROOM_AUTH_BITS_SEND_AUDIO /* 0x00000004 */, + AVROOM_AUTH_BITS_RECV_AUDIO /* 0x00000008 */, + AVROOM_AUTH_BITS_SEND_CAMERA_VIDEO /* 0x00000010 */, + AVROOM_AUTH_BITS_RECV_CAMERA_VIDEO /* 0x00000020 */, + AVROOM_AUTH_BITS_SEND_SCREEN_VIDEO /* 0x00000040 */, + AVROOM_AUTH_BITS_RECV_SCREEN_VIDEO /* 0x00000080 */ +} + +extension TXEAVRoomAuthBitsToX on TXEAVRoomAuthBits { + int toValue() { + switch (this) { + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_DEFAULT: return -1; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_CREATE_ROOM: return 0x00000001; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_JOIN_ROOM: return 0x00000002; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_AUDIO: return 0x00000004; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_AUDIO: return 0x00000008; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_CAMERA_VIDEO: return 0x00000010; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_CAMERA_VIDEO: return 0x00000020; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_SCREEN_VIDEO: return 0x00000040; + case TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_SCREEN_VIDEO: return 0x00000080; + default: return 0; + } + } +} + +extension TXEAVRoomAuthBitsFromX on int { + TXEAVRoomAuthBits toTXEAVRoomAuthBits() { + switch (this) { + case -1: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_DEFAULT; + case 0x00000001: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_CREATE_ROOM; + case 0x00000002: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_JOIN_ROOM; + case 0x00000004: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_AUDIO; + case 0x00000008: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_AUDIO; + case 0x00000010: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_CAMERA_VIDEO; + case 0x00000020: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_CAMERA_VIDEO; + case 0x00000040: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_SEND_SCREEN_VIDEO; + case 0x00000080: return TXEAVRoomAuthBits.AVROOM_AUTH_BITS_RECV_SCREEN_VIDEO; + default: return TXEAVRoomAuthBits.values[this + -1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomEventID.g.dart b/lib/src/ios/TXEAVRoomEventID.g.dart new file mode 100644 index 0000000..48b80ea --- /dev/null +++ b/lib/src/ios/TXEAVRoomEventID.g.dart @@ -0,0 +1,125 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomEventID { + AVROOM_EVT_REQUEST_IP_SUCC /* 1001 */, + AVROOM_EVT_CONNECT_SUCC /* 1002 */, + AVROOM_EVT_ENTER_ROOM_SUCC /* 1003 */, + AVROOM_EVT_EXIT_ROOM_SUCC /* 1004 */, + AVROOM_EVT_REQUEST_AVSEAT_SUCC /* 1005 */, + AVROOM_ERR_REQUEST_IP_FAIL /* -1001 */, + AVROOM_ERR_CONNECT_FAILE /* -1002 */, + AVROOM_ERR_ENTER_ROOM_FAIL /* -1003 */, + AVROOM_ERR_EXIT_ROOM_FAIL /* -1004 */, + AVROOM_ERR_REQUEST_AVSEAT_FAIL /* -1005 */, + AVROOM_WARNING_DISCONNECT /* 2001 */, + AVROOM_WARNING_RECONNECT /* 2002 */, + AVROOM_WARNING_NET_BUSY /* 2003 */, + AVROOM_EVT_OPEN_CAMERA_SUCC /* 3001 */, + AVROOM_EVT_START_VIDEO_ENCODER /* 3002 */, + AVROOM_EVT_UP_CHANGE_RESOLUTION /* 3003 */, + AVROOM_EVT_UP_CHANGE_BITRATE /* 3004 */, + AVROOM_EVT_FIRST_FRAME_AVAILABLE /* 3005 */, + AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL /* 3101 */, + AVROOM_ERR_OPEN_CAMERA_FAIL /* -3001 */, + AVROOM_ERR_OPEN_MIC_FAIL /* -3002 */, + AVROOM_ERR_VIDEO_ENCODE_FAIL /* -3003 */, + AVROOM_ERR_AUDIO_ENCODE_FAIL /* -3004 */, + AVROOM_ERR_UNSUPPORTED_RESOLUTION /* -3005 */, + AVROOM_ERR_UNSUPPORTED_SAMPLERATE /* -3006 */, + AVROOM_EVT_RCV_FIRST_I_FRAME /* 4001 */, + AVROOM_EVT_PLAY_BEGIN /* 4002 */, + AVROOM_EVT_PLAY_LOADING /* 4003 */, + AVROOM_EVT_START_VIDEO_DECODER /* 4004 */, + AVROOM_EVT_DOWN_CHANGE_RESOLUTION /* 4005 */, + AVROOM_WARNING_VIDEO_DECODE_FAIL /* 4101 */, + AVROOM_WARNING_AUDIO_DECODE_FAIL /* 4102 */, + AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL /* 4103 */, + AVROOM_WARNING_VIDEO_PLAY_LAG /* 4104 */ +} + +extension TXEAVRoomEventIDToX on TXEAVRoomEventID { + int toValue() { + switch (this) { + case TXEAVRoomEventID.AVROOM_EVT_REQUEST_IP_SUCC: return 1001; + case TXEAVRoomEventID.AVROOM_EVT_CONNECT_SUCC: return 1002; + case TXEAVRoomEventID.AVROOM_EVT_ENTER_ROOM_SUCC: return 1003; + case TXEAVRoomEventID.AVROOM_EVT_EXIT_ROOM_SUCC: return 1004; + case TXEAVRoomEventID.AVROOM_EVT_REQUEST_AVSEAT_SUCC: return 1005; + case TXEAVRoomEventID.AVROOM_ERR_REQUEST_IP_FAIL: return -1001; + case TXEAVRoomEventID.AVROOM_ERR_CONNECT_FAILE: return -1002; + case TXEAVRoomEventID.AVROOM_ERR_ENTER_ROOM_FAIL: return -1003; + case TXEAVRoomEventID.AVROOM_ERR_EXIT_ROOM_FAIL: return -1004; + case TXEAVRoomEventID.AVROOM_ERR_REQUEST_AVSEAT_FAIL: return -1005; + case TXEAVRoomEventID.AVROOM_WARNING_DISCONNECT: return 2001; + case TXEAVRoomEventID.AVROOM_WARNING_RECONNECT: return 2002; + case TXEAVRoomEventID.AVROOM_WARNING_NET_BUSY: return 2003; + case TXEAVRoomEventID.AVROOM_EVT_OPEN_CAMERA_SUCC: return 3001; + case TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_ENCODER: return 3002; + case TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_RESOLUTION: return 3003; + case TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_BITRATE: return 3004; + case TXEAVRoomEventID.AVROOM_EVT_FIRST_FRAME_AVAILABLE: return 3005; + case TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL: return 3101; + case TXEAVRoomEventID.AVROOM_ERR_OPEN_CAMERA_FAIL: return -3001; + case TXEAVRoomEventID.AVROOM_ERR_OPEN_MIC_FAIL: return -3002; + case TXEAVRoomEventID.AVROOM_ERR_VIDEO_ENCODE_FAIL: return -3003; + case TXEAVRoomEventID.AVROOM_ERR_AUDIO_ENCODE_FAIL: return -3004; + case TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_RESOLUTION: return -3005; + case TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_SAMPLERATE: return -3006; + case TXEAVRoomEventID.AVROOM_EVT_RCV_FIRST_I_FRAME: return 4001; + case TXEAVRoomEventID.AVROOM_EVT_PLAY_BEGIN: return 4002; + case TXEAVRoomEventID.AVROOM_EVT_PLAY_LOADING: return 4003; + case TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_DECODER: return 4004; + case TXEAVRoomEventID.AVROOM_EVT_DOWN_CHANGE_RESOLUTION: return 4005; + case TXEAVRoomEventID.AVROOM_WARNING_VIDEO_DECODE_FAIL: return 4101; + case TXEAVRoomEventID.AVROOM_WARNING_AUDIO_DECODE_FAIL: return 4102; + case TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL: return 4103; + case TXEAVRoomEventID.AVROOM_WARNING_VIDEO_PLAY_LAG: return 4104; + default: return 0; + } + } +} + +extension TXEAVRoomEventIDFromX on int { + TXEAVRoomEventID toTXEAVRoomEventID() { + switch (this) { + case 1001: return TXEAVRoomEventID.AVROOM_EVT_REQUEST_IP_SUCC; + case 1002: return TXEAVRoomEventID.AVROOM_EVT_CONNECT_SUCC; + case 1003: return TXEAVRoomEventID.AVROOM_EVT_ENTER_ROOM_SUCC; + case 1004: return TXEAVRoomEventID.AVROOM_EVT_EXIT_ROOM_SUCC; + case 1005: return TXEAVRoomEventID.AVROOM_EVT_REQUEST_AVSEAT_SUCC; + case -1001: return TXEAVRoomEventID.AVROOM_ERR_REQUEST_IP_FAIL; + case -1002: return TXEAVRoomEventID.AVROOM_ERR_CONNECT_FAILE; + case -1003: return TXEAVRoomEventID.AVROOM_ERR_ENTER_ROOM_FAIL; + case -1004: return TXEAVRoomEventID.AVROOM_ERR_EXIT_ROOM_FAIL; + case -1005: return TXEAVRoomEventID.AVROOM_ERR_REQUEST_AVSEAT_FAIL; + case 2001: return TXEAVRoomEventID.AVROOM_WARNING_DISCONNECT; + case 2002: return TXEAVRoomEventID.AVROOM_WARNING_RECONNECT; + case 2003: return TXEAVRoomEventID.AVROOM_WARNING_NET_BUSY; + case 3001: return TXEAVRoomEventID.AVROOM_EVT_OPEN_CAMERA_SUCC; + case 3002: return TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_ENCODER; + case 3003: return TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_RESOLUTION; + case 3004: return TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_BITRATE; + case 3005: return TXEAVRoomEventID.AVROOM_EVT_FIRST_FRAME_AVAILABLE; + case 3101: return TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL; + case -3001: return TXEAVRoomEventID.AVROOM_ERR_OPEN_CAMERA_FAIL; + case -3002: return TXEAVRoomEventID.AVROOM_ERR_OPEN_MIC_FAIL; + case -3003: return TXEAVRoomEventID.AVROOM_ERR_VIDEO_ENCODE_FAIL; + case -3004: return TXEAVRoomEventID.AVROOM_ERR_AUDIO_ENCODE_FAIL; + case -3005: return TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_RESOLUTION; + case -3006: return TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_SAMPLERATE; + case 4001: return TXEAVRoomEventID.AVROOM_EVT_RCV_FIRST_I_FRAME; + case 4002: return TXEAVRoomEventID.AVROOM_EVT_PLAY_BEGIN; + case 4003: return TXEAVRoomEventID.AVROOM_EVT_PLAY_LOADING; + case 4004: return TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_DECODER; + case 4005: return TXEAVRoomEventID.AVROOM_EVT_DOWN_CHANGE_RESOLUTION; + case 4101: return TXEAVRoomEventID.AVROOM_WARNING_VIDEO_DECODE_FAIL; + case 4102: return TXEAVRoomEventID.AVROOM_WARNING_AUDIO_DECODE_FAIL; + case 4103: return TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL; + case 4104: return TXEAVRoomEventID.AVROOM_WARNING_VIDEO_PLAY_LAG; + default: return TXEAVRoomEventID.values[this + 1001]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomHomeOrientation.g.dart b/lib/src/ios/TXEAVRoomHomeOrientation.g.dart new file mode 100644 index 0000000..bd32cdd --- /dev/null +++ b/lib/src/ios/TXEAVRoomHomeOrientation.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomHomeOrientation { + AVROOM_HOME_ORIENTATION_RIGHT /* 0 */, + AVROOM_HOME_ORIENTATION_DOWN /* null */, + AVROOM_HOME_ORIENTATION_LEFT /* null */, + AVROOM_HOME_ORIENTATION_UP /* null */ +} + +extension TXEAVRoomHomeOrientationToX on TXEAVRoomHomeOrientation { + int toValue() { + switch (this) { + case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_RIGHT: return 0; + case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_DOWN: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_DOWN.index + 0; + case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_LEFT: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_LEFT.index + 0; + case TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_UP: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_UP.index + 0; + default: return 0; + } + } +} + +extension TXEAVRoomHomeOrientationFromX on int { + TXEAVRoomHomeOrientation toTXEAVRoomHomeOrientation() { + switch (this) { + case 0: return TXEAVRoomHomeOrientation.AVROOM_HOME_ORIENTATION_RIGHT; + default: return TXEAVRoomHomeOrientation.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomRenderMode.g.dart b/lib/src/ios/TXEAVRoomRenderMode.g.dart new file mode 100644 index 0000000..54a8374 --- /dev/null +++ b/lib/src/ios/TXEAVRoomRenderMode.g.dart @@ -0,0 +1,28 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomRenderMode { + AVROOM_RENDER_MODE_FILL_SCREEN /* 0 */, + AVROOM_RENDER_MODE_FILL_EDGE /* null */ +} + +extension TXEAVRoomRenderModeToX on TXEAVRoomRenderMode { + int toValue() { + switch (this) { + case TXEAVRoomRenderMode.AVROOM_RENDER_MODE_FILL_SCREEN: return 0; + case TXEAVRoomRenderMode.AVROOM_RENDER_MODE_FILL_EDGE: return TXEAVRoomRenderMode.AVROOM_RENDER_MODE_FILL_EDGE.index + 0; + default: return 0; + } + } +} + +extension TXEAVRoomRenderModeFromX on int { + TXEAVRoomRenderMode toTXEAVRoomRenderMode() { + switch (this) { + case 0: return TXEAVRoomRenderMode.AVROOM_RENDER_MODE_FILL_SCREEN; + default: return TXEAVRoomRenderMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEAVRoomVideoAspect.g.dart b/lib/src/ios/TXEAVRoomVideoAspect.g.dart new file mode 100644 index 0000000..2e01e91 --- /dev/null +++ b/lib/src/ios/TXEAVRoomVideoAspect.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEAVRoomVideoAspect { + AVROOM_VIDEO_ASPECT_9_16 /* 1 */, + AVROOM_VIDEO_ASPECT_3_4 /* 2 */, + AVROOM_VIDEO_ASPECT_1_1 /* 3 */ +} + +extension TXEAVRoomVideoAspectToX on TXEAVRoomVideoAspect { + int toValue() { + switch (this) { + case TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_9_16: return 1; + case TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_3_4: return 2; + case TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_1_1: return 3; + default: return 0; + } + } +} + +extension TXEAVRoomVideoAspectFromX on int { + TXEAVRoomVideoAspect toTXEAVRoomVideoAspect() { + switch (this) { + case 1: return TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_9_16; + case 2: return TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_3_4; + case 3: return TXEAVRoomVideoAspect.AVROOM_VIDEO_ASPECT_1_1; + default: return TXEAVRoomVideoAspect.values[this + 1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXEffectType.g.dart b/lib/src/ios/TXEffectType.g.dart new file mode 100644 index 0000000..165f760 --- /dev/null +++ b/lib/src/ios/TXEffectType.g.dart @@ -0,0 +1,48 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXEffectType { + TXEffectType_ROCK_LIGHT /* null */, + TXEffectType_DARK_DRAEM /* null */, + TXEffectType_SOUL_OUT /* null */, + TXEffectType_SCREEN_SPLIT /* null */, + TXEffectType_WIN_SHADOW /* null */, + TXEffectType_GHOST_SHADOW /* null */, + TXEffectType_PHANTOM /* null */, + TXEffectType_GHOST /* null */, + TXEffectType_LIGHTNING /* null */, + TXEffectType_MIRROR /* null */, + TXEffectType_ILLUSION /* null */, + TXEffectType_Count /* null */ +} + +extension TXEffectTypeToX on TXEffectType { + int toValue() { + switch (this) { + case TXEffectType.TXEffectType_ROCK_LIGHT: return TXEffectType.TXEffectType_ROCK_LIGHT.index + 0; + case TXEffectType.TXEffectType_DARK_DRAEM: return TXEffectType.TXEffectType_DARK_DRAEM.index + 0; + case TXEffectType.TXEffectType_SOUL_OUT: return TXEffectType.TXEffectType_SOUL_OUT.index + 0; + case TXEffectType.TXEffectType_SCREEN_SPLIT: return TXEffectType.TXEffectType_SCREEN_SPLIT.index + 0; + case TXEffectType.TXEffectType_WIN_SHADOW: return TXEffectType.TXEffectType_WIN_SHADOW.index + 0; + case TXEffectType.TXEffectType_GHOST_SHADOW: return TXEffectType.TXEffectType_GHOST_SHADOW.index + 0; + case TXEffectType.TXEffectType_PHANTOM: return TXEffectType.TXEffectType_PHANTOM.index + 0; + case TXEffectType.TXEffectType_GHOST: return TXEffectType.TXEffectType_GHOST.index + 0; + case TXEffectType.TXEffectType_LIGHTNING: return TXEffectType.TXEffectType_LIGHTNING.index + 0; + case TXEffectType.TXEffectType_MIRROR: return TXEffectType.TXEffectType_MIRROR.index + 0; + case TXEffectType.TXEffectType_ILLUSION: return TXEffectType.TXEffectType_ILLUSION.index + 0; + case TXEffectType.TXEffectType_Count: return TXEffectType.TXEffectType_Count.index + 0; + default: return 0; + } + } +} + +extension TXEffectTypeFromX on int { + TXEffectType toTXEffectType() { + switch (this) { + + default: return TXEffectType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXGenerateResult.g.dart b/lib/src/ios/TXGenerateResult.g.dart new file mode 100644 index 0000000..3c37149 --- /dev/null +++ b/lib/src/ios/TXGenerateResult.g.dart @@ -0,0 +1,109 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXGenerateResult extends NSObject { + //region constants + static const String name__ = 'TXGenerateResult'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXGenerateResult', {'init': init}); + final object = TXGenerateResult()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXGenerateResult', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXGenerateResult()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_retCode() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXGenerateResult::get_retCode", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXGenerateResultCode()); + } + + Future get_descMsg() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXGenerateResult::get_descMsg", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_retCode(TXGenerateResultCode retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXGenerateResult::set_retCode', {'__this__': this, "retCode": retCode.toValue()}); + + + } + + Future set_descMsg(String descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXGenerateResult::set_descMsg', {'__this__': this, "descMsg": descMsg}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXGenerateResult_Batch on List { + //region getters + Future> get_retCode_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXGenerateResult::get_retCode_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXGenerateResultCode()).toList(); + return typedResult; + } + + Future> get_descMsg_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXGenerateResult::get_descMsg_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_retCode_batch(List retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXGenerateResult::set_retCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "retCode": retCode[__i__].toValue()}]); + + + } + + Future set_descMsg_batch(List descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXGenerateResult::set_descMsg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "descMsg": descMsg[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXGenerateResultCode.g.dart b/lib/src/ios/TXGenerateResultCode.g.dart new file mode 100644 index 0000000..e7d1c96 --- /dev/null +++ b/lib/src/ios/TXGenerateResultCode.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXGenerateResultCode { + GENERATE_RESULT_OK /* 0 */, + GENERATE_RESULT_FAILED /* -1 */, + GENERATE_RESULT_CANCEL /* -2 */, + GENERATE_RESULT_LICENCE_VERIFICATION_FAILED /* -5 */ +} + +extension TXGenerateResultCodeToX on TXGenerateResultCode { + int toValue() { + switch (this) { + case TXGenerateResultCode.GENERATE_RESULT_OK: return 0; + case TXGenerateResultCode.GENERATE_RESULT_FAILED: return -1; + case TXGenerateResultCode.GENERATE_RESULT_CANCEL: return -2; + case TXGenerateResultCode.GENERATE_RESULT_LICENCE_VERIFICATION_FAILED: return -5; + default: return 0; + } + } +} + +extension TXGenerateResultCodeFromX on int { + TXGenerateResultCode toTXGenerateResultCode() { + switch (this) { + case 0: return TXGenerateResultCode.GENERATE_RESULT_OK; + case -1: return TXGenerateResultCode.GENERATE_RESULT_FAILED; + case -2: return TXGenerateResultCode.GENERATE_RESULT_CANCEL; + case -5: return TXGenerateResultCode.GENERATE_RESULT_LICENCE_VERIFICATION_FAILED; + default: return TXGenerateResultCode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXImageSprite.g.dart b/lib/src/ios/TXImageSprite.g.dart new file mode 100644 index 0000000..d40cce1 --- /dev/null +++ b/lib/src/ios/TXImageSprite.g.dart @@ -0,0 +1,65 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXImageSprite extends NSObject { + //region constants + static const String name__ = 'TXImageSprite'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXImageSprite', {'init': init}); + final object = TXImageSprite()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXImageSprite', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXImageSprite()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} + +extension TXImageSprite_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXJoinerResult.g.dart b/lib/src/ios/TXJoinerResult.g.dart new file mode 100644 index 0000000..9aad6f1 --- /dev/null +++ b/lib/src/ios/TXJoinerResult.g.dart @@ -0,0 +1,109 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXJoinerResult extends NSObject { + //region constants + static const String name__ = 'TXJoinerResult'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXJoinerResult', {'init': init}); + final object = TXJoinerResult()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXJoinerResult', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXJoinerResult()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_retCode() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXJoinerResult::get_retCode", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXJoinerResultCode()); + } + + Future get_descMsg() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXJoinerResult::get_descMsg", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_retCode(TXJoinerResultCode retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXJoinerResult::set_retCode', {'__this__': this, "retCode": retCode.toValue()}); + + + } + + Future set_descMsg(String descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXJoinerResult::set_descMsg', {'__this__': this, "descMsg": descMsg}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXJoinerResult_Batch on List { + //region getters + Future> get_retCode_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXJoinerResult::get_retCode_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXJoinerResultCode()).toList(); + return typedResult; + } + + Future> get_descMsg_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXJoinerResult::get_descMsg_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_retCode_batch(List retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXJoinerResult::set_retCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "retCode": retCode[__i__].toValue()}]); + + + } + + Future set_descMsg_batch(List descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXJoinerResult::set_descMsg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "descMsg": descMsg[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXJoinerResultCode.g.dart b/lib/src/ios/TXJoinerResultCode.g.dart new file mode 100644 index 0000000..9056f4b --- /dev/null +++ b/lib/src/ios/TXJoinerResultCode.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXJoinerResultCode { + JOINER_RESULT_OK /* 0 */, + JOINER_RESULT_FAILED /* -1 */, + JOINER_RESULT_LICENCE_VERIFICATION_FAILED /* -5 */ +} + +extension TXJoinerResultCodeToX on TXJoinerResultCode { + int toValue() { + switch (this) { + case TXJoinerResultCode.JOINER_RESULT_OK: return 0; + case TXJoinerResultCode.JOINER_RESULT_FAILED: return -1; + case TXJoinerResultCode.JOINER_RESULT_LICENCE_VERIFICATION_FAILED: return -5; + default: return 0; + } + } +} + +extension TXJoinerResultCodeFromX on int { + TXJoinerResultCode toTXJoinerResultCode() { + switch (this) { + case 0: return TXJoinerResultCode.JOINER_RESULT_OK; + case -1: return TXJoinerResultCode.JOINER_RESULT_FAILED; + case -5: return TXJoinerResultCode.JOINER_RESULT_LICENCE_VERIFICATION_FAILED; + default: return TXJoinerResultCode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXLiteAVError.g.dart b/lib/src/ios/TXLiteAVError.g.dart new file mode 100644 index 0000000..c6ce015 --- /dev/null +++ b/lib/src/ios/TXLiteAVError.g.dart @@ -0,0 +1,554 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXLiteAVError { + ERR_NULL /* 0 */, + ERR_ROOM_ENTER_FAIL /* -3301 */, + ERR_ENTER_ROOM_PARAM_NULL /* -3316 */, + ERR_SDK_APPID_INVALID /* -3317 */, + ERR_ROOM_ID_INVALID /* -3318 */, + ERR_USER_ID_INVALID /* -3319 */, + ERR_USER_SIG_INVALID /* -3320 */, + ERR_ROOM_REQUEST_ENTER_ROOM_TIMEOUT /* -3308 */, + ERR_SERVER_INFO_SERVICE_SUSPENDED /* -100013 */, + ERR_ROOM_REQUEST_QUIT_ROOM_TIMEOUT /* -3325 */, + ERR_CAMERA_START_FAIL /* -1301 */, + ERR_CAMERA_NOT_AUTHORIZED /* -1314 */, + ERR_CAMERA_SET_PARAM_FAIL /* -1315 */, + ERR_CAMERA_OCCUPY /* -1316 */, + ERR_MIC_START_FAIL /* -1302 */, + ERR_MIC_NOT_AUTHORIZED /* -1317 */, + ERR_MIC_SET_PARAM_FAIL /* -1318 */, + ERR_MIC_OCCUPY /* -1319 */, + ERR_MIC_STOP_FAIL /* -1320 */, + ERR_SPEAKER_START_FAIL /* -1321 */, + ERR_SPEAKER_SET_PARAM_FAIL /* -1322 */, + ERR_SPEAKER_STOP_FAIL /* -1323 */, + ERR_SCREEN_CAPTURE_START_FAIL /* -1308 */, + ERR_SCREEN_CAPTURE_UNSURPORT /* -1309 */, + ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_SUB_VIDEO /* -102015 */, + ERR_SERVER_CENTER_ANOTHER_USER_PUSH_SUB_VIDEO /* -102016 */, + ERR_SCREEN_CAPTURE_STOPPED /* -7001 */, + ERR_VIDEO_ENCODE_FAIL /* -1303 */, + ERR_UNSUPPORTED_RESOLUTION /* -1305 */, + ERR_AUDIO_ENCODE_FAIL /* -1304 */, + ERR_UNSUPPORTED_SAMPLERATE /* -1306 */, + ERR_PIXEL_FORMAT_UNSUPPORTED /* -1327 */, + ERR_BUFFER_TYPE_UNSUPPORTED /* -1328 */, + ERR_PUBLISH_CDN_STREAM_REQUEST_TIME_OUT /* -3321 */, + ERR_CLOUD_MIX_TRANSCODING_REQUEST_TIME_OUT /* -3322 */, + ERR_PUBLISH_CDN_STREAM_SERVER_FAILED /* -3323 */, + ERR_CLOUD_MIX_TRANSCODING_SERVER_FAILED /* -3324 */, + ERR_ROOM_REQUEST_START_PUBLISHING_TIMEOUT /* -3333 */, + ERR_ROOM_REQUEST_START_PUBLISHING_ERROR /* -3334 */, + ERR_ROOM_REQUEST_STOP_PUBLISHING_TIMEOUT /* -3335 */, + ERR_ROOM_REQUEST_STOP_PUBLISHING_ERROR /* -3336 */, + ERR_ROOM_REQUEST_CONN_ROOM_TIMEOUT /* -3326 */, + ERR_ROOM_REQUEST_DISCONN_ROOM_TIMEOUT /* -3327 */, + ERR_ROOM_REQUEST_CONN_ROOM_INVALID_PARAM /* -3328 */, + ERR_CONNECT_OTHER_ROOM_AS_AUDIENCE /* -3330 */, + ERR_SERVER_CENTER_CONN_ROOM_NOT_SUPPORT /* -102031 */, + ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_NUM /* -102032 */, + ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_RETRY_TIMES /* -102033 */, + ERR_SERVER_CENTER_CONN_ROOM_REQ_TIMEOUT /* -102034 */, + ERR_SERVER_CENTER_CONN_ROOM_REQ /* -102035 */, + ERR_SERVER_CENTER_CONN_ROOM_NO_SIG /* -102036 */, + ERR_SERVER_CENTER_CONN_ROOM_DECRYPT_SIG /* -102037 */, + ERR_SERVER_CENTER_CONN_ROOM_NO_KEY /* -102038 */, + ERR_SERVER_CENTER_CONN_ROOM_PARSE_SIG /* -102039 */, + ERR_SERVER_CENTER_CONN_ROOM_INVALID_SIG_TIME /* -102040 */, + ERR_SERVER_CENTER_CONN_ROOM_SIG_GROUPID /* -102041 */, + ERR_SERVER_CENTER_CONN_ROOM_NOT_CONNED /* -102042 */, + ERR_SERVER_CENTER_CONN_ROOM_USER_NOT_CONNED /* -102043 */, + ERR_SERVER_CENTER_CONN_ROOM_FAILED /* -102044 */, + ERR_SERVER_CENTER_CONN_ROOM_CANCEL_FAILED /* -102045 */, + ERR_SERVER_CENTER_CONN_ROOM_CONNED_ROOM_NOT_EXIST /* -102046 */, + ERR_SERVER_CENTER_CONN_ROOM_CONNED_REACH_MAX_ROOM /* -102047 */, + ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_NOT_EXIST /* -102048 */, + ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_DELETED /* -102049 */, + ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_FULL /* -102050 */, + ERR_SERVER_CENTER_CONN_ROOM_INVALID_SEQ /* -102051 */, + ERR_RTMP_PUSH_NET_DISCONNECT /* -1307 */, + ERR_RTMP_PUSH_INVALID_ADDRESS /* -1313 */, + ERR_RTMP_PUSH_NET_ALLADDRESS_FAIL /* -1324 */, + ERR_RTMP_PUSH_NO_NETWORK /* -1325 */, + ERR_RTMP_PUSH_SERVER_REFUSE /* -1326 */, + ERR_PLAY_LIVE_STREAM_NET_DISCONNECT /* -2301 */, + ERR_GET_RTMP_ACC_URL_FAIL /* -2302 */, + ERR_FILE_NOT_FOUND /* -2303 */, + ERR_HEVC_DECODE_FAIL /* -2304 */, + ERR_VOD_DECRYPT_FAIL /* -2305 */, + ERR_GET_VODFILE_MEDIAINFO_FAIL /* -2306 */, + ERR_PLAY_LIVE_STREAM_SWITCH_FAIL /* -2307 */, + ERR_PLAY_LIVE_STREAM_SERVER_REFUSE /* -2308 */, + ERR_RTMP_ACC_FETCH_STREAM_FAIL /* -2309 */, + ERR_ROOM_HEARTBEAT_FAIL /* -3302 */, + ERR_ROOM_REQUEST_IP_FAIL /* -3303 */, + ERR_ROOM_CONNECT_FAIL /* -3304 */, + ERR_ROOM_REQUEST_AVSEAT_FAIL /* -3305 */, + ERR_ROOM_REQUEST_TOKEN_HTTPS_TIMEOUT /* -3306 */, + ERR_ROOM_REQUEST_IP_TIMEOUT /* -3307 */, + ERR_ROOM_REQUEST_VIDEO_FLAG_TIMEOUT /* -3309 */, + ERR_ROOM_REQUEST_VIDEO_DATA_ROOM_TIMEOUT /* -3310 */, + ERR_ROOM_REQUEST_CHANGE_ABILITY_TIMEOUT /* -3311 */, + ERR_ROOM_REQUEST_STATUS_REPORT_TIMEOUT /* -3312 */, + ERR_ROOM_REQUEST_CLOSE_VIDEO_TIMEOUT /* -3313 */, + ERR_ROOM_REQUEST_SET_RECEIVE_TIMEOUT /* -3314 */, + ERR_ROOM_REQUEST_TOKEN_INVALID_PARAMETER /* -3315 */, + ERR_ROOM_REQUEST_AES_TOKEN_RETURN_ERROR /* -3329 */, + ERR_ACCIP_LIST_EMPTY /* -3331 */, + ERR_ROOM_REQUEST_SEND_JSON_CMD_TIMEOUT /* -3332 */, + ERR_SERVER_INFO_UNPACKING_ERROR /* -100000 */, + ERR_SERVER_INFO_TOKEN_ERROR /* -100001 */, + ERR_SERVER_INFO_ALLOCATE_ACCESS_FAILED /* -100002 */, + ERR_SERVER_INFO_GENERATE_SIGN_FAILED /* -100003 */, + ERR_SERVER_INFO_TOKEN_TIMEOUT /* -100004 */, + ERR_SERVER_INFO_INVALID_COMMAND /* -100005 */, + ERR_SERVER_INFO_PRIVILEGE_FLAG_ERROR /* -100006 */, + ERR_SERVER_INFO_GENERATE_KEN_ERROR /* -100007 */, + ERR_SERVER_INFO_GENERATE_TOKEN_ERROR /* -100008 */, + ERR_SERVER_INFO_DATABASE /* -100009 */, + ERR_SERVER_INFO_BAD_ROOMID /* -100010 */, + ERR_SERVER_INFO_BAD_SCENE_OR_ROLE /* -100011 */, + ERR_SERVER_INFO_ROOMID_EXCHANGE_FAILED /* -100012 */, + ERR_SERVER_INFO_STRGROUP_HAS_INVALID_CHARS /* -100014 */, + ERR_SERVER_INFO_LACK_SDKAPPID /* -100015 */, + ERR_SERVER_INFO_INVALID /* -100016 */, + ERR_SERVER_INFO_ECDH_GET_KEY /* -100017 */, + ERR_SERVER_INFO_ECDH_GET_TINYID /* -100018 */, + ERR_SERVER_ACC_TOKEN_TIMEOUT /* -101000 */, + ERR_SERVER_ACC_SIGN_ERROR /* -101001 */, + ERR_SERVER_ACC_SIGN_TIMEOUT /* -101002 */, + ERR_SERVER_ACC_ROOM_NOT_EXIST /* -101003 */, + ERR_SERVER_ACC_ROOMID /* -101004 */, + ERR_SERVER_ACC_LOCATIONID /* -101005 */, + ERR_SERVER_ACC_TOKEN_EORROR /* -101006 */, + ERR_SERVER_CENTER_SYSTEM_ERROR /* -102000 */, + ERR_SERVER_CENTER_INVALID_ROOMID /* -102001 */, + ERR_SERVER_CENTER_CREATE_ROOM_FAILED /* -102002 */, + ERR_SERVER_CENTER_SIGN_ERROR /* -102003 */, + ERR_SERVER_CENTER_SIGN_TIMEOUT /* -102004 */, + ERR_SERVER_CENTER_ROOM_NOT_EXIST /* -102005 */, + ERR_SERVER_CENTER_ADD_USER_FAILED /* -102006 */, + ERR_SERVER_CENTER_FIND_USER_FAILED /* -102007 */, + ERR_SERVER_CENTER_SWITCH_TERMINATION_FREQUENTLY /* -102008 */, + ERR_SERVER_CENTER_LOCATION_NOT_EXIST /* -102009 */, + ERR_SERVER_CENTER_NO_PRIVILEDGE_CREATE_ROOM /* -102010 */, + ERR_SERVER_CENTER_NO_PRIVILEDGE_ENTER_ROOM /* -102011 */, + ERR_SERVER_CENTER_INVALID_PARAMETER_SUB_VIDEO /* -102012 */, + ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_VIDEO /* -102013 */, + ERR_SERVER_CENTER_ROUTE_TABLE_ERROR /* -102014 */, + ERR_SERVER_CENTER_NOT_PUSH_SUB_VIDEO /* -102017 */, + ERR_SERVER_CENTER_USER_WAS_DELETED /* -102018 */, + ERR_SERVER_CENTER_NO_PRIVILEDGE_REQUEST_VIDEO /* -102019 */, + ERR_SERVER_CENTER_INVALID_PARAMETER /* -102023 */, + ERR_SERVER_CENTER_I_FRAME_UNKNOW_TYPE /* -102024 */, + ERR_SERVER_CENTER_I_FRAME_INVALID_PACKET /* -102025 */, + ERR_SERVER_CENTER_I_FRAME_DEST_USER_NOT_EXIST /* -102026 */, + ERR_SERVER_CENTER_I_FRAME_ROOM_TOO_BIG /* -102027 */, + ERR_SERVER_CENTER_I_FRAME_RPS_INVALID_PARAMETER /* -102028 */, + ERR_SERVER_CENTER_INVALID_ROOM_ID /* -102029 */, + ERR_SERVER_CENTER_ROOM_ID_TOO_LONG /* -102030 */, + ERR_SERVER_CENTER_ROOM_FULL /* -102052 */, + ERR_SERVER_CENTER_DECODE_JSON_FAIL /* -102053 */, + ERR_SERVER_CENTER_UNKNOWN_SUB_CMD /* -102054 */, + ERR_SERVER_CENTER_INVALID_ROLE /* -102055 */, + ERR_SERVER_CENTER_REACH_PROXY_MAX /* -102056 */, + ERR_SERVER_CENTER_RECORDID_STORE /* -102057 */, + ERR_SERVER_CENTER_PB_SERIALIZE /* -102058 */, + ERR_SERVER_SSO_SIG_EXPIRED /* -70001 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_1 /* -70003 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_2 /* -70004 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_3 /* -70005 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_4 /* -70006 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_5 /* -70007 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_6 /* -70008 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_7 /* -70009 */, + ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_8 /* -70010 */, + ERR_SERVER_SSO_SIG_VERIFICATION_ID_NOT_MATCH /* -70013 */, + ERR_SERVER_SSO_APPID_NOT_MATCH /* -70014 */, + ERR_SERVER_SSO_VERIFICATION_EXPIRED /* -70017 */, + ERR_SERVER_SSO_VERIFICATION_FAILED /* -70018 */, + ERR_SERVER_SSO_APPID_NOT_FOUND /* -70020 */, + ERR_SERVER_SSO_ACCOUNT_IN_BLACKLIST /* -70051 */, + ERR_SERVER_SSO_SIG_INVALID /* -70052 */, + ERR_SERVER_SSO_LIMITED_BY_SECURITY /* -70114 */, + ERR_SERVER_SSO_INVALID_LOGIN_STATUS /* -70221 */, + ERR_SERVER_SSO_APPID_ERROR /* -70252 */, + ERR_SERVER_SSO_TICKET_VERIFICATION_FAILED /* -70346 */, + ERR_SERVER_SSO_TICKET_EXPIRED /* -70347 */, + ERR_SERVER_SSO_ACCOUNT_EXCEED_PURCHASES /* -70398 */, + ERR_SERVER_SSO_INTERNAL_ERROR /* -70500 */ +} + +extension TXLiteAVErrorToX on TXLiteAVError { + int toValue() { + switch (this) { + case TXLiteAVError.ERR_NULL: return 0; + case TXLiteAVError.ERR_ROOM_ENTER_FAIL: return -3301; + case TXLiteAVError.ERR_ENTER_ROOM_PARAM_NULL: return -3316; + case TXLiteAVError.ERR_SDK_APPID_INVALID: return -3317; + case TXLiteAVError.ERR_ROOM_ID_INVALID: return -3318; + case TXLiteAVError.ERR_USER_ID_INVALID: return -3319; + case TXLiteAVError.ERR_USER_SIG_INVALID: return -3320; + case TXLiteAVError.ERR_ROOM_REQUEST_ENTER_ROOM_TIMEOUT: return -3308; + case TXLiteAVError.ERR_SERVER_INFO_SERVICE_SUSPENDED: return -100013; + case TXLiteAVError.ERR_ROOM_REQUEST_QUIT_ROOM_TIMEOUT: return -3325; + case TXLiteAVError.ERR_CAMERA_START_FAIL: return -1301; + case TXLiteAVError.ERR_CAMERA_NOT_AUTHORIZED: return -1314; + case TXLiteAVError.ERR_CAMERA_SET_PARAM_FAIL: return -1315; + case TXLiteAVError.ERR_CAMERA_OCCUPY: return -1316; + case TXLiteAVError.ERR_MIC_START_FAIL: return -1302; + case TXLiteAVError.ERR_MIC_NOT_AUTHORIZED: return -1317; + case TXLiteAVError.ERR_MIC_SET_PARAM_FAIL: return -1318; + case TXLiteAVError.ERR_MIC_OCCUPY: return -1319; + case TXLiteAVError.ERR_MIC_STOP_FAIL: return -1320; + case TXLiteAVError.ERR_SPEAKER_START_FAIL: return -1321; + case TXLiteAVError.ERR_SPEAKER_SET_PARAM_FAIL: return -1322; + case TXLiteAVError.ERR_SPEAKER_STOP_FAIL: return -1323; + case TXLiteAVError.ERR_SCREEN_CAPTURE_START_FAIL: return -1308; + case TXLiteAVError.ERR_SCREEN_CAPTURE_UNSURPORT: return -1309; + case TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_SUB_VIDEO: return -102015; + case TXLiteAVError.ERR_SERVER_CENTER_ANOTHER_USER_PUSH_SUB_VIDEO: return -102016; + case TXLiteAVError.ERR_SCREEN_CAPTURE_STOPPED: return -7001; + case TXLiteAVError.ERR_VIDEO_ENCODE_FAIL: return -1303; + case TXLiteAVError.ERR_UNSUPPORTED_RESOLUTION: return -1305; + case TXLiteAVError.ERR_AUDIO_ENCODE_FAIL: return -1304; + case TXLiteAVError.ERR_UNSUPPORTED_SAMPLERATE: return -1306; + case TXLiteAVError.ERR_PIXEL_FORMAT_UNSUPPORTED: return -1327; + case TXLiteAVError.ERR_BUFFER_TYPE_UNSUPPORTED: return -1328; + case TXLiteAVError.ERR_PUBLISH_CDN_STREAM_REQUEST_TIME_OUT: return -3321; + case TXLiteAVError.ERR_CLOUD_MIX_TRANSCODING_REQUEST_TIME_OUT: return -3322; + case TXLiteAVError.ERR_PUBLISH_CDN_STREAM_SERVER_FAILED: return -3323; + case TXLiteAVError.ERR_CLOUD_MIX_TRANSCODING_SERVER_FAILED: return -3324; + case TXLiteAVError.ERR_ROOM_REQUEST_START_PUBLISHING_TIMEOUT: return -3333; + case TXLiteAVError.ERR_ROOM_REQUEST_START_PUBLISHING_ERROR: return -3334; + case TXLiteAVError.ERR_ROOM_REQUEST_STOP_PUBLISHING_TIMEOUT: return -3335; + case TXLiteAVError.ERR_ROOM_REQUEST_STOP_PUBLISHING_ERROR: return -3336; + case TXLiteAVError.ERR_ROOM_REQUEST_CONN_ROOM_TIMEOUT: return -3326; + case TXLiteAVError.ERR_ROOM_REQUEST_DISCONN_ROOM_TIMEOUT: return -3327; + case TXLiteAVError.ERR_ROOM_REQUEST_CONN_ROOM_INVALID_PARAM: return -3328; + case TXLiteAVError.ERR_CONNECT_OTHER_ROOM_AS_AUDIENCE: return -3330; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NOT_SUPPORT: return -102031; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_NUM: return -102032; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_RETRY_TIMES: return -102033; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REQ_TIMEOUT: return -102034; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REQ: return -102035; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NO_SIG: return -102036; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_DECRYPT_SIG: return -102037; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NO_KEY: return -102038; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_PARSE_SIG: return -102039; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_INVALID_SIG_TIME: return -102040; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_SIG_GROUPID: return -102041; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NOT_CONNED: return -102042; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_USER_NOT_CONNED: return -102043; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_FAILED: return -102044; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CANCEL_FAILED: return -102045; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_ROOM_NOT_EXIST: return -102046; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_REACH_MAX_ROOM: return -102047; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_NOT_EXIST: return -102048; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_DELETED: return -102049; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_FULL: return -102050; + case TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_INVALID_SEQ: return -102051; + case TXLiteAVError.ERR_RTMP_PUSH_NET_DISCONNECT: return -1307; + case TXLiteAVError.ERR_RTMP_PUSH_INVALID_ADDRESS: return -1313; + case TXLiteAVError.ERR_RTMP_PUSH_NET_ALLADDRESS_FAIL: return -1324; + case TXLiteAVError.ERR_RTMP_PUSH_NO_NETWORK: return -1325; + case TXLiteAVError.ERR_RTMP_PUSH_SERVER_REFUSE: return -1326; + case TXLiteAVError.ERR_PLAY_LIVE_STREAM_NET_DISCONNECT: return -2301; + case TXLiteAVError.ERR_GET_RTMP_ACC_URL_FAIL: return -2302; + case TXLiteAVError.ERR_FILE_NOT_FOUND: return -2303; + case TXLiteAVError.ERR_HEVC_DECODE_FAIL: return -2304; + case TXLiteAVError.ERR_VOD_DECRYPT_FAIL: return -2305; + case TXLiteAVError.ERR_GET_VODFILE_MEDIAINFO_FAIL: return -2306; + case TXLiteAVError.ERR_PLAY_LIVE_STREAM_SWITCH_FAIL: return -2307; + case TXLiteAVError.ERR_PLAY_LIVE_STREAM_SERVER_REFUSE: return -2308; + case TXLiteAVError.ERR_RTMP_ACC_FETCH_STREAM_FAIL: return -2309; + case TXLiteAVError.ERR_ROOM_HEARTBEAT_FAIL: return -3302; + case TXLiteAVError.ERR_ROOM_REQUEST_IP_FAIL: return -3303; + case TXLiteAVError.ERR_ROOM_CONNECT_FAIL: return -3304; + case TXLiteAVError.ERR_ROOM_REQUEST_AVSEAT_FAIL: return -3305; + case TXLiteAVError.ERR_ROOM_REQUEST_TOKEN_HTTPS_TIMEOUT: return -3306; + case TXLiteAVError.ERR_ROOM_REQUEST_IP_TIMEOUT: return -3307; + case TXLiteAVError.ERR_ROOM_REQUEST_VIDEO_FLAG_TIMEOUT: return -3309; + case TXLiteAVError.ERR_ROOM_REQUEST_VIDEO_DATA_ROOM_TIMEOUT: return -3310; + case TXLiteAVError.ERR_ROOM_REQUEST_CHANGE_ABILITY_TIMEOUT: return -3311; + case TXLiteAVError.ERR_ROOM_REQUEST_STATUS_REPORT_TIMEOUT: return -3312; + case TXLiteAVError.ERR_ROOM_REQUEST_CLOSE_VIDEO_TIMEOUT: return -3313; + case TXLiteAVError.ERR_ROOM_REQUEST_SET_RECEIVE_TIMEOUT: return -3314; + case TXLiteAVError.ERR_ROOM_REQUEST_TOKEN_INVALID_PARAMETER: return -3315; + case TXLiteAVError.ERR_ROOM_REQUEST_AES_TOKEN_RETURN_ERROR: return -3329; + case TXLiteAVError.ERR_ACCIP_LIST_EMPTY: return -3331; + case TXLiteAVError.ERR_ROOM_REQUEST_SEND_JSON_CMD_TIMEOUT: return -3332; + case TXLiteAVError.ERR_SERVER_INFO_UNPACKING_ERROR: return -100000; + case TXLiteAVError.ERR_SERVER_INFO_TOKEN_ERROR: return -100001; + case TXLiteAVError.ERR_SERVER_INFO_ALLOCATE_ACCESS_FAILED: return -100002; + case TXLiteAVError.ERR_SERVER_INFO_GENERATE_SIGN_FAILED: return -100003; + case TXLiteAVError.ERR_SERVER_INFO_TOKEN_TIMEOUT: return -100004; + case TXLiteAVError.ERR_SERVER_INFO_INVALID_COMMAND: return -100005; + case TXLiteAVError.ERR_SERVER_INFO_PRIVILEGE_FLAG_ERROR: return -100006; + case TXLiteAVError.ERR_SERVER_INFO_GENERATE_KEN_ERROR: return -100007; + case TXLiteAVError.ERR_SERVER_INFO_GENERATE_TOKEN_ERROR: return -100008; + case TXLiteAVError.ERR_SERVER_INFO_DATABASE: return -100009; + case TXLiteAVError.ERR_SERVER_INFO_BAD_ROOMID: return -100010; + case TXLiteAVError.ERR_SERVER_INFO_BAD_SCENE_OR_ROLE: return -100011; + case TXLiteAVError.ERR_SERVER_INFO_ROOMID_EXCHANGE_FAILED: return -100012; + case TXLiteAVError.ERR_SERVER_INFO_STRGROUP_HAS_INVALID_CHARS: return -100014; + case TXLiteAVError.ERR_SERVER_INFO_LACK_SDKAPPID: return -100015; + case TXLiteAVError.ERR_SERVER_INFO_INVALID: return -100016; + case TXLiteAVError.ERR_SERVER_INFO_ECDH_GET_KEY: return -100017; + case TXLiteAVError.ERR_SERVER_INFO_ECDH_GET_TINYID: return -100018; + case TXLiteAVError.ERR_SERVER_ACC_TOKEN_TIMEOUT: return -101000; + case TXLiteAVError.ERR_SERVER_ACC_SIGN_ERROR: return -101001; + case TXLiteAVError.ERR_SERVER_ACC_SIGN_TIMEOUT: return -101002; + case TXLiteAVError.ERR_SERVER_ACC_ROOM_NOT_EXIST: return -101003; + case TXLiteAVError.ERR_SERVER_ACC_ROOMID: return -101004; + case TXLiteAVError.ERR_SERVER_ACC_LOCATIONID: return -101005; + case TXLiteAVError.ERR_SERVER_ACC_TOKEN_EORROR: return -101006; + case TXLiteAVError.ERR_SERVER_CENTER_SYSTEM_ERROR: return -102000; + case TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROOMID: return -102001; + case TXLiteAVError.ERR_SERVER_CENTER_CREATE_ROOM_FAILED: return -102002; + case TXLiteAVError.ERR_SERVER_CENTER_SIGN_ERROR: return -102003; + case TXLiteAVError.ERR_SERVER_CENTER_SIGN_TIMEOUT: return -102004; + case TXLiteAVError.ERR_SERVER_CENTER_ROOM_NOT_EXIST: return -102005; + case TXLiteAVError.ERR_SERVER_CENTER_ADD_USER_FAILED: return -102006; + case TXLiteAVError.ERR_SERVER_CENTER_FIND_USER_FAILED: return -102007; + case TXLiteAVError.ERR_SERVER_CENTER_SWITCH_TERMINATION_FREQUENTLY: return -102008; + case TXLiteAVError.ERR_SERVER_CENTER_LOCATION_NOT_EXIST: return -102009; + case TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_CREATE_ROOM: return -102010; + case TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_ENTER_ROOM: return -102011; + case TXLiteAVError.ERR_SERVER_CENTER_INVALID_PARAMETER_SUB_VIDEO: return -102012; + case TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_VIDEO: return -102013; + case TXLiteAVError.ERR_SERVER_CENTER_ROUTE_TABLE_ERROR: return -102014; + case TXLiteAVError.ERR_SERVER_CENTER_NOT_PUSH_SUB_VIDEO: return -102017; + case TXLiteAVError.ERR_SERVER_CENTER_USER_WAS_DELETED: return -102018; + case TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_REQUEST_VIDEO: return -102019; + case TXLiteAVError.ERR_SERVER_CENTER_INVALID_PARAMETER: return -102023; + case TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_UNKNOW_TYPE: return -102024; + case TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_INVALID_PACKET: return -102025; + case TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_DEST_USER_NOT_EXIST: return -102026; + case TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_ROOM_TOO_BIG: return -102027; + case TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_RPS_INVALID_PARAMETER: return -102028; + case TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROOM_ID: return -102029; + case TXLiteAVError.ERR_SERVER_CENTER_ROOM_ID_TOO_LONG: return -102030; + case TXLiteAVError.ERR_SERVER_CENTER_ROOM_FULL: return -102052; + case TXLiteAVError.ERR_SERVER_CENTER_DECODE_JSON_FAIL: return -102053; + case TXLiteAVError.ERR_SERVER_CENTER_UNKNOWN_SUB_CMD: return -102054; + case TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROLE: return -102055; + case TXLiteAVError.ERR_SERVER_CENTER_REACH_PROXY_MAX: return -102056; + case TXLiteAVError.ERR_SERVER_CENTER_RECORDID_STORE: return -102057; + case TXLiteAVError.ERR_SERVER_CENTER_PB_SERIALIZE: return -102058; + case TXLiteAVError.ERR_SERVER_SSO_SIG_EXPIRED: return -70001; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_1: return -70003; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_2: return -70004; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_3: return -70005; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_4: return -70006; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_5: return -70007; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_6: return -70008; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_7: return -70009; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_8: return -70010; + case TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_ID_NOT_MATCH: return -70013; + case TXLiteAVError.ERR_SERVER_SSO_APPID_NOT_MATCH: return -70014; + case TXLiteAVError.ERR_SERVER_SSO_VERIFICATION_EXPIRED: return -70017; + case TXLiteAVError.ERR_SERVER_SSO_VERIFICATION_FAILED: return -70018; + case TXLiteAVError.ERR_SERVER_SSO_APPID_NOT_FOUND: return -70020; + case TXLiteAVError.ERR_SERVER_SSO_ACCOUNT_IN_BLACKLIST: return -70051; + case TXLiteAVError.ERR_SERVER_SSO_SIG_INVALID: return -70052; + case TXLiteAVError.ERR_SERVER_SSO_LIMITED_BY_SECURITY: return -70114; + case TXLiteAVError.ERR_SERVER_SSO_INVALID_LOGIN_STATUS: return -70221; + case TXLiteAVError.ERR_SERVER_SSO_APPID_ERROR: return -70252; + case TXLiteAVError.ERR_SERVER_SSO_TICKET_VERIFICATION_FAILED: return -70346; + case TXLiteAVError.ERR_SERVER_SSO_TICKET_EXPIRED: return -70347; + case TXLiteAVError.ERR_SERVER_SSO_ACCOUNT_EXCEED_PURCHASES: return -70398; + case TXLiteAVError.ERR_SERVER_SSO_INTERNAL_ERROR: return -70500; + default: return 0; + } + } +} + +extension TXLiteAVErrorFromX on int { + TXLiteAVError toTXLiteAVError() { + switch (this) { + case 0: return TXLiteAVError.ERR_NULL; + case -3301: return TXLiteAVError.ERR_ROOM_ENTER_FAIL; + case -3316: return TXLiteAVError.ERR_ENTER_ROOM_PARAM_NULL; + case -3317: return TXLiteAVError.ERR_SDK_APPID_INVALID; + case -3318: return TXLiteAVError.ERR_ROOM_ID_INVALID; + case -3319: return TXLiteAVError.ERR_USER_ID_INVALID; + case -3320: return TXLiteAVError.ERR_USER_SIG_INVALID; + case -3308: return TXLiteAVError.ERR_ROOM_REQUEST_ENTER_ROOM_TIMEOUT; + case -100013: return TXLiteAVError.ERR_SERVER_INFO_SERVICE_SUSPENDED; + case -3325: return TXLiteAVError.ERR_ROOM_REQUEST_QUIT_ROOM_TIMEOUT; + case -1301: return TXLiteAVError.ERR_CAMERA_START_FAIL; + case -1314: return TXLiteAVError.ERR_CAMERA_NOT_AUTHORIZED; + case -1315: return TXLiteAVError.ERR_CAMERA_SET_PARAM_FAIL; + case -1316: return TXLiteAVError.ERR_CAMERA_OCCUPY; + case -1302: return TXLiteAVError.ERR_MIC_START_FAIL; + case -1317: return TXLiteAVError.ERR_MIC_NOT_AUTHORIZED; + case -1318: return TXLiteAVError.ERR_MIC_SET_PARAM_FAIL; + case -1319: return TXLiteAVError.ERR_MIC_OCCUPY; + case -1320: return TXLiteAVError.ERR_MIC_STOP_FAIL; + case -1321: return TXLiteAVError.ERR_SPEAKER_START_FAIL; + case -1322: return TXLiteAVError.ERR_SPEAKER_SET_PARAM_FAIL; + case -1323: return TXLiteAVError.ERR_SPEAKER_STOP_FAIL; + case -1308: return TXLiteAVError.ERR_SCREEN_CAPTURE_START_FAIL; + case -1309: return TXLiteAVError.ERR_SCREEN_CAPTURE_UNSURPORT; + case -102015: return TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_SUB_VIDEO; + case -102016: return TXLiteAVError.ERR_SERVER_CENTER_ANOTHER_USER_PUSH_SUB_VIDEO; + case -7001: return TXLiteAVError.ERR_SCREEN_CAPTURE_STOPPED; + case -1303: return TXLiteAVError.ERR_VIDEO_ENCODE_FAIL; + case -1305: return TXLiteAVError.ERR_UNSUPPORTED_RESOLUTION; + case -1304: return TXLiteAVError.ERR_AUDIO_ENCODE_FAIL; + case -1306: return TXLiteAVError.ERR_UNSUPPORTED_SAMPLERATE; + case -1327: return TXLiteAVError.ERR_PIXEL_FORMAT_UNSUPPORTED; + case -1328: return TXLiteAVError.ERR_BUFFER_TYPE_UNSUPPORTED; + case -3321: return TXLiteAVError.ERR_PUBLISH_CDN_STREAM_REQUEST_TIME_OUT; + case -3322: return TXLiteAVError.ERR_CLOUD_MIX_TRANSCODING_REQUEST_TIME_OUT; + case -3323: return TXLiteAVError.ERR_PUBLISH_CDN_STREAM_SERVER_FAILED; + case -3324: return TXLiteAVError.ERR_CLOUD_MIX_TRANSCODING_SERVER_FAILED; + case -3333: return TXLiteAVError.ERR_ROOM_REQUEST_START_PUBLISHING_TIMEOUT; + case -3334: return TXLiteAVError.ERR_ROOM_REQUEST_START_PUBLISHING_ERROR; + case -3335: return TXLiteAVError.ERR_ROOM_REQUEST_STOP_PUBLISHING_TIMEOUT; + case -3336: return TXLiteAVError.ERR_ROOM_REQUEST_STOP_PUBLISHING_ERROR; + case -3326: return TXLiteAVError.ERR_ROOM_REQUEST_CONN_ROOM_TIMEOUT; + case -3327: return TXLiteAVError.ERR_ROOM_REQUEST_DISCONN_ROOM_TIMEOUT; + case -3328: return TXLiteAVError.ERR_ROOM_REQUEST_CONN_ROOM_INVALID_PARAM; + case -3330: return TXLiteAVError.ERR_CONNECT_OTHER_ROOM_AS_AUDIENCE; + case -102031: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NOT_SUPPORT; + case -102032: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_NUM; + case -102033: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REACH_MAX_RETRY_TIMES; + case -102034: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REQ_TIMEOUT; + case -102035: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_REQ; + case -102036: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NO_SIG; + case -102037: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_DECRYPT_SIG; + case -102038: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NO_KEY; + case -102039: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_PARSE_SIG; + case -102040: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_INVALID_SIG_TIME; + case -102041: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_SIG_GROUPID; + case -102042: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_NOT_CONNED; + case -102043: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_USER_NOT_CONNED; + case -102044: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_FAILED; + case -102045: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CANCEL_FAILED; + case -102046: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_ROOM_NOT_EXIST; + case -102047: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_REACH_MAX_ROOM; + case -102048: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_NOT_EXIST; + case -102049: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_DELETED; + case -102050: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_CONNED_USER_FULL; + case -102051: return TXLiteAVError.ERR_SERVER_CENTER_CONN_ROOM_INVALID_SEQ; + case -1307: return TXLiteAVError.ERR_RTMP_PUSH_NET_DISCONNECT; + case -1313: return TXLiteAVError.ERR_RTMP_PUSH_INVALID_ADDRESS; + case -1324: return TXLiteAVError.ERR_RTMP_PUSH_NET_ALLADDRESS_FAIL; + case -1325: return TXLiteAVError.ERR_RTMP_PUSH_NO_NETWORK; + case -1326: return TXLiteAVError.ERR_RTMP_PUSH_SERVER_REFUSE; + case -2301: return TXLiteAVError.ERR_PLAY_LIVE_STREAM_NET_DISCONNECT; + case -2302: return TXLiteAVError.ERR_GET_RTMP_ACC_URL_FAIL; + case -2303: return TXLiteAVError.ERR_FILE_NOT_FOUND; + case -2304: return TXLiteAVError.ERR_HEVC_DECODE_FAIL; + case -2305: return TXLiteAVError.ERR_VOD_DECRYPT_FAIL; + case -2306: return TXLiteAVError.ERR_GET_VODFILE_MEDIAINFO_FAIL; + case -2307: return TXLiteAVError.ERR_PLAY_LIVE_STREAM_SWITCH_FAIL; + case -2308: return TXLiteAVError.ERR_PLAY_LIVE_STREAM_SERVER_REFUSE; + case -2309: return TXLiteAVError.ERR_RTMP_ACC_FETCH_STREAM_FAIL; + case -3302: return TXLiteAVError.ERR_ROOM_HEARTBEAT_FAIL; + case -3303: return TXLiteAVError.ERR_ROOM_REQUEST_IP_FAIL; + case -3304: return TXLiteAVError.ERR_ROOM_CONNECT_FAIL; + case -3305: return TXLiteAVError.ERR_ROOM_REQUEST_AVSEAT_FAIL; + case -3306: return TXLiteAVError.ERR_ROOM_REQUEST_TOKEN_HTTPS_TIMEOUT; + case -3307: return TXLiteAVError.ERR_ROOM_REQUEST_IP_TIMEOUT; + case -3309: return TXLiteAVError.ERR_ROOM_REQUEST_VIDEO_FLAG_TIMEOUT; + case -3310: return TXLiteAVError.ERR_ROOM_REQUEST_VIDEO_DATA_ROOM_TIMEOUT; + case -3311: return TXLiteAVError.ERR_ROOM_REQUEST_CHANGE_ABILITY_TIMEOUT; + case -3312: return TXLiteAVError.ERR_ROOM_REQUEST_STATUS_REPORT_TIMEOUT; + case -3313: return TXLiteAVError.ERR_ROOM_REQUEST_CLOSE_VIDEO_TIMEOUT; + case -3314: return TXLiteAVError.ERR_ROOM_REQUEST_SET_RECEIVE_TIMEOUT; + case -3315: return TXLiteAVError.ERR_ROOM_REQUEST_TOKEN_INVALID_PARAMETER; + case -3329: return TXLiteAVError.ERR_ROOM_REQUEST_AES_TOKEN_RETURN_ERROR; + case -3331: return TXLiteAVError.ERR_ACCIP_LIST_EMPTY; + case -3332: return TXLiteAVError.ERR_ROOM_REQUEST_SEND_JSON_CMD_TIMEOUT; + case -100000: return TXLiteAVError.ERR_SERVER_INFO_UNPACKING_ERROR; + case -100001: return TXLiteAVError.ERR_SERVER_INFO_TOKEN_ERROR; + case -100002: return TXLiteAVError.ERR_SERVER_INFO_ALLOCATE_ACCESS_FAILED; + case -100003: return TXLiteAVError.ERR_SERVER_INFO_GENERATE_SIGN_FAILED; + case -100004: return TXLiteAVError.ERR_SERVER_INFO_TOKEN_TIMEOUT; + case -100005: return TXLiteAVError.ERR_SERVER_INFO_INVALID_COMMAND; + case -100006: return TXLiteAVError.ERR_SERVER_INFO_PRIVILEGE_FLAG_ERROR; + case -100007: return TXLiteAVError.ERR_SERVER_INFO_GENERATE_KEN_ERROR; + case -100008: return TXLiteAVError.ERR_SERVER_INFO_GENERATE_TOKEN_ERROR; + case -100009: return TXLiteAVError.ERR_SERVER_INFO_DATABASE; + case -100010: return TXLiteAVError.ERR_SERVER_INFO_BAD_ROOMID; + case -100011: return TXLiteAVError.ERR_SERVER_INFO_BAD_SCENE_OR_ROLE; + case -100012: return TXLiteAVError.ERR_SERVER_INFO_ROOMID_EXCHANGE_FAILED; + case -100014: return TXLiteAVError.ERR_SERVER_INFO_STRGROUP_HAS_INVALID_CHARS; + case -100015: return TXLiteAVError.ERR_SERVER_INFO_LACK_SDKAPPID; + case -100016: return TXLiteAVError.ERR_SERVER_INFO_INVALID; + case -100017: return TXLiteAVError.ERR_SERVER_INFO_ECDH_GET_KEY; + case -100018: return TXLiteAVError.ERR_SERVER_INFO_ECDH_GET_TINYID; + case -101000: return TXLiteAVError.ERR_SERVER_ACC_TOKEN_TIMEOUT; + case -101001: return TXLiteAVError.ERR_SERVER_ACC_SIGN_ERROR; + case -101002: return TXLiteAVError.ERR_SERVER_ACC_SIGN_TIMEOUT; + case -101003: return TXLiteAVError.ERR_SERVER_ACC_ROOM_NOT_EXIST; + case -101004: return TXLiteAVError.ERR_SERVER_ACC_ROOMID; + case -101005: return TXLiteAVError.ERR_SERVER_ACC_LOCATIONID; + case -101006: return TXLiteAVError.ERR_SERVER_ACC_TOKEN_EORROR; + case -102000: return TXLiteAVError.ERR_SERVER_CENTER_SYSTEM_ERROR; + case -102001: return TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROOMID; + case -102002: return TXLiteAVError.ERR_SERVER_CENTER_CREATE_ROOM_FAILED; + case -102003: return TXLiteAVError.ERR_SERVER_CENTER_SIGN_ERROR; + case -102004: return TXLiteAVError.ERR_SERVER_CENTER_SIGN_TIMEOUT; + case -102005: return TXLiteAVError.ERR_SERVER_CENTER_ROOM_NOT_EXIST; + case -102006: return TXLiteAVError.ERR_SERVER_CENTER_ADD_USER_FAILED; + case -102007: return TXLiteAVError.ERR_SERVER_CENTER_FIND_USER_FAILED; + case -102008: return TXLiteAVError.ERR_SERVER_CENTER_SWITCH_TERMINATION_FREQUENTLY; + case -102009: return TXLiteAVError.ERR_SERVER_CENTER_LOCATION_NOT_EXIST; + case -102010: return TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_CREATE_ROOM; + case -102011: return TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_ENTER_ROOM; + case -102012: return TXLiteAVError.ERR_SERVER_CENTER_INVALID_PARAMETER_SUB_VIDEO; + case -102013: return TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_PUSH_VIDEO; + case -102014: return TXLiteAVError.ERR_SERVER_CENTER_ROUTE_TABLE_ERROR; + case -102017: return TXLiteAVError.ERR_SERVER_CENTER_NOT_PUSH_SUB_VIDEO; + case -102018: return TXLiteAVError.ERR_SERVER_CENTER_USER_WAS_DELETED; + case -102019: return TXLiteAVError.ERR_SERVER_CENTER_NO_PRIVILEDGE_REQUEST_VIDEO; + case -102023: return TXLiteAVError.ERR_SERVER_CENTER_INVALID_PARAMETER; + case -102024: return TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_UNKNOW_TYPE; + case -102025: return TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_INVALID_PACKET; + case -102026: return TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_DEST_USER_NOT_EXIST; + case -102027: return TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_ROOM_TOO_BIG; + case -102028: return TXLiteAVError.ERR_SERVER_CENTER_I_FRAME_RPS_INVALID_PARAMETER; + case -102029: return TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROOM_ID; + case -102030: return TXLiteAVError.ERR_SERVER_CENTER_ROOM_ID_TOO_LONG; + case -102052: return TXLiteAVError.ERR_SERVER_CENTER_ROOM_FULL; + case -102053: return TXLiteAVError.ERR_SERVER_CENTER_DECODE_JSON_FAIL; + case -102054: return TXLiteAVError.ERR_SERVER_CENTER_UNKNOWN_SUB_CMD; + case -102055: return TXLiteAVError.ERR_SERVER_CENTER_INVALID_ROLE; + case -102056: return TXLiteAVError.ERR_SERVER_CENTER_REACH_PROXY_MAX; + case -102057: return TXLiteAVError.ERR_SERVER_CENTER_RECORDID_STORE; + case -102058: return TXLiteAVError.ERR_SERVER_CENTER_PB_SERIALIZE; + case -70001: return TXLiteAVError.ERR_SERVER_SSO_SIG_EXPIRED; + case -70003: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_1; + case -70004: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_2; + case -70005: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_3; + case -70006: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_4; + case -70007: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_5; + case -70008: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_6; + case -70009: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_7; + case -70010: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_FAILED_8; + case -70013: return TXLiteAVError.ERR_SERVER_SSO_SIG_VERIFICATION_ID_NOT_MATCH; + case -70014: return TXLiteAVError.ERR_SERVER_SSO_APPID_NOT_MATCH; + case -70017: return TXLiteAVError.ERR_SERVER_SSO_VERIFICATION_EXPIRED; + case -70018: return TXLiteAVError.ERR_SERVER_SSO_VERIFICATION_FAILED; + case -70020: return TXLiteAVError.ERR_SERVER_SSO_APPID_NOT_FOUND; + case -70051: return TXLiteAVError.ERR_SERVER_SSO_ACCOUNT_IN_BLACKLIST; + case -70052: return TXLiteAVError.ERR_SERVER_SSO_SIG_INVALID; + case -70114: return TXLiteAVError.ERR_SERVER_SSO_LIMITED_BY_SECURITY; + case -70221: return TXLiteAVError.ERR_SERVER_SSO_INVALID_LOGIN_STATUS; + case -70252: return TXLiteAVError.ERR_SERVER_SSO_APPID_ERROR; + case -70346: return TXLiteAVError.ERR_SERVER_SSO_TICKET_VERIFICATION_FAILED; + case -70347: return TXLiteAVError.ERR_SERVER_SSO_TICKET_EXPIRED; + case -70398: return TXLiteAVError.ERR_SERVER_SSO_ACCOUNT_EXCEED_PURCHASES; + case -70500: return TXLiteAVError.ERR_SERVER_SSO_INTERNAL_ERROR; + default: return TXLiteAVError.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXLiteAVEvent.g.dart b/lib/src/ios/TXLiteAVEvent.g.dart new file mode 100644 index 0000000..fa51db8 --- /dev/null +++ b/lib/src/ios/TXLiteAVEvent.g.dart @@ -0,0 +1,200 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXLiteAVEvent { + EVT_RTMP_PUSH_CONNECT_SUCC /* 1001 */, + EVT_RTMP_PUSH_BEGIN /* 1002 */, + EVT_CAMERA_START_SUCC /* 1003 */, + EVT_SCREEN_CAPTURE_SUCC /* 1004 */, + EVT_UP_CHANGE_RESOLUTION /* 1005 */, + EVT_UP_CHANGE_BITRATE /* 1006 */, + EVT_FIRST_FRAME_AVAILABLE /* 1007 */, + EVT_START_VIDEO_ENCODER /* 1008 */, + EVT_SNAPSHOT_COMPLETE /* 1022 */, + EVT_CAMERA_REMOVED /* 1023 */, + EVT_CAMERA_AVAILABLE /* 1024 */, + EVT_CAMERA_CLOSE /* 1025 */, + EVT_RTMP_PUSH_PUBLISH_START /* 1026 */, + EVT_HW_ENCODER_START_SUCC /* 1027 */, + EVT_SW_ENCODER_START_SUCC /* 1028 */, + EVT_LOCAL_RECORD_RESULT /* 1029 */, + EVT_LOCAL_RECORD_PROGRESS /* 1030 */, + EVT_PLAY_LIVE_STREAM_CONNECT_SUCC /* 2001 */, + EVT_PLAY_LIVE_STREAM_BEGIN /* 2002 */, + EVT_RENDER_FIRST_I_FRAME /* 2003 */, + EVT_VIDEO_PLAY_BEGIN /* 2004 */, + EVT_VIDEO_PLAY_PROGRESS /* 2005 */, + EVT_VIDEO_PLAY_END /* 2006 */, + EVT_VIDEO_PLAY_LOADING /* 2007 */, + EVT_START_VIDEO_DECODER /* 2008 */, + EVT_DOWN_CHANGE_RESOLUTION /* 2009 */, + EVT_GET_VODFILE_MEDIAINFO_SUCC /* 2010 */, + EVT_VIDEO_CHANGE_ROTATION /* 2011 */, + EVT_PLAY_GET_MESSAGE /* 2012 */, + EVT_VOD_PLAY_PREPARED /* 2013 */, + EVT_VOD_PLAY_LOADING_END /* 2014 */, + EVT_PLAY_LIVE_STREAM_SWITCH_SUCC /* 2015 */, + EVT_VOD_PLAY_TCP_CONNECT_SUCC /* 2016 */, + EVT_VOD_PLAY_FIRST_VIDEO_PACKET /* 2017 */, + EVT_VOD_PLAY_DNS_RESOLVED /* 2018 */, + EVT_VOD_PLAY_SEEK_COMPLETE /* 2019 */, + EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES /* 2020 */, + EVT_HW_DECODER_START_SUCC /* 2021 */, + EVT_SW_DECODER_START_SUCC /* 2022 */, + EVT_AUDIO_JITTER_STATE_FIRST_LOADING /* 2023 */, + EVT_AUDIO_JITTER_STATE_LOADING /* 2024 */, + EVT_AUDIO_JITTER_STATE_PLAYING /* 2025 */, + EVT_AUDIO_JITTER_STATE_FIRST_PLAY /* 2026 */, + EVT_MIC_START_SUCC /* 2027 */, + EVT_PLAY_GET_METADATA /* 2028 */, + EVT_MIC_RELEASE_SUCC /* 2029 */, + EVT_PLAY_GET_FLVSESSIONKEY /* 2030 */, + EVT_ROOM_ENTER /* 1018 */, + EVT_ROOM_EXIT /* 1019 */, + EVT_ROOM_USERLIST /* 1020 */, + EVT_ROOM_NEED_REENTER /* 1021 */, + EVT_ROOM_ENTER_FAILED /* 1022 */, + EVT_ROOM_USER_ENTER /* 1031 */, + EVT_ROOM_USER_EXIT /* 1032 */, + EVT_ROOM_USER_VIDEO_STATE /* 1033 */, + EVT_ROOM_USER_AUDIO_STATE /* 1034 */, + EVT_ROOM_REQUEST_IP_SUCC /* 8001 */, + EVT_ROOM_CONNECT_SUCC /* 8002 */, + EVT_ROOM_REQUEST_AVSEAT_SUCC /* 8003 */ +} + +extension TXLiteAVEventToX on TXLiteAVEvent { + int toValue() { + switch (this) { + case TXLiteAVEvent.EVT_RTMP_PUSH_CONNECT_SUCC: return 1001; + case TXLiteAVEvent.EVT_RTMP_PUSH_BEGIN: return 1002; + case TXLiteAVEvent.EVT_CAMERA_START_SUCC: return 1003; + case TXLiteAVEvent.EVT_SCREEN_CAPTURE_SUCC: return 1004; + case TXLiteAVEvent.EVT_UP_CHANGE_RESOLUTION: return 1005; + case TXLiteAVEvent.EVT_UP_CHANGE_BITRATE: return 1006; + case TXLiteAVEvent.EVT_FIRST_FRAME_AVAILABLE: return 1007; + case TXLiteAVEvent.EVT_START_VIDEO_ENCODER: return 1008; + case TXLiteAVEvent.EVT_SNAPSHOT_COMPLETE: return 1022; + case TXLiteAVEvent.EVT_CAMERA_REMOVED: return 1023; + case TXLiteAVEvent.EVT_CAMERA_AVAILABLE: return 1024; + case TXLiteAVEvent.EVT_CAMERA_CLOSE: return 1025; + case TXLiteAVEvent.EVT_RTMP_PUSH_PUBLISH_START: return 1026; + case TXLiteAVEvent.EVT_HW_ENCODER_START_SUCC: return 1027; + case TXLiteAVEvent.EVT_SW_ENCODER_START_SUCC: return 1028; + case TXLiteAVEvent.EVT_LOCAL_RECORD_RESULT: return 1029; + case TXLiteAVEvent.EVT_LOCAL_RECORD_PROGRESS: return 1030; + case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_CONNECT_SUCC: return 2001; + case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_BEGIN: return 2002; + case TXLiteAVEvent.EVT_RENDER_FIRST_I_FRAME: return 2003; + case TXLiteAVEvent.EVT_VIDEO_PLAY_BEGIN: return 2004; + case TXLiteAVEvent.EVT_VIDEO_PLAY_PROGRESS: return 2005; + case TXLiteAVEvent.EVT_VIDEO_PLAY_END: return 2006; + case TXLiteAVEvent.EVT_VIDEO_PLAY_LOADING: return 2007; + case TXLiteAVEvent.EVT_START_VIDEO_DECODER: return 2008; + case TXLiteAVEvent.EVT_DOWN_CHANGE_RESOLUTION: return 2009; + case TXLiteAVEvent.EVT_GET_VODFILE_MEDIAINFO_SUCC: return 2010; + case TXLiteAVEvent.EVT_VIDEO_CHANGE_ROTATION: return 2011; + case TXLiteAVEvent.EVT_PLAY_GET_MESSAGE: return 2012; + case TXLiteAVEvent.EVT_VOD_PLAY_PREPARED: return 2013; + case TXLiteAVEvent.EVT_VOD_PLAY_LOADING_END: return 2014; + case TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_SWITCH_SUCC: return 2015; + case TXLiteAVEvent.EVT_VOD_PLAY_TCP_CONNECT_SUCC: return 2016; + case TXLiteAVEvent.EVT_VOD_PLAY_FIRST_VIDEO_PACKET: return 2017; + case TXLiteAVEvent.EVT_VOD_PLAY_DNS_RESOLVED: return 2018; + case TXLiteAVEvent.EVT_VOD_PLAY_SEEK_COMPLETE: return 2019; + case TXLiteAVEvent.EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES: return 2020; + case TXLiteAVEvent.EVT_HW_DECODER_START_SUCC: return 2021; + case TXLiteAVEvent.EVT_SW_DECODER_START_SUCC: return 2022; + case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_LOADING: return 2023; + case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_LOADING: return 2024; + case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_PLAYING: return 2025; + case TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_PLAY: return 2026; + case TXLiteAVEvent.EVT_MIC_START_SUCC: return 2027; + case TXLiteAVEvent.EVT_PLAY_GET_METADATA: return 2028; + case TXLiteAVEvent.EVT_MIC_RELEASE_SUCC: return 2029; + case TXLiteAVEvent.EVT_PLAY_GET_FLVSESSIONKEY: return 2030; + case TXLiteAVEvent.EVT_ROOM_ENTER: return 1018; + case TXLiteAVEvent.EVT_ROOM_EXIT: return 1019; + case TXLiteAVEvent.EVT_ROOM_USERLIST: return 1020; + case TXLiteAVEvent.EVT_ROOM_NEED_REENTER: return 1021; + case TXLiteAVEvent.EVT_ROOM_ENTER_FAILED: return 1022; + case TXLiteAVEvent.EVT_ROOM_USER_ENTER: return 1031; + case TXLiteAVEvent.EVT_ROOM_USER_EXIT: return 1032; + case TXLiteAVEvent.EVT_ROOM_USER_VIDEO_STATE: return 1033; + case TXLiteAVEvent.EVT_ROOM_USER_AUDIO_STATE: return 1034; + case TXLiteAVEvent.EVT_ROOM_REQUEST_IP_SUCC: return 8001; + case TXLiteAVEvent.EVT_ROOM_CONNECT_SUCC: return 8002; + case TXLiteAVEvent.EVT_ROOM_REQUEST_AVSEAT_SUCC: return 8003; + default: return 0; + } + } +} + +extension TXLiteAVEventFromX on int { + TXLiteAVEvent toTXLiteAVEvent() { + switch (this) { + case 1001: return TXLiteAVEvent.EVT_RTMP_PUSH_CONNECT_SUCC; + case 1002: return TXLiteAVEvent.EVT_RTMP_PUSH_BEGIN; + case 1003: return TXLiteAVEvent.EVT_CAMERA_START_SUCC; + case 1004: return TXLiteAVEvent.EVT_SCREEN_CAPTURE_SUCC; + case 1005: return TXLiteAVEvent.EVT_UP_CHANGE_RESOLUTION; + case 1006: return TXLiteAVEvent.EVT_UP_CHANGE_BITRATE; + case 1007: return TXLiteAVEvent.EVT_FIRST_FRAME_AVAILABLE; + case 1008: return TXLiteAVEvent.EVT_START_VIDEO_ENCODER; + case 1022: return TXLiteAVEvent.EVT_SNAPSHOT_COMPLETE; + case 1023: return TXLiteAVEvent.EVT_CAMERA_REMOVED; + case 1024: return TXLiteAVEvent.EVT_CAMERA_AVAILABLE; + case 1025: return TXLiteAVEvent.EVT_CAMERA_CLOSE; + case 1026: return TXLiteAVEvent.EVT_RTMP_PUSH_PUBLISH_START; + case 1027: return TXLiteAVEvent.EVT_HW_ENCODER_START_SUCC; + case 1028: return TXLiteAVEvent.EVT_SW_ENCODER_START_SUCC; + case 1029: return TXLiteAVEvent.EVT_LOCAL_RECORD_RESULT; + case 1030: return TXLiteAVEvent.EVT_LOCAL_RECORD_PROGRESS; + case 2001: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_CONNECT_SUCC; + case 2002: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_BEGIN; + case 2003: return TXLiteAVEvent.EVT_RENDER_FIRST_I_FRAME; + case 2004: return TXLiteAVEvent.EVT_VIDEO_PLAY_BEGIN; + case 2005: return TXLiteAVEvent.EVT_VIDEO_PLAY_PROGRESS; + case 2006: return TXLiteAVEvent.EVT_VIDEO_PLAY_END; + case 2007: return TXLiteAVEvent.EVT_VIDEO_PLAY_LOADING; + case 2008: return TXLiteAVEvent.EVT_START_VIDEO_DECODER; + case 2009: return TXLiteAVEvent.EVT_DOWN_CHANGE_RESOLUTION; + case 2010: return TXLiteAVEvent.EVT_GET_VODFILE_MEDIAINFO_SUCC; + case 2011: return TXLiteAVEvent.EVT_VIDEO_CHANGE_ROTATION; + case 2012: return TXLiteAVEvent.EVT_PLAY_GET_MESSAGE; + case 2013: return TXLiteAVEvent.EVT_VOD_PLAY_PREPARED; + case 2014: return TXLiteAVEvent.EVT_VOD_PLAY_LOADING_END; + case 2015: return TXLiteAVEvent.EVT_PLAY_LIVE_STREAM_SWITCH_SUCC; + case 2016: return TXLiteAVEvent.EVT_VOD_PLAY_TCP_CONNECT_SUCC; + case 2017: return TXLiteAVEvent.EVT_VOD_PLAY_FIRST_VIDEO_PACKET; + case 2018: return TXLiteAVEvent.EVT_VOD_PLAY_DNS_RESOLVED; + case 2019: return TXLiteAVEvent.EVT_VOD_PLAY_SEEK_COMPLETE; + case 2020: return TXLiteAVEvent.EVT_VIDEO_DECODER_CACHE_TOO_MANY_FRAMES; + case 2021: return TXLiteAVEvent.EVT_HW_DECODER_START_SUCC; + case 2022: return TXLiteAVEvent.EVT_SW_DECODER_START_SUCC; + case 2023: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_LOADING; + case 2024: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_LOADING; + case 2025: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_PLAYING; + case 2026: return TXLiteAVEvent.EVT_AUDIO_JITTER_STATE_FIRST_PLAY; + case 2027: return TXLiteAVEvent.EVT_MIC_START_SUCC; + case 2028: return TXLiteAVEvent.EVT_PLAY_GET_METADATA; + case 2029: return TXLiteAVEvent.EVT_MIC_RELEASE_SUCC; + case 2030: return TXLiteAVEvent.EVT_PLAY_GET_FLVSESSIONKEY; + case 1018: return TXLiteAVEvent.EVT_ROOM_ENTER; + case 1019: return TXLiteAVEvent.EVT_ROOM_EXIT; + case 1020: return TXLiteAVEvent.EVT_ROOM_USERLIST; + case 1021: return TXLiteAVEvent.EVT_ROOM_NEED_REENTER; + case 1022: return TXLiteAVEvent.EVT_ROOM_ENTER_FAILED; + case 1031: return TXLiteAVEvent.EVT_ROOM_USER_ENTER; + case 1032: return TXLiteAVEvent.EVT_ROOM_USER_EXIT; + case 1033: return TXLiteAVEvent.EVT_ROOM_USER_VIDEO_STATE; + case 1034: return TXLiteAVEvent.EVT_ROOM_USER_AUDIO_STATE; + case 8001: return TXLiteAVEvent.EVT_ROOM_REQUEST_IP_SUCC; + case 8002: return TXLiteAVEvent.EVT_ROOM_CONNECT_SUCC; + case 8003: return TXLiteAVEvent.EVT_ROOM_REQUEST_AVSEAT_SUCC; + default: return TXLiteAVEvent.values[this + 1001]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXLiteAVWarning.g.dart b/lib/src/ios/TXLiteAVWarning.g.dart new file mode 100644 index 0000000..0f9cbd1 --- /dev/null +++ b/lib/src/ios/TXLiteAVWarning.g.dart @@ -0,0 +1,119 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXLiteAVWarning { + WARNING_HW_ENCODER_START_FAIL /* 1103 */, + WARNING_VIDEO_ENCODER_SW_TO_HW /* 1107 */, + WARNING_INSUFFICIENT_CAPTURE_FPS /* 1108 */, + WARNING_SW_ENCODER_START_FAIL /* 1109 */, + WARNING_REDUCE_CAPTURE_RESOLUTION /* 1110 */, + WARNING_VIDEO_FRAME_DECODE_FAIL /* 2101 */, + WARNING_AUDIO_FRAME_DECODE_FAIL /* 2102 */, + WARNING_VIDEO_PLAY_LAG /* 2105 */, + WARNING_HW_DECODER_START_FAIL /* 2106 */, + WARNING_VIDEO_DECODER_HW_TO_SW /* 2108 */, + WARNING_SW_DECODER_START_FAIL /* 2109 */, + WARNING_VIDEO_RENDER_FAIL /* 2110 */, + WARNING_START_CAPTURE_IGNORED /* 4000 */, + WARNING_AUDIO_RECORDING_WRITE_FAIL /* 7001 */, + WARNING_ROOM_DISCONNECT /* 5101 */, + WARNING_IGNORE_UPSTREAM_FOR_AUDIENCE /* 6001 */, + WARNING_NET_BUSY /* 1101 */, + WARNING_RTMP_SERVER_RECONNECT /* 1102 */, + WARNING_LIVE_STREAM_SERVER_RECONNECT /* 2103 */, + WARNING_RECV_DATA_LAG /* 2104 */, + WARNING_RTMP_DNS_FAIL /* 3001 */, + WARNING_RTMP_SEVER_CONN_FAIL /* 3002 */, + WARNING_RTMP_SHAKE_FAIL /* 3003 */, + WARNING_RTMP_SERVER_BREAK_CONNECT /* 3004 */, + WARNING_RTMP_READ_WRITE_FAIL /* 3005 */, + WARNING_RTMP_WRITE_FAIL /* 3006 */, + WARNING_RTMP_READ_FAIL /* 3007 */, + WARNING_RTMP_NO_DATA /* 3008 */, + WARNING_PLAY_LIVE_STREAM_INFO_CONNECT_FAIL /* 3009 */, + WARNING_NO_STEAM_SOURCE_FAIL /* 3010 */, + WARNING_ROOM_RECONNECT /* 5102 */, + WARNING_ROOM_NET_BUSY /* 5103 */ +} + +extension TXLiteAVWarningToX on TXLiteAVWarning { + int toValue() { + switch (this) { + case TXLiteAVWarning.WARNING_HW_ENCODER_START_FAIL: return 1103; + case TXLiteAVWarning.WARNING_VIDEO_ENCODER_SW_TO_HW: return 1107; + case TXLiteAVWarning.WARNING_INSUFFICIENT_CAPTURE_FPS: return 1108; + case TXLiteAVWarning.WARNING_SW_ENCODER_START_FAIL: return 1109; + case TXLiteAVWarning.WARNING_REDUCE_CAPTURE_RESOLUTION: return 1110; + case TXLiteAVWarning.WARNING_VIDEO_FRAME_DECODE_FAIL: return 2101; + case TXLiteAVWarning.WARNING_AUDIO_FRAME_DECODE_FAIL: return 2102; + case TXLiteAVWarning.WARNING_VIDEO_PLAY_LAG: return 2105; + case TXLiteAVWarning.WARNING_HW_DECODER_START_FAIL: return 2106; + case TXLiteAVWarning.WARNING_VIDEO_DECODER_HW_TO_SW: return 2108; + case TXLiteAVWarning.WARNING_SW_DECODER_START_FAIL: return 2109; + case TXLiteAVWarning.WARNING_VIDEO_RENDER_FAIL: return 2110; + case TXLiteAVWarning.WARNING_START_CAPTURE_IGNORED: return 4000; + case TXLiteAVWarning.WARNING_AUDIO_RECORDING_WRITE_FAIL: return 7001; + case TXLiteAVWarning.WARNING_ROOM_DISCONNECT: return 5101; + case TXLiteAVWarning.WARNING_IGNORE_UPSTREAM_FOR_AUDIENCE: return 6001; + case TXLiteAVWarning.WARNING_NET_BUSY: return 1101; + case TXLiteAVWarning.WARNING_RTMP_SERVER_RECONNECT: return 1102; + case TXLiteAVWarning.WARNING_LIVE_STREAM_SERVER_RECONNECT: return 2103; + case TXLiteAVWarning.WARNING_RECV_DATA_LAG: return 2104; + case TXLiteAVWarning.WARNING_RTMP_DNS_FAIL: return 3001; + case TXLiteAVWarning.WARNING_RTMP_SEVER_CONN_FAIL: return 3002; + case TXLiteAVWarning.WARNING_RTMP_SHAKE_FAIL: return 3003; + case TXLiteAVWarning.WARNING_RTMP_SERVER_BREAK_CONNECT: return 3004; + case TXLiteAVWarning.WARNING_RTMP_READ_WRITE_FAIL: return 3005; + case TXLiteAVWarning.WARNING_RTMP_WRITE_FAIL: return 3006; + case TXLiteAVWarning.WARNING_RTMP_READ_FAIL: return 3007; + case TXLiteAVWarning.WARNING_RTMP_NO_DATA: return 3008; + case TXLiteAVWarning.WARNING_PLAY_LIVE_STREAM_INFO_CONNECT_FAIL: return 3009; + case TXLiteAVWarning.WARNING_NO_STEAM_SOURCE_FAIL: return 3010; + case TXLiteAVWarning.WARNING_ROOM_RECONNECT: return 5102; + case TXLiteAVWarning.WARNING_ROOM_NET_BUSY: return 5103; + default: return 0; + } + } +} + +extension TXLiteAVWarningFromX on int { + TXLiteAVWarning toTXLiteAVWarning() { + switch (this) { + case 1103: return TXLiteAVWarning.WARNING_HW_ENCODER_START_FAIL; + case 1107: return TXLiteAVWarning.WARNING_VIDEO_ENCODER_SW_TO_HW; + case 1108: return TXLiteAVWarning.WARNING_INSUFFICIENT_CAPTURE_FPS; + case 1109: return TXLiteAVWarning.WARNING_SW_ENCODER_START_FAIL; + case 1110: return TXLiteAVWarning.WARNING_REDUCE_CAPTURE_RESOLUTION; + case 2101: return TXLiteAVWarning.WARNING_VIDEO_FRAME_DECODE_FAIL; + case 2102: return TXLiteAVWarning.WARNING_AUDIO_FRAME_DECODE_FAIL; + case 2105: return TXLiteAVWarning.WARNING_VIDEO_PLAY_LAG; + case 2106: return TXLiteAVWarning.WARNING_HW_DECODER_START_FAIL; + case 2108: return TXLiteAVWarning.WARNING_VIDEO_DECODER_HW_TO_SW; + case 2109: return TXLiteAVWarning.WARNING_SW_DECODER_START_FAIL; + case 2110: return TXLiteAVWarning.WARNING_VIDEO_RENDER_FAIL; + case 4000: return TXLiteAVWarning.WARNING_START_CAPTURE_IGNORED; + case 7001: return TXLiteAVWarning.WARNING_AUDIO_RECORDING_WRITE_FAIL; + case 5101: return TXLiteAVWarning.WARNING_ROOM_DISCONNECT; + case 6001: return TXLiteAVWarning.WARNING_IGNORE_UPSTREAM_FOR_AUDIENCE; + case 1101: return TXLiteAVWarning.WARNING_NET_BUSY; + case 1102: return TXLiteAVWarning.WARNING_RTMP_SERVER_RECONNECT; + case 2103: return TXLiteAVWarning.WARNING_LIVE_STREAM_SERVER_RECONNECT; + case 2104: return TXLiteAVWarning.WARNING_RECV_DATA_LAG; + case 3001: return TXLiteAVWarning.WARNING_RTMP_DNS_FAIL; + case 3002: return TXLiteAVWarning.WARNING_RTMP_SEVER_CONN_FAIL; + case 3003: return TXLiteAVWarning.WARNING_RTMP_SHAKE_FAIL; + case 3004: return TXLiteAVWarning.WARNING_RTMP_SERVER_BREAK_CONNECT; + case 3005: return TXLiteAVWarning.WARNING_RTMP_READ_WRITE_FAIL; + case 3006: return TXLiteAVWarning.WARNING_RTMP_WRITE_FAIL; + case 3007: return TXLiteAVWarning.WARNING_RTMP_READ_FAIL; + case 3008: return TXLiteAVWarning.WARNING_RTMP_NO_DATA; + case 3009: return TXLiteAVWarning.WARNING_PLAY_LIVE_STREAM_INFO_CONNECT_FAIL; + case 3010: return TXLiteAVWarning.WARNING_NO_STEAM_SOURCE_FAIL; + case 5102: return TXLiteAVWarning.WARNING_ROOM_RECONNECT; + case 5103: return TXLiteAVWarning.WARNING_ROOM_NET_BUSY; + default: return TXLiteAVWarning.values[this + 1103]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXLiveAudioSessionDelegate.g.dart b/lib/src/ios/TXLiveAudioSessionDelegate.g.dart new file mode 100644 index 0000000..3c6cd63 --- /dev/null +++ b/lib/src/ios/TXLiveAudioSessionDelegate.g.dart @@ -0,0 +1,27 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXLiveAudioSessionDelegate on NSObject { + + + + + + + + + +} + diff --git a/lib/src/ios/TXLiveBase.g.dart b/lib/src/ios/TXLiveBase.g.dart new file mode 100644 index 0000000..558e04d --- /dev/null +++ b/lib/src/ios/TXLiveBase.g.dart @@ -0,0 +1,503 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXLiveBase extends NSObject { + //region constants + static const String name__ = 'TXLiveBase'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXLiveBase', {'init': init}); + final object = TXLiveBase()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXLiveBase', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXLiveBase()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + Future set_delegate(TXLiveBaseDelegate delegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::set_delegate', {'__this__': this, }); + + MethodChannel('TXLiveBaseDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXLiveBaseDelegate::onLog_LogLevel_WhichModule': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onLog_LogLevel_WhichModule([\'log\':${args['log']}, \'level\':${args['level']}, \'module\':${args['module']}])'); + } + + // handle the native call + delegate?.onLog_LogLevel_WhichModule(args['log'], args['level'], args['module']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + //endregion + + //region methods + + static Future sharedInstance() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::sharedInstance([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::sharedInstance', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = TXLiveBase()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + static Future setLogLevel(TX_Enum_Type_LogLevel level) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setLogLevel([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setLogLevel', {"level": level.toValue()}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setConsoleEnabled(bool enabled) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setConsoleEnabled([\'enabled\':$enabled])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setConsoleEnabled', {"enabled": enabled}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAppVersion(String verNum) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setAppVersion([\'verNum\':$verNum])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setAppVersion', {"verNum": verNum}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAudioSessionDelegate(TXLiveAudioSessionDelegate delegate) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setAudioSessionDelegate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setAudioSessionDelegate', ); + + + // handle native call + MethodChannel('TXLiveAudioSessionDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getSDKVersionStr() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::getSDKVersionStr([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getSDKVersionStr', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getPituSDKVersion() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::getPituSDKVersion([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getPituSDKVersion', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAppID(String appID) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setAppID([\'appID\':$appID])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setAppID', {"appID": appID}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setLicenceURL_key(String url, String key) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::setLicenceURL([\'url\':$url, \'key\':$key])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setLicenceURL_key', {"url": url, "key": key}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getLicenceInfo() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLiveBase::getLicenceInfo([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getLicenceInfo', ); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXLiveBase_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> sharedInstance_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::sharedInstance_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => TXLiveBase()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + static Future> setLogLevel_batch(List level) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setLogLevel_batch', [for (int __i__ = 0; __i__ < level.length; __i__++) {"level": level[__i__].toValue()}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setConsoleEnabled_batch(List enabled) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setConsoleEnabled_batch', [for (int __i__ = 0; __i__ < enabled.length; __i__++) {"enabled": enabled[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setAppVersion_batch(List verNum) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setAppVersion_batch', [for (int __i__ = 0; __i__ < verNum.length; __i__++) {"verNum": verNum[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getSDKVersionStr_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getSDKVersionStr_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getPituSDKVersion_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getPituSDKVersion_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setAppID_batch(List appID) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setAppID_batch', [for (int __i__ = 0; __i__ < appID.length; __i__++) {"appID": appID[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setLicenceURL_key_batch(List url, List key) async { + if (url.length != key.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::setLicenceURL_key_batch', [for (int __i__ = 0; __i__ < url.length; __i__++) {"url": url[__i__], "key": key[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> getLicenceInfo_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLiveBase::getLicenceInfo_batch', ); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXLiveBaseDelegate.g.dart b/lib/src/ios/TXLiveBaseDelegate.g.dart new file mode 100644 index 0000000..946d933 --- /dev/null +++ b/lib/src/ios/TXLiveBaseDelegate.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXLiveBaseDelegate on NSObject { + + + + + + + + + @mustCallSuper + Future onLog_LogLevel_WhichModule(String log, int level, String module) {} + +} + diff --git a/lib/src/ios/TXLivePlayConfig.g.dart b/lib/src/ios/TXLivePlayConfig.g.dart new file mode 100644 index 0000000..84d7ab7 --- /dev/null +++ b/lib/src/ios/TXLivePlayConfig.g.dart @@ -0,0 +1,445 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXLivePlayConfig extends NSObject { + //region constants + static const String name__ = 'TXLivePlayConfig'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXLivePlayConfig', {'init': init}); + final object = TXLivePlayConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXLivePlayConfig', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXLivePlayConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_cacheTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_cacheTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_bAutoAdjustCacheTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_bAutoAdjustCacheTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_maxAutoAdjustCacheTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_maxAutoAdjustCacheTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_minAutoAdjustCacheTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_minAutoAdjustCacheTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoBlockThreshold() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_videoBlockThreshold", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_connectRetryCount() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_connectRetryCount", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_connectRetryInterval() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_connectRetryInterval", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAEC() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableAEC", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableMessage() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableMessage", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableMetaData() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableMetaData", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_flvSessionKey() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_flvSessionKey", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableNearestIP() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableNearestIP", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_rtmpChannelType() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_rtmpChannelType", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_cacheFolderPath() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_cacheFolderPath", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_maxCacheItems() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_maxCacheItems", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_headers() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_headers", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_cacheTime(double cacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_cacheTime', {'__this__': this, "cacheTime": cacheTime}); + + + } + + Future set_bAutoAdjustCacheTime(bool bAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_bAutoAdjustCacheTime', {'__this__': this, "bAutoAdjustCacheTime": bAutoAdjustCacheTime}); + + + } + + Future set_maxAutoAdjustCacheTime(double maxAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_maxAutoAdjustCacheTime', {'__this__': this, "maxAutoAdjustCacheTime": maxAutoAdjustCacheTime}); + + + } + + Future set_minAutoAdjustCacheTime(double minAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_minAutoAdjustCacheTime', {'__this__': this, "minAutoAdjustCacheTime": minAutoAdjustCacheTime}); + + + } + + Future set_videoBlockThreshold(int videoBlockThreshold) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_videoBlockThreshold', {'__this__': this, "videoBlockThreshold": videoBlockThreshold}); + + + } + + Future set_connectRetryCount(int connectRetryCount) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_connectRetryCount', {'__this__': this, "connectRetryCount": connectRetryCount}); + + + } + + Future set_connectRetryInterval(int connectRetryInterval) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_connectRetryInterval', {'__this__': this, "connectRetryInterval": connectRetryInterval}); + + + } + + Future set_enableAEC(bool enableAEC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_enableAEC', {'__this__': this, "enableAEC": enableAEC}); + + + } + + Future set_enableMessage(bool enableMessage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_enableMessage', {'__this__': this, "enableMessage": enableMessage}); + + + } + + Future set_enableMetaData(bool enableMetaData) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_enableMetaData', {'__this__': this, "enableMetaData": enableMetaData}); + + + } + + Future set_flvSessionKey(String flvSessionKey) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_flvSessionKey', {'__this__': this, "flvSessionKey": flvSessionKey}); + + + } + + Future set_enableNearestIP(bool enableNearestIP) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_enableNearestIP', {'__this__': this, "enableNearestIP": enableNearestIP}); + + + } + + Future set_rtmpChannelType(int rtmpChannelType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_rtmpChannelType', {'__this__': this, "rtmpChannelType": rtmpChannelType}); + + + } + + Future set_cacheFolderPath(String cacheFolderPath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_cacheFolderPath', {'__this__': this, "cacheFolderPath": cacheFolderPath}); + + + } + + Future set_maxCacheItems(int maxCacheItems) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_maxCacheItems', {'__this__': this, "maxCacheItems": maxCacheItems}); + + + } + + Future set_headers(Map headers) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayConfig::set_headers', {'__this__': this, "headers": headers}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXLivePlayConfig_Batch on List { + //region getters + Future> get_cacheTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_cacheTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_bAutoAdjustCacheTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_bAutoAdjustCacheTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_maxAutoAdjustCacheTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_maxAutoAdjustCacheTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_minAutoAdjustCacheTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_minAutoAdjustCacheTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoBlockThreshold_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_videoBlockThreshold_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_connectRetryCount_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_connectRetryCount_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_connectRetryInterval_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_connectRetryInterval_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAEC_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableAEC_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableMessage_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableMessage_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableMetaData_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableMetaData_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_flvSessionKey_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_flvSessionKey_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableNearestIP_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_enableNearestIP_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_rtmpChannelType_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_rtmpChannelType_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_cacheFolderPath_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_cacheFolderPath_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_maxCacheItems_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_maxCacheItems_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_headers_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayConfig::get_headers_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_cacheTime_batch(List cacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_cacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cacheTime": cacheTime[__i__]}]); + + + } + + Future set_bAutoAdjustCacheTime_batch(List bAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_bAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bAutoAdjustCacheTime": bAutoAdjustCacheTime[__i__]}]); + + + } + + Future set_maxAutoAdjustCacheTime_batch(List maxAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_maxAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "maxAutoAdjustCacheTime": maxAutoAdjustCacheTime[__i__]}]); + + + } + + Future set_minAutoAdjustCacheTime_batch(List minAutoAdjustCacheTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_minAutoAdjustCacheTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "minAutoAdjustCacheTime": minAutoAdjustCacheTime[__i__]}]); + + + } + + Future set_videoBlockThreshold_batch(List videoBlockThreshold) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_videoBlockThreshold_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBlockThreshold": videoBlockThreshold[__i__]}]); + + + } + + Future set_connectRetryCount_batch(List connectRetryCount) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_connectRetryCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "connectRetryCount": connectRetryCount[__i__]}]); + + + } + + Future set_connectRetryInterval_batch(List connectRetryInterval) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_connectRetryInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "connectRetryInterval": connectRetryInterval[__i__]}]); + + + } + + Future set_enableAEC_batch(List enableAEC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_enableAEC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAEC": enableAEC[__i__]}]); + + + } + + Future set_enableMessage_batch(List enableMessage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_enableMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableMessage": enableMessage[__i__]}]); + + + } + + Future set_enableMetaData_batch(List enableMetaData) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_enableMetaData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableMetaData": enableMetaData[__i__]}]); + + + } + + Future set_flvSessionKey_batch(List flvSessionKey) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_flvSessionKey_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "flvSessionKey": flvSessionKey[__i__]}]); + + + } + + Future set_enableNearestIP_batch(List enableNearestIP) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_enableNearestIP_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableNearestIP": enableNearestIP[__i__]}]); + + + } + + Future set_rtmpChannelType_batch(List rtmpChannelType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_rtmpChannelType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "rtmpChannelType": rtmpChannelType[__i__]}]); + + + } + + Future set_cacheFolderPath_batch(List cacheFolderPath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_cacheFolderPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cacheFolderPath": cacheFolderPath[__i__]}]); + + + } + + Future set_maxCacheItems_batch(List maxCacheItems) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_maxCacheItems_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "maxCacheItems": maxCacheItems[__i__]}]); + + + } + + Future set_headers_batch(List headers) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayConfig::set_headers_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "headers": headers[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXLivePlayListener.g.dart b/lib/src/ios/TXLivePlayListener.g.dart new file mode 100644 index 0000000..0a40893 --- /dev/null +++ b/lib/src/ios/TXLivePlayListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXLivePlayListener on NSObject { + + + + + + + + + @mustCallSuper + Future onPlayEvent_withParam(int EvtID, Map param) {} + + @mustCallSuper + Future onNetStatus(Map param) {} + +} + diff --git a/lib/src/ios/TXLivePlayer.g.dart b/lib/src/ios/TXLivePlayer.g.dart new file mode 100644 index 0000000..8acab20 --- /dev/null +++ b/lib/src/ios/TXLivePlayer.g.dart @@ -0,0 +1,1356 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXLivePlayer extends NSObject { + //region constants + static const String name__ = 'TXLivePlayer'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXLivePlayer', {'init': init}); + final object = TXLivePlayer()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXLivePlayer', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXLivePlayer()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_enableHWAcceleration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_enableHWAcceleration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_config() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_config", {'__this__': this}); + return __result__ == null ? null : (TXLivePlayConfig()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_isAutoPlay() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_isAutoPlay", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_delegate(TXLivePlayListener delegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_delegate', {'__this__': this, }); + + MethodChannel('TXLivePlayListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXLivePlayListener::onPlayEvent_withParam': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPlayEvent_withParam([\'EvtID\':${args['EvtID']}, \'param\':${args['param']}])'); + } + + // handle the native call + delegate?.onPlayEvent_withParam(args['EvtID'], args['param']); + break; + case 'Callback::TXLivePlayListener::onNetStatus': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onNetStatus([\'param\':${args['param']}])'); + } + + // handle the native call + delegate?.onNetStatus(args['param']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_videoProcessDelegate(TXVideoCustomProcessDelegate videoProcessDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_videoProcessDelegate', {'__this__': this, }); + + MethodChannel('TXVideoCustomProcessDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoCustomProcessDelegate::onPreProcessTexture_width_height': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreProcessTexture_width_height([\'texture\':${args['texture']}, \'width\':${args['width']}, \'height\':${args['height']}])'); + } + + // handle the native call + videoProcessDelegate?.onPreProcessTexture_width_height(args['texture'], args['width'], args['height']); + break; + case 'Callback::TXVideoCustomProcessDelegate::onTextureDestoryed': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onTextureDestoryed([])'); + } + + // handle the native call + videoProcessDelegate?.onTextureDestoryed(); + break; + case 'Callback::TXVideoCustomProcessDelegate::onDetectFacePoints': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDetectFacePoints([\'points\':${args['points']}])'); + } + + // handle the native call + videoProcessDelegate?.onDetectFacePoints((args['points'] as List).cast().map((__it__) => TypeOpTencentLiveFluttifyIOS(__it__).as__()).toList()); + break; + case 'Callback::TXVideoCustomProcessDelegate::onPlayerPixelBuffer': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPlayerPixelBuffer([\'pixelBuffer\':${args['pixelBuffer']}])'); + } + + // handle the native call + videoProcessDelegate?.onPlayerPixelBuffer(TypeOpTencentLiveFluttifyIOS((args['pixelBuffer'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_audioRawDataDelegate(TXAudioRawDataDelegate audioRawDataDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_audioRawDataDelegate', {'__this__': this, }); + + MethodChannel('TXAudioRawDataDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXAudioRawDataDelegate::onAudioInfoChanged_channels': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onAudioInfoChanged_channels([\'sampleRate\':${args['sampleRate']}, \'channels\':${args['channels']}])'); + } + + // handle the native call + audioRawDataDelegate?.onAudioInfoChanged_channels(args['sampleRate'], args['channels']); + break; + case 'Callback::TXAudioRawDataDelegate::onPcmDataAvailable_pts': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPcmDataAvailable_pts([\'data\':${args['data']}, \'timestamp\':${args['timestamp']}])'); + } + + // handle the native call + audioRawDataDelegate?.onPcmDataAvailable_pts(TypeOpTencentLiveFluttifyIOS((args['data'] as Object))?.as__(), args['timestamp']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_enableHWAcceleration(bool enableHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_enableHWAcceleration', {'__this__': this, "enableHWAcceleration": enableHWAcceleration}); + + + } + + Future set_config(TXLivePlayConfig config) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_config', {'__this__': this, "config": config}); + + + } + + Future set_recordDelegate(TXLiveRecordListener recordDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_recordDelegate', {'__this__': this, }); + + MethodChannel('TXLiveRecordListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXLiveRecordListener::onRecordProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordProgress([\'milliSecond\':${args['milliSecond']}])'); + } + + // handle the native call + recordDelegate?.onRecordProgress(args['milliSecond']); + break; + case 'Callback::TXLiveRecordListener::onRecordComplete': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordComplete([\'result\':${args['result']}])'); + } + + // handle the native call + recordDelegate?.onRecordComplete(TypeOpTencentLiveFluttifyIOS((args['result'] as Object))?.as__()); + break; + case 'Callback::TXLiveRecordListener::onRecordEvent': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordEvent([\'evt\':${args['evt']}])'); + } + + // handle the native call + recordDelegate?.onRecordEvent(args['evt']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_isAutoPlay(bool isAutoPlay) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::set_isAutoPlay', {'__this__': this, "isAutoPlay": isAutoPlay}); + + + } + + //endregion + + //region methods + + Future setupVideoWidget_containView_insertIndex(CGRect frame, UIView view, int idx) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setupVideoWidget([\'idx\':$idx])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setupVideoWidget_containView_insertIndex', {"frame": frame, "view": view, "idx": idx, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future removeVideoWidget() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::removeVideoWidget([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::removeVideoWidget', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPlay_type(String url, TX_Enum_PlayType playType) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::startPlay([\'url\':$url])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::startPlay_type', {"url": url, "playType": playType.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::stopPlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::stopPlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isPlaying() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::isPlaying([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::isPlaying', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pause() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::pause([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::pause', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resume() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::resume([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::resume', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(TX_Enum_Type_HomeOrientation rotation) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setRenderRotation([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRenderRotation', {"rotation": rotation.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderMode(TX_Enum_Type_RenderMode renderMode) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setRenderMode([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRenderMode', {"renderMode": renderMode.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future snapshot(void snapshotCompletionBlock(UIImage __arg_0__)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::snapshot([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::snapshot', {"__this__": this}); + + + // handle native call + MethodChannel('void|TXImage*#__arg_0__::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (snapshotCompletionBlock != null) snapshotCompletionBlock(TypeOpTencentLiveFluttifyIOS((args['__arg_0__'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMute(bool bEnable) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setMute([\'bEnable\':$bEnable])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setMute', {"bEnable": bEnable, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVolume(int volume) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setVolume([\'volume\':$volume])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setVolume', {"volume": volume, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future setAudioRoute(TXAudioRouteType audioRoute) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer::setAudioRoute([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setAudioRoute', {"audioRoute": audioRoute.toValue()}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioVolumeEvaluationListener(void volumeEvaluationListener(int __arg_0__)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setAudioVolumeEvaluationListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setAudioVolumeEvaluationListener', {"__this__": this}); + + + // handle native call + MethodChannel('void|int#__arg_0__::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|int#__arg_0__::void|int#__arg_0__': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (volumeEvaluationListener != null) volumeEvaluationListener(args['__arg_0__']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAudioVolumeEvaluation(int interval) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::enableAudioVolumeEvaluation([\'interval\':$interval])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::enableAudioVolumeEvaluation', {"interval": interval, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future prepareLiveSeek_bizId(String domain, int bizId) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::prepareLiveSeek([\'domain\':$domain, \'bizId\':$bizId])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::prepareLiveSeek_bizId', {"domain": domain, "bizId": bizId, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumeLive() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::resumeLive([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::resumeLive', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future seek(double time) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::seek([\'time\':$time])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::seek', {"time": time, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startRecord(TXRecordType recordType) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::startRecord([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::startRecord', {"recordType": recordType.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopRecord() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::stopRecord([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::stopRecord', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRate(double rate) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setRate([\'rate\':$rate])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRate', {"rate": rate, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogViewMargin(UIEdgeInsets margin) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::setLogViewMargin([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setLogViewMargin', {"margin": margin, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future showVideoDebugLog(bool isShow) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::showVideoDebugLog([\'isShow\':$isShow])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::showVideoDebugLog', {"isShow": isShow, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future switchStream(String playUrl) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::switchStream([\'playUrl\':$playUrl])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::switchStream', {"playUrl": playUrl, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future callExperimentalAPI(String jsonStr) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePlayer@$refId::callExperimentalAPI([\'jsonStr\':$jsonStr])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::callExperimentalAPI', {"jsonStr": jsonStr, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXLivePlayer_Batch on List { + //region getters + Future> get_enableHWAcceleration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_enableHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_config_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_config_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => TXLivePlayConfig()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_isAutoPlay_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePlayer::get_isAutoPlay_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_enableHWAcceleration_batch(List enableHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayer::set_enableHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableHWAcceleration": enableHWAcceleration[__i__]}]); + + + } + + Future set_config_batch(List config) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayer::set_config_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "config": config[__i__]}]); + + + } + + Future set_isAutoPlay_batch(List isAutoPlay) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePlayer::set_isAutoPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "isAutoPlay": isAutoPlay[__i__]}]); + + + } + + //endregion + + //region methods + + Future> setupVideoWidget_containView_insertIndex_batch(List frame, List view, List idx) async { + if (frame.length != view.length || view.length != idx.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setupVideoWidget_containView_insertIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"frame": frame[__i__], "view": view[__i__], "idx": idx[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> removeVideoWidget_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::removeVideoWidget_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPlay_type_batch(List url, List playType) async { + if (url.length != playType.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::startPlay_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"url": url[__i__], "playType": playType[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::stopPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isPlaying_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::isPlaying_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pause_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::pause_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resume_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::resume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List rotation) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"rotation": rotation[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderMode_batch(List renderMode) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRenderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"renderMode": renderMode[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMute_batch(List bEnable) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"bEnable": bEnable[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVolume_batch(List volume) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volume": volume[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + static Future> setAudioRoute_batch(List audioRoute) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setAudioRoute_batch', [for (int __i__ = 0; __i__ < audioRoute.length; __i__++) {"audioRoute": audioRoute[__i__].toValue()}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAudioVolumeEvaluation_batch(List interval) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::enableAudioVolumeEvaluation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"interval": interval[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> prepareLiveSeek_bizId_batch(List domain, List bizId) async { + if (domain.length != bizId.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::prepareLiveSeek_bizId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"domain": domain[__i__], "bizId": bizId[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumeLive_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::resumeLive_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> seek_batch(List time) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::seek_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"time": time[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startRecord_batch(List recordType) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::startRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"recordType": recordType[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopRecord_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::stopRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRate_batch(List rate) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"rate": rate[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogViewMargin_batch(List margin) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::setLogViewMargin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"margin": margin[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> showVideoDebugLog_batch(List isShow) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::showVideoDebugLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isShow": isShow[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> switchStream_batch(List playUrl) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::switchStream_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"playUrl": playUrl[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> callExperimentalAPI_batch(List jsonStr) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePlayer::callExperimentalAPI_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"jsonStr": jsonStr[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXLivePush.g.dart b/lib/src/ios/TXLivePush.g.dart new file mode 100644 index 0000000..7b42d66 --- /dev/null +++ b/lib/src/ios/TXLivePush.g.dart @@ -0,0 +1,2512 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXLivePush extends NSObject { + //region constants + static const String name__ = 'TXLivePush'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXLivePush', {'init': init}); + final object = TXLivePush()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXLivePush', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXLivePush()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_config() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_config", {'__this__': this}); + return __result__ == null ? null : (TXLivePushConfig()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_rtmpURL() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_rtmpURL", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_frontCamera() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_frontCamera", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_config(TXLivePushConfig config) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::set_config', {'__this__': this, "config": config}); + + + } + + Future set_delegate(TXLivePushListener delegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::set_delegate', {'__this__': this, }); + + MethodChannel('TXLivePushListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXLivePushListener::onPushEvent_withParam': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPushEvent_withParam([\'EvtID\':${args['EvtID']}, \'param\':${args['param']}])'); + } + + // handle the native call + delegate?.onPushEvent_withParam(args['EvtID'], args['param']); + break; + case 'Callback::TXLivePushListener::onNetStatus': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onNetStatus([\'param\':${args['param']}])'); + } + + // handle the native call + delegate?.onNetStatus(args['param']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_recordDelegate(TXLiveRecordListener recordDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::set_recordDelegate', {'__this__': this, }); + + MethodChannel('TXLiveRecordListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXLiveRecordListener::onRecordProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordProgress([\'milliSecond\':${args['milliSecond']}])'); + } + + // handle the native call + recordDelegate?.onRecordProgress(args['milliSecond']); + break; + case 'Callback::TXLiveRecordListener::onRecordComplete': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordComplete([\'result\':${args['result']}])'); + } + + // handle the native call + recordDelegate?.onRecordComplete(TypeOpTencentLiveFluttifyIOS((args['result'] as Object))?.as__()); + break; + case 'Callback::TXLiveRecordListener::onRecordEvent': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordEvent([\'evt\':${args['evt']}])'); + } + + // handle the native call + recordDelegate?.onRecordEvent(args['evt']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_videoProcessDelegate(TXVideoCustomProcessDelegate videoProcessDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::set_videoProcessDelegate', {'__this__': this, }); + + MethodChannel('TXVideoCustomProcessDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoCustomProcessDelegate::onPreProcessTexture_width_height': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreProcessTexture_width_height([\'texture\':${args['texture']}, \'width\':${args['width']}, \'height\':${args['height']}])'); + } + + // handle the native call + videoProcessDelegate?.onPreProcessTexture_width_height(args['texture'], args['width'], args['height']); + break; + case 'Callback::TXVideoCustomProcessDelegate::onTextureDestoryed': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onTextureDestoryed([])'); + } + + // handle the native call + videoProcessDelegate?.onTextureDestoryed(); + break; + case 'Callback::TXVideoCustomProcessDelegate::onDetectFacePoints': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onDetectFacePoints([\'points\':${args['points']}])'); + } + + // handle the native call + videoProcessDelegate?.onDetectFacePoints((args['points'] as List).cast().map((__it__) => TypeOpTencentLiveFluttifyIOS(__it__).as__()).toList()); + break; + case 'Callback::TXVideoCustomProcessDelegate::onPlayerPixelBuffer': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPlayerPixelBuffer([\'pixelBuffer\':${args['pixelBuffer']}])'); + } + + // handle the native call + videoProcessDelegate?.onPlayerPixelBuffer(TypeOpTencentLiveFluttifyIOS((args['pixelBuffer'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_audioProcessDelegate(TXAudioCustomProcessDelegate audioProcessDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::set_audioProcessDelegate', {'__this__': this, }); + + MethodChannel('TXAudioCustomProcessDelegate::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXAudioCustomProcessDelegate::onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm([\'data\':${args['data']}, \'timeStamp\':${args['timeStamp']}, \'sampleRate\':${args['sampleRate']}, \'channels\':${args['channels']}, \'withBgm\':${args['withBgm']}])'); + } + + // handle the native call + audioProcessDelegate?.onRecordRawPcmData_timeStamp_sampleRate_channels_withBgm(TypeOpTencentLiveFluttifyIOS((args['data'] as Object))?.as__(), args['timeStamp'], args['sampleRate'], args['channels'], args['withBgm']); + break; + case 'Callback::TXAudioCustomProcessDelegate::onRecordPcmData_timeStamp_sampleRate_channels': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onRecordPcmData_timeStamp_sampleRate_channels([\'data\':${args['data']}, \'timeStamp\':${args['timeStamp']}, \'sampleRate\':${args['sampleRate']}, \'channels\':${args['channels']}])'); + } + + // handle the native call + audioProcessDelegate?.onRecordPcmData_timeStamp_sampleRate_channels(TypeOpTencentLiveFluttifyIOS((args['data'] as Object))?.as__(), args['timeStamp'], args['sampleRate'], args['channels']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + //endregion + + //region methods + + Future initWithConfig(TXLivePushConfig config) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::initWithConfig([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::initWithConfig', {"config": config, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPreview(UIView view) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::startPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startPreview', {"view": view, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPreview() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::stopPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopPreview', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPush(String rtmpURL) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::startPush([\'rtmpURL\':$rtmpURL])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startPush', {"rtmpURL": rtmpURL, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPush() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::stopPush([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopPush', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pausePush() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::pausePush([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::pausePush', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumePush() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::resumePush([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::resumePush', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future isPublishing() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::isPublishing([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::isPublishing', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoQuality_adjustBitrate_adjustResolution(TX_Enum_Type_VideoQuality quality, bool adjustBitrate, bool adjustResolution) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setVideoQuality([\'adjustBitrate\':$adjustBitrate, \'adjustResolution\':$adjustResolution])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setVideoQuality_adjustBitrate_adjustResolution', {"quality": quality.toValue(), "adjustBitrate": adjustBitrate, "adjustResolution": adjustResolution, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future switchCamera() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::switchCamera([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::switchCamera', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMirror(bool isMirror) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setMirror([\'isMirror\':$isMirror])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMirror', {"isMirror": isMirror, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(int rotation) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setRenderRotation([\'rotation\':$rotation])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setRenderRotation', {"rotation": rotation, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future toggleTorch(bool bEnable) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::toggleTorch([\'bEnable\':$bEnable])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::toggleTorch', {"bEnable": bEnable, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setZoom(double distance) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setZoom([\'distance\':$distance])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setZoom', {"distance": distance, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFocusPosition(CGPoint touchPoint) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setFocusPosition([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFocusPosition', {"touchPoint": touchPoint, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getBeautyManager() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::getBeautyManager([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::getBeautyManager', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = TXBeautyManager()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setMute(bool bEnable) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setMute([\'bEnable\':$bEnable])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMute', {"bEnable": bEnable, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future playBGM(String path) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::playBGM([\'path\':$path])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::playBGM', {"path": path, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future playBGM_withBeginNotify_withProgressNotify_andCompleteNotify(String path, void beginNotify(int errCode), void progressNotify(int progressMS, int durationMS), void completeNotify(int errCode)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::playBGM([\'path\':$path])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::playBGM_withBeginNotify_withProgressNotify_andCompleteNotify', {"path": path, "__this__": this}); + + + // handle native call + MethodChannel('void|NSInteger#errCode::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|NSInteger#errCode::void|NSInteger#errCode': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (beginNotify != null) beginNotify(args['errCode']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + MethodChannel('void|NSInteger#progressMS,NSInteger#durationMS::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|NSInteger#progressMS,NSInteger#durationMS::void|NSInteger#progressMS,NSInteger#durationMS': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (progressNotify != null) progressNotify(args['progressMS'], args['durationMS']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + MethodChannel('void|NSInteger#errCode::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|NSInteger#errCode::void|NSInteger#errCode': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (completeNotify != null) completeNotify(args['errCode']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::stopBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pauseBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::pauseBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::pauseBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumeBGM() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::resumeBGM([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::resumeBGM', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future getMusicDuration(String path) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::getMusicDuration([\'path\':$path])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::getMusicDuration', {"path": path, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMVolume(double volume) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setBGMVolume([\'volume\':$volume])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMVolume', {"volume": volume, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMicVolume(double volume) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setMicVolume([\'volume\':$volume])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMicVolume', {"volume": volume, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMPitch(double pitch) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setBGMPitch([\'pitch\':$pitch])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMPitch', {"pitch": pitch, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setReverbType(TXReverbType reverbType) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setReverbType([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setReverbType', {"reverbType": reverbType.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVoiceChangerType(TXVoiceChangerType voiceChangerType) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setVoiceChangerType([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setVoiceChangerType', {"voiceChangerType": voiceChangerType.toValue(), "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMPosition(int position) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setBGMPosition([\'position\':$position])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMPosition', {"position": position, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAudioVolumeEvaluationListener(void volumeEvaluationListener(int volume)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setAudioVolumeEvaluationListener([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setAudioVolumeEvaluationListener', {"__this__": this}); + + + // handle native call + MethodChannel('void|NSInteger#volume::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|NSInteger#volume::void|NSInteger#volume': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (volumeEvaluationListener != null) volumeEvaluationListener(args['volume']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableAudioVolumeEvaluation(int interval) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::enableAudioVolumeEvaluation([\'interval\':$interval])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::enableAudioVolumeEvaluation', {"interval": interval, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startRecord(String videoPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::startRecord([\'videoPath\':$videoPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startRecord', {"videoPath": videoPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopRecord() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::stopRecord([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopRecord', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future snapshot(void snapshotCompletionBlock(UIImage __arg_0__)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::snapshot([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::snapshot', {"__this__": this}); + + + // handle native call + MethodChannel('void|TXImage*#__arg_0__::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (snapshotCompletionBlock != null) snapshotCompletionBlock(TypeOpTencentLiveFluttifyIOS((args['__arg_0__'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSendAudioSampleBufferMuted(bool muted) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setSendAudioSampleBufferMuted([\'muted\':$muted])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setSendAudioSampleBufferMuted', {"muted": muted, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendMessageEx(NSData data) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::sendMessageEx([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::sendMessageEx', {"data": data, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future sendMessage(NSData data) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::sendMessage([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::sendMessage', {"data": data, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future showVideoDebugLog(bool isShow) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::showVideoDebugLog([\'isShow\':$isShow])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::showVideoDebugLog', {"isShow": isShow, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setLogViewMargin(UIEdgeInsets margin) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setLogViewMargin([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setLogViewMargin', {"margin": margin, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEnableClockOverlay(bool enabled) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setEnableClockOverlay([\'enabled\':$enabled])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setEnableClockOverlay', {"enabled": enabled, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future enableClockOverlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::enableClockOverlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::enableClockOverlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel(TX_Enum_Type_BeautyStyle beautyStyle, double beautyLevel, double whitenessLevel, double ruddinessLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setBeautyStyle([\'beautyLevel\':$beautyLevel, \'whitenessLevel\':$whitenessLevel, \'ruddinessLevel\':$ruddinessLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel', {"beautyStyle": beautyStyle.toValue(), "beautyLevel": beautyLevel, "whitenessLevel": whitenessLevel, "ruddinessLevel": ruddinessLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilter(UIImage image) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setFilter([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFilter', {"image": image, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSpecialRatio(double specialValue) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setSpecialRatio([\'specialValue\':$specialValue])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setSpecialRatio', {"specialValue": specialValue, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setEyeScaleLevel(double eyeScaleLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setEyeScaleLevel([\'eyeScaleLevel\':$eyeScaleLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setEyeScaleLevel', {"eyeScaleLevel": eyeScaleLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceScaleLevel(double faceScaleLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setFaceScaleLevel([\'faceScaleLevel\':$faceScaleLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceScaleLevel', {"faceScaleLevel": faceScaleLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceVLevel(double faceVLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setFaceVLevel([\'faceVLevel\':$faceVLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceVLevel', {"faceVLevel": faceVLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setChinLevel(double chinLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setChinLevel([\'chinLevel\':$chinLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setChinLevel', {"chinLevel": chinLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFaceShortLevel(double faceShortlevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setFaceShortLevel([\'faceShortlevel\':$faceShortlevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceShortLevel', {"faceShortlevel": faceShortlevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setNoseSlimLevel(double noseSlimLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setNoseSlimLevel([\'noseSlimLevel\':$noseSlimLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setNoseSlimLevel', {"noseSlimLevel": noseSlimLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future selectMotionTmpl_inDir(String tmplName, String tmplDir) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::selectMotionTmpl([\'tmplName\':$tmplName, \'tmplDir\':$tmplDir])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::selectMotionTmpl_inDir', {"tmplName": tmplName, "tmplDir": tmplDir, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setMotionMute(bool motionMute) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXLivePush@$refId::setMotionMute([\'motionMute\':$motionMute])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMotionMute', {"motionMute": motionMute, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXLivePush_Batch on List { + //region getters + Future> get_config_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_config_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => TXLivePushConfig()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_rtmpURL_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_rtmpURL_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_frontCamera_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePush::get_frontCamera_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_config_batch(List config) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePush::set_config_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "config": config[__i__]}]); + + + } + + //endregion + + //region methods + + Future> initWithConfig_batch(List config) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::initWithConfig_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"config": config[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPreview_batch(List view) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"view": view[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPreview_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPush_batch(List rtmpURL) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"rtmpURL": rtmpURL[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPush_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pausePush_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::pausePush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumePush_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::resumePush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> isPublishing_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::isPublishing_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoQuality_adjustBitrate_adjustResolution_batch(List quality, List adjustBitrate, List adjustResolution) async { + if (quality.length != adjustBitrate.length || adjustBitrate.length != adjustResolution.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setVideoQuality_adjustBitrate_adjustResolution_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"quality": quality[__i__].toValue(), "adjustBitrate": adjustBitrate[__i__], "adjustResolution": adjustResolution[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> switchCamera_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::switchCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMirror_batch(List isMirror) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMirror_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isMirror": isMirror[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List rotation) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"rotation": rotation[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> toggleTorch_batch(List bEnable) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::toggleTorch_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"bEnable": bEnable[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setZoom_batch(List distance) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setZoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"distance": distance[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFocusPosition_batch(List touchPoint) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFocusPosition_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"touchPoint": touchPoint[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getBeautyManager_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::getBeautyManager_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => TXBeautyManager()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setMute_batch(List bEnable) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"bEnable": bEnable[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> playBGM_batch(List path) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::playBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"path": path[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pauseBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::pauseBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumeBGM_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::resumeBGM_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> getMusicDuration_batch(List path) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::getMusicDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"path": path[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMVolume_batch(List volume) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volume": volume[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMicVolume_batch(List volume) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMicVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volume": volume[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMPitch_batch(List pitch) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMPitch_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"pitch": pitch[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setReverbType_batch(List reverbType) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setReverbType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"reverbType": reverbType[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVoiceChangerType_batch(List voiceChangerType) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setVoiceChangerType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"voiceChangerType": voiceChangerType[__i__].toValue(), "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMPosition_batch(List position) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBGMPosition_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"position": position[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableAudioVolumeEvaluation_batch(List interval) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::enableAudioVolumeEvaluation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"interval": interval[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startRecord_batch(List videoPath) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::startRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoPath": videoPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopRecord_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::stopRecord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSendAudioSampleBufferMuted_batch(List muted) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setSendAudioSampleBufferMuted_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"muted": muted[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendMessageEx_batch(List data) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::sendMessageEx_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"data": data[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> sendMessage_batch(List data) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::sendMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"data": data[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> showVideoDebugLog_batch(List isShow) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::showVideoDebugLog_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isShow": isShow[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setLogViewMargin_batch(List margin) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setLogViewMargin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"margin": margin[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEnableClockOverlay_batch(List enabled) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setEnableClockOverlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"enabled": enabled[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> enableClockOverlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::enableClockOverlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel_batch(List beautyStyle, List beautyLevel, List whitenessLevel, List ruddinessLevel) async { + if (beautyStyle.length != beautyLevel.length || beautyLevel.length != whitenessLevel.length || whitenessLevel.length != ruddinessLevel.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"beautyStyle": beautyStyle[__i__].toValue(), "beautyLevel": beautyLevel[__i__], "whitenessLevel": whitenessLevel[__i__], "ruddinessLevel": ruddinessLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilter_batch(List image) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"image": image[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSpecialRatio_batch(List specialValue) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setSpecialRatio_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"specialValue": specialValue[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setEyeScaleLevel_batch(List eyeScaleLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setEyeScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"eyeScaleLevel": eyeScaleLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceScaleLevel_batch(List faceScaleLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceScaleLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"faceScaleLevel": faceScaleLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceVLevel_batch(List faceVLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceVLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"faceVLevel": faceVLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setChinLevel_batch(List chinLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setChinLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"chinLevel": chinLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFaceShortLevel_batch(List faceShortlevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setFaceShortLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"faceShortlevel": faceShortlevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setNoseSlimLevel_batch(List noseSlimLevel) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setNoseSlimLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"noseSlimLevel": noseSlimLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> selectMotionTmpl_inDir_batch(List tmplName, List tmplDir) async { + if (tmplName.length != tmplDir.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::selectMotionTmpl_inDir_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"tmplName": tmplName[__i__], "tmplDir": tmplDir[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setMotionMute_batch(List motionMute) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePush::setMotionMute_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"motionMute": motionMute[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXLivePushConfig.g.dart b/lib/src/ios/TXLivePushConfig.g.dart new file mode 100644 index 0000000..f698d89 --- /dev/null +++ b/lib/src/ios/TXLivePushConfig.g.dart @@ -0,0 +1,997 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXLivePushConfig extends NSObject { + //region constants + static const String name__ = 'TXLivePushConfig'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXLivePushConfig', {'init': init}); + final object = TXLivePushConfig()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXLivePushConfig', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXLivePushConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_homeOrientation() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_homeOrientation", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_touchFocus() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_touchFocus", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableZoom() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableZoom", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_watermark() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermark", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_watermarkPos() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermarkPos", {'__this__': this}); + return __result__ == null ? null : (CGPoint()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_watermarkNormalization() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermarkNormalization", {'__this__': this}); + return __result__ == null ? null : (CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_localVideoMirrorType() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_localVideoMirrorType", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_pauseTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_pauseFps() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseFps", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_pauseImg() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseImg", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_videoResolution() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoResolution", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoFPS() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoFPS", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoEncodeGop() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoEncodeGop", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoBitratePIN() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitratePIN", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAutoBitrate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAutoBitrate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_autoAdjustStrategy() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_autoAdjustStrategy", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoBitrateMax() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitrateMax", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoBitrateMin() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitrateMin", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_audioSampleRate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_audioSampleRate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_audioChannels() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_audioChannels", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAudioPreview() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAudioPreview", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enablePureAudioPush() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enablePureAudioPush", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_connectRetryCount() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_connectRetryCount", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_connectRetryInterval() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_connectRetryInterval", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_customModeType() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_customModeType", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_sampleBufferSize() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_sampleBufferSize", {'__this__': this}); + return __result__ == null ? null : (CGSize()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_autoSampleBufferSize() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_autoSampleBufferSize", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableNAS() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableNAS", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAEC() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAEC", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableHWAcceleration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableHWAcceleration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAudioAcceleration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAudioAcceleration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableAGC() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAGC", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_volumeType() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_volumeType", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXSystemAudioVolumeType()); + } + + Future get_frontCamera() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_frontCamera", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_beautyFilterDepth() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_beautyFilterDepth", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_whiteningFilterDepth() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_whiteningFilterDepth", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_enableNearestIP() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableNearestIP", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_rtmpChannelType() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_rtmpChannelType", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_metaData() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_metaData", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_homeOrientation(int homeOrientation) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_homeOrientation', {'__this__': this, "homeOrientation": homeOrientation}); + + + } + + Future set_touchFocus(bool touchFocus) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_touchFocus', {'__this__': this, "touchFocus": touchFocus}); + + + } + + Future set_enableZoom(bool enableZoom) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableZoom', {'__this__': this, "enableZoom": enableZoom}); + + + } + + Future set_watermark(UIImage watermark) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_watermark', {'__this__': this, "watermark": watermark}); + + + } + + Future set_watermarkPos(CGPoint watermarkPos) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_watermarkPos', {'__this__': this, "watermarkPos": watermarkPos}); + + + } + + Future set_watermarkNormalization(CGRect watermarkNormalization) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_watermarkNormalization', {'__this__': this, "watermarkNormalization": watermarkNormalization}); + + + } + + Future set_localVideoMirrorType(int localVideoMirrorType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_localVideoMirrorType', {'__this__': this, "localVideoMirrorType": localVideoMirrorType}); + + + } + + Future set_pauseTime(int pauseTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_pauseTime', {'__this__': this, "pauseTime": pauseTime}); + + + } + + Future set_pauseFps(int pauseFps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_pauseFps', {'__this__': this, "pauseFps": pauseFps}); + + + } + + Future set_pauseImg(UIImage pauseImg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_pauseImg', {'__this__': this, "pauseImg": pauseImg}); + + + } + + Future set_videoResolution(int videoResolution) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoResolution', {'__this__': this, "videoResolution": videoResolution}); + + + } + + Future set_videoFPS(int videoFPS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoFPS', {'__this__': this, "videoFPS": videoFPS}); + + + } + + Future set_videoEncodeGop(int videoEncodeGop) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoEncodeGop', {'__this__': this, "videoEncodeGop": videoEncodeGop}); + + + } + + Future set_videoBitratePIN(int videoBitratePIN) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoBitratePIN', {'__this__': this, "videoBitratePIN": videoBitratePIN}); + + + } + + Future set_enableAutoBitrate(bool enableAutoBitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableAutoBitrate', {'__this__': this, "enableAutoBitrate": enableAutoBitrate}); + + + } + + Future set_autoAdjustStrategy(int autoAdjustStrategy) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_autoAdjustStrategy', {'__this__': this, "autoAdjustStrategy": autoAdjustStrategy}); + + + } + + Future set_videoBitrateMax(int videoBitrateMax) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoBitrateMax', {'__this__': this, "videoBitrateMax": videoBitrateMax}); + + + } + + Future set_videoBitrateMin(int videoBitrateMin) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_videoBitrateMin', {'__this__': this, "videoBitrateMin": videoBitrateMin}); + + + } + + Future set_audioSampleRate(int audioSampleRate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_audioSampleRate', {'__this__': this, "audioSampleRate": audioSampleRate}); + + + } + + Future set_audioChannels(int audioChannels) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_audioChannels', {'__this__': this, "audioChannels": audioChannels}); + + + } + + Future set_enableAudioPreview(bool enableAudioPreview) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableAudioPreview', {'__this__': this, "enableAudioPreview": enableAudioPreview}); + + + } + + Future set_enablePureAudioPush(bool enablePureAudioPush) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enablePureAudioPush', {'__this__': this, "enablePureAudioPush": enablePureAudioPush}); + + + } + + Future set_connectRetryCount(int connectRetryCount) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_connectRetryCount', {'__this__': this, "connectRetryCount": connectRetryCount}); + + + } + + Future set_connectRetryInterval(int connectRetryInterval) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_connectRetryInterval', {'__this__': this, "connectRetryInterval": connectRetryInterval}); + + + } + + Future set_customModeType(int customModeType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_customModeType', {'__this__': this, "customModeType": customModeType}); + + + } + + Future set_sampleBufferSize(CGSize sampleBufferSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_sampleBufferSize', {'__this__': this, "sampleBufferSize": sampleBufferSize}); + + + } + + Future set_autoSampleBufferSize(bool autoSampleBufferSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_autoSampleBufferSize', {'__this__': this, "autoSampleBufferSize": autoSampleBufferSize}); + + + } + + Future set_enableNAS(bool enableNAS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableNAS', {'__this__': this, "enableNAS": enableNAS}); + + + } + + Future set_enableAEC(bool enableAEC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableAEC', {'__this__': this, "enableAEC": enableAEC}); + + + } + + Future set_enableHWAcceleration(bool enableHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableHWAcceleration', {'__this__': this, "enableHWAcceleration": enableHWAcceleration}); + + + } + + Future set_enableAudioAcceleration(bool enableAudioAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableAudioAcceleration', {'__this__': this, "enableAudioAcceleration": enableAudioAcceleration}); + + + } + + Future set_enableAGC(bool enableAGC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableAGC', {'__this__': this, "enableAGC": enableAGC}); + + + } + + Future set_volumeType(TXSystemAudioVolumeType volumeType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_volumeType', {'__this__': this, "volumeType": volumeType.toValue()}); + + + } + + Future set_frontCamera(bool frontCamera) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_frontCamera', {'__this__': this, "frontCamera": frontCamera}); + + + } + + Future set_beautyFilterDepth(double beautyFilterDepth) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_beautyFilterDepth', {'__this__': this, "beautyFilterDepth": beautyFilterDepth}); + + + } + + Future set_whiteningFilterDepth(double whiteningFilterDepth) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_whiteningFilterDepth', {'__this__': this, "whiteningFilterDepth": whiteningFilterDepth}); + + + } + + Future set_enableNearestIP(bool enableNearestIP) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_enableNearestIP', {'__this__': this, "enableNearestIP": enableNearestIP}); + + + } + + Future set_rtmpChannelType(int rtmpChannelType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_rtmpChannelType', {'__this__': this, "rtmpChannelType": rtmpChannelType}); + + + } + + Future set_metaData(Map metaData) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXLivePushConfig::set_metaData', {'__this__': this, "metaData": metaData}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXLivePushConfig_Batch on List { + //region getters + Future> get_homeOrientation_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_homeOrientation_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_touchFocus_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_touchFocus_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableZoom_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableZoom_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_watermark_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermark_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_watermarkPos_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermarkPos_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGPoint()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_watermarkNormalization_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_watermarkNormalization_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_localVideoMirrorType_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_localVideoMirrorType_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_pauseTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_pauseFps_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseFps_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_pauseImg_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_pauseImg_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_videoResolution_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoResolution_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoFPS_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoFPS_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoEncodeGop_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoEncodeGop_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoBitratePIN_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitratePIN_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAutoBitrate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAutoBitrate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_autoAdjustStrategy_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_autoAdjustStrategy_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoBitrateMax_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitrateMax_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoBitrateMin_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_videoBitrateMin_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_audioSampleRate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_audioSampleRate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_audioChannels_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_audioChannels_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAudioPreview_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAudioPreview_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enablePureAudioPush_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enablePureAudioPush_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_connectRetryCount_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_connectRetryCount_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_connectRetryInterval_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_connectRetryInterval_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_customModeType_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_customModeType_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_sampleBufferSize_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_sampleBufferSize_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGSize()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_autoSampleBufferSize_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_autoSampleBufferSize_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableNAS_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableNAS_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAEC_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAEC_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableHWAcceleration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAudioAcceleration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAudioAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableAGC_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableAGC_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_volumeType_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_volumeType_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXSystemAudioVolumeType()).toList(); + return typedResult; + } + + Future> get_frontCamera_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_frontCamera_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_beautyFilterDepth_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_beautyFilterDepth_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_whiteningFilterDepth_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_whiteningFilterDepth_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_enableNearestIP_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_enableNearestIP_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_rtmpChannelType_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_rtmpChannelType_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_metaData_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXLivePushConfig::get_metaData_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_homeOrientation_batch(List homeOrientation) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_homeOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "homeOrientation": homeOrientation[__i__]}]); + + + } + + Future set_touchFocus_batch(List touchFocus) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_touchFocus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "touchFocus": touchFocus[__i__]}]); + + + } + + Future set_enableZoom_batch(List enableZoom) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableZoom_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableZoom": enableZoom[__i__]}]); + + + } + + Future set_watermark_batch(List watermark) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_watermark_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "watermark": watermark[__i__]}]); + + + } + + Future set_watermarkPos_batch(List watermarkPos) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_watermarkPos_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "watermarkPos": watermarkPos[__i__]}]); + + + } + + Future set_watermarkNormalization_batch(List watermarkNormalization) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_watermarkNormalization_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "watermarkNormalization": watermarkNormalization[__i__]}]); + + + } + + Future set_localVideoMirrorType_batch(List localVideoMirrorType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_localVideoMirrorType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "localVideoMirrorType": localVideoMirrorType[__i__]}]); + + + } + + Future set_pauseTime_batch(List pauseTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_pauseTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseTime": pauseTime[__i__]}]); + + + } + + Future set_pauseFps_batch(List pauseFps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_pauseFps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseFps": pauseFps[__i__]}]); + + + } + + Future set_pauseImg_batch(List pauseImg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_pauseImg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseImg": pauseImg[__i__]}]); + + + } + + Future set_videoResolution_batch(List videoResolution) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoResolution_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoResolution": videoResolution[__i__]}]); + + + } + + Future set_videoFPS_batch(List videoFPS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoFPS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoFPS": videoFPS[__i__]}]); + + + } + + Future set_videoEncodeGop_batch(List videoEncodeGop) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoEncodeGop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoEncodeGop": videoEncodeGop[__i__]}]); + + + } + + Future set_videoBitratePIN_batch(List videoBitratePIN) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoBitratePIN_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBitratePIN": videoBitratePIN[__i__]}]); + + + } + + Future set_enableAutoBitrate_batch(List enableAutoBitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableAutoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAutoBitrate": enableAutoBitrate[__i__]}]); + + + } + + Future set_autoAdjustStrategy_batch(List autoAdjustStrategy) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_autoAdjustStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "autoAdjustStrategy": autoAdjustStrategy[__i__]}]); + + + } + + Future set_videoBitrateMax_batch(List videoBitrateMax) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoBitrateMax_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBitrateMax": videoBitrateMax[__i__]}]); + + + } + + Future set_videoBitrateMin_batch(List videoBitrateMin) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_videoBitrateMin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBitrateMin": videoBitrateMin[__i__]}]); + + + } + + Future set_audioSampleRate_batch(List audioSampleRate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_audioSampleRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "audioSampleRate": audioSampleRate[__i__]}]); + + + } + + Future set_audioChannels_batch(List audioChannels) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_audioChannels_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "audioChannels": audioChannels[__i__]}]); + + + } + + Future set_enableAudioPreview_batch(List enableAudioPreview) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableAudioPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAudioPreview": enableAudioPreview[__i__]}]); + + + } + + Future set_enablePureAudioPush_batch(List enablePureAudioPush) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enablePureAudioPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enablePureAudioPush": enablePureAudioPush[__i__]}]); + + + } + + Future set_connectRetryCount_batch(List connectRetryCount) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_connectRetryCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "connectRetryCount": connectRetryCount[__i__]}]); + + + } + + Future set_connectRetryInterval_batch(List connectRetryInterval) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_connectRetryInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "connectRetryInterval": connectRetryInterval[__i__]}]); + + + } + + Future set_customModeType_batch(List customModeType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_customModeType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "customModeType": customModeType[__i__]}]); + + + } + + Future set_sampleBufferSize_batch(List sampleBufferSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_sampleBufferSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sampleBufferSize": sampleBufferSize[__i__]}]); + + + } + + Future set_autoSampleBufferSize_batch(List autoSampleBufferSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_autoSampleBufferSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "autoSampleBufferSize": autoSampleBufferSize[__i__]}]); + + + } + + Future set_enableNAS_batch(List enableNAS) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableNAS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableNAS": enableNAS[__i__]}]); + + + } + + Future set_enableAEC_batch(List enableAEC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableAEC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAEC": enableAEC[__i__]}]); + + + } + + Future set_enableHWAcceleration_batch(List enableHWAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableHWAcceleration": enableHWAcceleration[__i__]}]); + + + } + + Future set_enableAudioAcceleration_batch(List enableAudioAcceleration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableAudioAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAudioAcceleration": enableAudioAcceleration[__i__]}]); + + + } + + Future set_enableAGC_batch(List enableAGC) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableAGC_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAGC": enableAGC[__i__]}]); + + + } + + Future set_volumeType_batch(List volumeType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_volumeType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "volumeType": volumeType[__i__].toValue()}]); + + + } + + Future set_frontCamera_batch(List frontCamera) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_frontCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frontCamera": frontCamera[__i__]}]); + + + } + + Future set_beautyFilterDepth_batch(List beautyFilterDepth) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_beautyFilterDepth_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "beautyFilterDepth": beautyFilterDepth[__i__]}]); + + + } + + Future set_whiteningFilterDepth_batch(List whiteningFilterDepth) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_whiteningFilterDepth_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "whiteningFilterDepth": whiteningFilterDepth[__i__]}]); + + + } + + Future set_enableNearestIP_batch(List enableNearestIP) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_enableNearestIP_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableNearestIP": enableNearestIP[__i__]}]); + + + } + + Future set_rtmpChannelType_batch(List rtmpChannelType) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_rtmpChannelType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "rtmpChannelType": rtmpChannelType[__i__]}]); + + + } + + Future set_metaData_batch(List metaData) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXLivePushConfig::set_metaData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "metaData": metaData[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXLivePushListener.g.dart b/lib/src/ios/TXLivePushListener.g.dart new file mode 100644 index 0000000..133436e --- /dev/null +++ b/lib/src/ios/TXLivePushListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXLivePushListener on NSObject { + + + + + + + + + @mustCallSuper + Future onPushEvent_withParam(int EvtID, Map param) {} + + @mustCallSuper + Future onNetStatus(Map param) {} + +} + diff --git a/lib/src/ios/TXLiveRecordListener.g.dart b/lib/src/ios/TXLiveRecordListener.g.dart new file mode 100644 index 0000000..9f288fa --- /dev/null +++ b/lib/src/ios/TXLiveRecordListener.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXLiveRecordListener on NSObject { + + + + + + + + + @mustCallSuper + Future onRecordProgress(int milliSecond) {} + + @mustCallSuper + Future onRecordComplete(TXRecordResult result) {} + + @mustCallSuper + Future onRecordEvent(Map evt) {} + +} + diff --git a/lib/src/ios/TXLocalVideoMirrorType.g.dart b/lib/src/ios/TXLocalVideoMirrorType.g.dart new file mode 100644 index 0000000..c72679b --- /dev/null +++ b/lib/src/ios/TXLocalVideoMirrorType.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXLocalVideoMirrorType { + LocalVideoMirrorType_Auto /* 0 */, + LocalVideoMirrorType_Enable /* 1 */, + LocalVideoMirrorType_Disable /* 2 */ +} + +extension TXLocalVideoMirrorTypeToX on TXLocalVideoMirrorType { + int toValue() { + switch (this) { + case TXLocalVideoMirrorType.LocalVideoMirrorType_Auto: return 0; + case TXLocalVideoMirrorType.LocalVideoMirrorType_Enable: return 1; + case TXLocalVideoMirrorType.LocalVideoMirrorType_Disable: return 2; + default: return 0; + } + } +} + +extension TXLocalVideoMirrorTypeFromX on int { + TXLocalVideoMirrorType toTXLocalVideoMirrorType() { + switch (this) { + case 0: return TXLocalVideoMirrorType.LocalVideoMirrorType_Auto; + case 1: return TXLocalVideoMirrorType.LocalVideoMirrorType_Enable; + case 2: return TXLocalVideoMirrorType.LocalVideoMirrorType_Disable; + default: return TXLocalVideoMirrorType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXPaster.g.dart b/lib/src/ios/TXPaster.g.dart new file mode 100644 index 0000000..2a8390d --- /dev/null +++ b/lib/src/ios/TXPaster.g.dart @@ -0,0 +1,157 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXPaster extends NSObject { + //region constants + static const String name__ = 'TXPaster'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXPaster', {'init': init}); + final object = TXPaster()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXPaster', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXPaster()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_pasterImage() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_pasterImage", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_frame() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_frame", {'__this__': this}); + return __result__ == null ? null : (CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_startTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_startTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_endTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_endTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_pasterImage(UIImage pasterImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPaster::set_pasterImage', {'__this__': this, "pasterImage": pasterImage}); + + + } + + Future set_frame(CGRect frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPaster::set_frame', {'__this__': this, "frame": frame}); + + + } + + Future set_startTime(double startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPaster::set_startTime', {'__this__': this, "startTime": startTime}); + + + } + + Future set_endTime(double endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPaster::set_endTime', {'__this__': this, "endTime": endTime}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXPaster_Batch on List { + //region getters + Future> get_pasterImage_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_pasterImage_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_frame_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_frame_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_startTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_endTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPaster::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_pasterImage_batch(List pasterImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPaster::set_pasterImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pasterImage": pasterImage[__i__]}]); + + + } + + Future set_frame_batch(List frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPaster::set_frame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frame": frame[__i__]}]); + + + } + + Future set_startTime_batch(List startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPaster::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]); + + + } + + Future set_endTime_batch(List endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPaster::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXPlayerAuthParams.g.dart b/lib/src/ios/TXPlayerAuthParams.g.dart new file mode 100644 index 0000000..c427022 --- /dev/null +++ b/lib/src/ios/TXPlayerAuthParams.g.dart @@ -0,0 +1,229 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXPlayerAuthParams extends NSObject { + //region constants + static const String name__ = 'TXPlayerAuthParams'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXPlayerAuthParams', {'init': init}); + final object = TXPlayerAuthParams()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXPlayerAuthParams', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXPlayerAuthParams()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_appId() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_appId", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_fileId() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_fileId", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_timeout() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_timeout", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_exper() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_exper", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_us() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_us", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_sign() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_sign", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_https() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_https", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_appId(int appId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_appId', {'__this__': this, "appId": appId}); + + + } + + Future set_fileId(String fileId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_fileId', {'__this__': this, "fileId": fileId}); + + + } + + Future set_timeout(String timeout) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_timeout', {'__this__': this, "timeout": timeout}); + + + } + + Future set_exper(int exper) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_exper', {'__this__': this, "exper": exper}); + + + } + + Future set_us(String us) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_us', {'__this__': this, "us": us}); + + + } + + Future set_sign(String sign) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_sign', {'__this__': this, "sign": sign}); + + + } + + Future set_https(bool https) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_https', {'__this__': this, "https": https}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXPlayerAuthParams_Batch on List { + //region getters + Future> get_appId_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_appId_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_fileId_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_fileId_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_timeout_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_timeout_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_exper_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_exper_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_us_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_us_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_sign_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_sign_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_https_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_https_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_appId_batch(List appId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_appId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "appId": appId[__i__]}]); + + + } + + Future set_fileId_batch(List fileId) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_fileId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "fileId": fileId[__i__]}]); + + + } + + Future set_timeout_batch(List timeout) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_timeout_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "timeout": timeout[__i__]}]); + + + } + + Future set_exper_batch(List exper) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_exper_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exper": exper[__i__]}]); + + + } + + Future set_us_batch(List us) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_us_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "us": us[__i__]}]); + + + } + + Future set_sign_batch(List sign) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_sign_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sign": sign[__i__]}]); + + + } + + Future set_https_batch(List https) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_https_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "https": https[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXPreviewParam.g.dart b/lib/src/ios/TXPreviewParam.g.dart new file mode 100644 index 0000000..85d14f6 --- /dev/null +++ b/lib/src/ios/TXPreviewParam.g.dart @@ -0,0 +1,109 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXPreviewParam extends NSObject { + //region constants + static const String name__ = 'TXPreviewParam'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXPreviewParam', {'init': init}); + final object = TXPreviewParam()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXPreviewParam', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXPreviewParam()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_videoView() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPreviewParam::get_videoView", {'__this__': this}); + return __result__ == null ? null : (UIView()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_renderMode() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPreviewParam::get_renderMode", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXPreviewRenderMode()); + } + + //endregion + + //region setters + Future set_videoView(UIView videoView) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPreviewParam::set_videoView', {'__this__': this, "videoView": videoView}); + + + } + + Future set_renderMode(TXPreviewRenderMode renderMode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPreviewParam::set_renderMode', {'__this__': this, "renderMode": renderMode.toValue()}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXPreviewParam_Batch on List { + //region getters + Future> get_videoView_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPreviewParam::get_videoView_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIView()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_renderMode_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPreviewParam::get_renderMode_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXPreviewRenderMode()).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_videoView_batch(List videoView) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPreviewParam::set_videoView_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoView": videoView[__i__]}]); + + + } + + Future set_renderMode_batch(List renderMode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPreviewParam::set_renderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "renderMode": renderMode[__i__].toValue()}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXPreviewRenderMode.g.dart b/lib/src/ios/TXPreviewRenderMode.g.dart new file mode 100644 index 0000000..29f55d6 --- /dev/null +++ b/lib/src/ios/TXPreviewRenderMode.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXPreviewRenderMode { + PREVIEW_RENDER_MODE_FILL_SCREEN /* 0 */, + PREVIEW_RENDER_MODE_FILL_EDGE /* 1 */ +} + +extension TXPreviewRenderModeToX on TXPreviewRenderMode { + int toValue() { + switch (this) { + case TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_SCREEN: return 0; + case TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_EDGE: return 1; + default: return 0; + } + } +} + +extension TXPreviewRenderModeFromX on int { + TXPreviewRenderMode toTXPreviewRenderMode() { + switch (this) { + case 0: return TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_SCREEN; + case 1: return TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_EDGE; + default: return TXPreviewRenderMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXRecordResult.g.dart b/lib/src/ios/TXRecordResult.g.dart new file mode 100644 index 0000000..c91e5aa --- /dev/null +++ b/lib/src/ios/TXRecordResult.g.dart @@ -0,0 +1,157 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXRecordResult extends NSObject { + //region constants + static const String name__ = 'TXRecordResult'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXRecordResult', {'init': init}); + final object = TXRecordResult()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXRecordResult', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXRecordResult()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_retCode() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_retCode", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXRecordResultCode()); + } + + Future get_descMsg() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_descMsg", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_videoPath() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_videoPath", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_coverImage() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_coverImage", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + //endregion + + //region setters + Future set_retCode(TXRecordResultCode retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRecordResult::set_retCode', {'__this__': this, "retCode": retCode.toValue()}); + + + } + + Future set_descMsg(String descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRecordResult::set_descMsg', {'__this__': this, "descMsg": descMsg}); + + + } + + Future set_videoPath(String videoPath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRecordResult::set_videoPath', {'__this__': this, "videoPath": videoPath}); + + + } + + Future set_coverImage(UIImage coverImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRecordResult::set_coverImage', {'__this__': this, "coverImage": coverImage}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXRecordResult_Batch on List { + //region getters + Future> get_retCode_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_retCode_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXRecordResultCode()).toList(); + return typedResult; + } + + Future> get_descMsg_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_descMsg_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_videoPath_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_videoPath_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_coverImage_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRecordResult::get_coverImage_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_retCode_batch(List retCode) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRecordResult::set_retCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "retCode": retCode[__i__].toValue()}]); + + + } + + Future set_descMsg_batch(List descMsg) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRecordResult::set_descMsg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "descMsg": descMsg[__i__]}]); + + + } + + Future set_videoPath_batch(List videoPath) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRecordResult::set_videoPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoPath": videoPath[__i__]}]); + + + } + + Future set_coverImage_batch(List coverImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRecordResult::set_coverImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "coverImage": coverImage[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXRecordResultCode.g.dart b/lib/src/ios/TXRecordResultCode.g.dart new file mode 100644 index 0000000..589faac --- /dev/null +++ b/lib/src/ios/TXRecordResultCode.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXRecordResultCode { + RECORD_RESULT_OK /* 0 */, + RECORD_RESULT_OK_INTERRUPT /* 1 */, + RECORD_RESULT_FAILED /* 1001 */ +} + +extension TXRecordResultCodeToX on TXRecordResultCode { + int toValue() { + switch (this) { + case TXRecordResultCode.RECORD_RESULT_OK: return 0; + case TXRecordResultCode.RECORD_RESULT_OK_INTERRUPT: return 1; + case TXRecordResultCode.RECORD_RESULT_FAILED: return 1001; + default: return 0; + } + } +} + +extension TXRecordResultCodeFromX on int { + TXRecordResultCode toTXRecordResultCode() { + switch (this) { + case 0: return TXRecordResultCode.RECORD_RESULT_OK; + case 1: return TXRecordResultCode.RECORD_RESULT_OK_INTERRUPT; + case 1001: return TXRecordResultCode.RECORD_RESULT_FAILED; + default: return TXRecordResultCode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXRecordType.g.dart b/lib/src/ios/TXRecordType.g.dart new file mode 100644 index 0000000..911f68d --- /dev/null +++ b/lib/src/ios/TXRecordType.g.dart @@ -0,0 +1,26 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXRecordType { + RECORD_TYPE_STREAM_SOURCE /* 1 */ +} + +extension TXRecordTypeToX on TXRecordType { + int toValue() { + switch (this) { + case TXRecordType.RECORD_TYPE_STREAM_SOURCE: return 1; + default: return 0; + } + } +} + +extension TXRecordTypeFromX on int { + TXRecordType toTXRecordType() { + switch (this) { + case 1: return TXRecordType.RECORD_TYPE_STREAM_SOURCE; + default: return TXRecordType.values[this + 1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXRepeat.g.dart b/lib/src/ios/TXRepeat.g.dart new file mode 100644 index 0000000..3a74cdb --- /dev/null +++ b/lib/src/ios/TXRepeat.g.dart @@ -0,0 +1,133 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXRepeat extends NSObject { + //region constants + static const String name__ = 'TXRepeat'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXRepeat', {'init': init}); + final object = TXRepeat()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXRepeat', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXRepeat()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_startTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_startTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_endTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_endTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_repeatTimes() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_repeatTimes", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_startTime(double startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRepeat::set_startTime', {'__this__': this, "startTime": startTime}); + + + } + + Future set_endTime(double endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRepeat::set_endTime', {'__this__': this, "endTime": endTime}); + + + } + + Future set_repeatTimes(int repeatTimes) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXRepeat::set_repeatTimes', {'__this__': this, "repeatTimes": repeatTimes}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXRepeat_Batch on List { + //region getters + Future> get_startTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_endTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_repeatTimes_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXRepeat::get_repeatTimes_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_startTime_batch(List startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRepeat::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]); + + + } + + Future set_endTime_batch(List endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRepeat::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]); + + + } + + Future set_repeatTimes_batch(List repeatTimes) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXRepeat::set_repeatTimes_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "repeatTimes": repeatTimes[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXReverbType.g.dart b/lib/src/ios/TXReverbType.g.dart new file mode 100644 index 0000000..cc64830 --- /dev/null +++ b/lib/src/ios/TXReverbType.g.dart @@ -0,0 +1,47 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXReverbType { + REVERB_TYPE_0 /* 0 */, + REVERB_TYPE_1 /* 1 */, + REVERB_TYPE_2 /* 2 */, + REVERB_TYPE_3 /* 3 */, + REVERB_TYPE_4 /* 4 */, + REVERB_TYPE_5 /* 5 */, + REVERB_TYPE_6 /* 6 */, + REVERB_TYPE_7 /* 7 */ +} + +extension TXReverbTypeToX on TXReverbType { + int toValue() { + switch (this) { + case TXReverbType.REVERB_TYPE_0: return 0; + case TXReverbType.REVERB_TYPE_1: return 1; + case TXReverbType.REVERB_TYPE_2: return 2; + case TXReverbType.REVERB_TYPE_3: return 3; + case TXReverbType.REVERB_TYPE_4: return 4; + case TXReverbType.REVERB_TYPE_5: return 5; + case TXReverbType.REVERB_TYPE_6: return 6; + case TXReverbType.REVERB_TYPE_7: return 7; + default: return 0; + } + } +} + +extension TXReverbTypeFromX on int { + TXReverbType toTXReverbType() { + switch (this) { + case 0: return TXReverbType.REVERB_TYPE_0; + case 1: return TXReverbType.REVERB_TYPE_1; + case 2: return TXReverbType.REVERB_TYPE_2; + case 3: return TXReverbType.REVERB_TYPE_3; + case 4: return TXReverbType.REVERB_TYPE_4; + case 5: return TXReverbType.REVERB_TYPE_5; + case 6: return TXReverbType.REVERB_TYPE_6; + case 7: return TXReverbType.REVERB_TYPE_7; + default: return TXReverbType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXSpeed.g.dart b/lib/src/ios/TXSpeed.g.dart new file mode 100644 index 0000000..2eafe57 --- /dev/null +++ b/lib/src/ios/TXSpeed.g.dart @@ -0,0 +1,133 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXSpeed extends NSObject { + //region constants + static const String name__ = 'TXSpeed'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXSpeed', {'init': init}); + final object = TXSpeed()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXSpeed', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXSpeed()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_startTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_startTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_endTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_endTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_speedLevel() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_speedLevel", {'__this__': this}); + return __result__ == null ? null : ((__result__ as int).toTXSpeedLevel()); + } + + //endregion + + //region setters + Future set_startTime(double startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSpeed::set_startTime', {'__this__': this, "startTime": startTime}); + + + } + + Future set_endTime(double endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSpeed::set_endTime', {'__this__': this, "endTime": endTime}); + + + } + + Future set_speedLevel(TXSpeedLevel speedLevel) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSpeed::set_speedLevel', {'__this__': this, "speedLevel": speedLevel.toValue()}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXSpeed_Batch on List { + //region getters + Future> get_startTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_endTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_speedLevel_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSpeed::get_speedLevel_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => (__result__ as int).toTXSpeedLevel()).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_startTime_batch(List startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSpeed::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]); + + + } + + Future set_endTime_batch(List endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSpeed::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]); + + + } + + Future set_speedLevel_batch(List speedLevel) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSpeed::set_speedLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "speedLevel": speedLevel[__i__].toValue()}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXSpeedLevel.g.dart b/lib/src/ios/TXSpeedLevel.g.dart new file mode 100644 index 0000000..b951f6d --- /dev/null +++ b/lib/src/ios/TXSpeedLevel.g.dart @@ -0,0 +1,34 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXSpeedLevel { + SPEED_LEVEL_SLOWEST /* null */, + SPEED_LEVEL_SLOW /* null */, + SPEED_LEVEL_NOMAL /* null */, + SPEED_LEVEL_FAST /* null */, + SPEED_LEVEL_FASTEST /* null */ +} + +extension TXSpeedLevelToX on TXSpeedLevel { + int toValue() { + switch (this) { + case TXSpeedLevel.SPEED_LEVEL_SLOWEST: return TXSpeedLevel.SPEED_LEVEL_SLOWEST.index + 0; + case TXSpeedLevel.SPEED_LEVEL_SLOW: return TXSpeedLevel.SPEED_LEVEL_SLOW.index + 0; + case TXSpeedLevel.SPEED_LEVEL_NOMAL: return TXSpeedLevel.SPEED_LEVEL_NOMAL.index + 0; + case TXSpeedLevel.SPEED_LEVEL_FAST: return TXSpeedLevel.SPEED_LEVEL_FAST.index + 0; + case TXSpeedLevel.SPEED_LEVEL_FASTEST: return TXSpeedLevel.SPEED_LEVEL_FASTEST.index + 0; + default: return 0; + } + } +} + +extension TXSpeedLevelFromX on int { + TXSpeedLevel toTXSpeedLevel() { + switch (this) { + + default: return TXSpeedLevel.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXSubtitle.g.dart b/lib/src/ios/TXSubtitle.g.dart new file mode 100644 index 0000000..615281e --- /dev/null +++ b/lib/src/ios/TXSubtitle.g.dart @@ -0,0 +1,157 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXSubtitle extends NSObject { + //region constants + static const String name__ = 'TXSubtitle'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXSubtitle', {'init': init}); + final object = TXSubtitle()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXSubtitle', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXSubtitle()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_titleImage() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_titleImage", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_frame() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_frame", {'__this__': this}); + return __result__ == null ? null : (CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_startTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_startTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_endTime() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_endTime", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_titleImage(UIImage titleImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSubtitle::set_titleImage', {'__this__': this, "titleImage": titleImage}); + + + } + + Future set_frame(CGRect frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSubtitle::set_frame', {'__this__': this, "frame": frame}); + + + } + + Future set_startTime(double startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSubtitle::set_startTime', {'__this__': this, "startTime": startTime}); + + + } + + Future set_endTime(double endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXSubtitle::set_endTime', {'__this__': this, "endTime": endTime}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXSubtitle_Batch on List { + //region getters + Future> get_titleImage_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_titleImage_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_frame_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_frame_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => CGRect()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_startTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_endTime_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXSubtitle::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_titleImage_batch(List titleImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSubtitle::set_titleImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "titleImage": titleImage[__i__]}]); + + + } + + Future set_frame_batch(List frame) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSubtitle::set_frame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frame": frame[__i__]}]); + + + } + + Future set_startTime_batch(List startTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSubtitle::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]); + + + } + + Future set_endTime_batch(List endTime) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXSubtitle::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXSystemAudioVolumeType.g.dart b/lib/src/ios/TXSystemAudioVolumeType.g.dart new file mode 100644 index 0000000..ffa3365 --- /dev/null +++ b/lib/src/ios/TXSystemAudioVolumeType.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXSystemAudioVolumeType { + SYSTEM_AUDIO_VOLUME_TYPE_AUTO /* 0 */, + SYSTEM_AUDIO_VOLUME_TYPE_MEDIA /* 1 */, + SYSTEM_AUDIO_VOLUME_TYPE_VOIP /* 2 */ +} + +extension TXSystemAudioVolumeTypeToX on TXSystemAudioVolumeType { + int toValue() { + switch (this) { + case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_AUTO: return 0; + case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_MEDIA: return 1; + case TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_VOIP: return 2; + default: return 0; + } + } +} + +extension TXSystemAudioVolumeTypeFromX on int { + TXSystemAudioVolumeType toTXSystemAudioVolumeType() { + switch (this) { + case 0: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_AUTO; + case 1: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_MEDIA; + case 2: return TXSystemAudioVolumeType.SYSTEM_AUDIO_VOLUME_TYPE_VOIP; + default: return TXSystemAudioVolumeType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXTransitionType.g.dart b/lib/src/ios/TXTransitionType.g.dart new file mode 100644 index 0000000..7237693 --- /dev/null +++ b/lib/src/ios/TXTransitionType.g.dart @@ -0,0 +1,36 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXTransitionType { + TXTransitionType_LefRightSlipping /* null */, + TXTransitionType_UpDownSlipping /* null */, + TXTransitionType_Enlarge /* null */, + TXTransitionType_Narrow /* null */, + TXTransitionType_RotationalScaling /* null */, + TXTransitionType_FadeinFadeout /* null */ +} + +extension TXTransitionTypeToX on TXTransitionType { + int toValue() { + switch (this) { + case TXTransitionType.TXTransitionType_LefRightSlipping: return TXTransitionType.TXTransitionType_LefRightSlipping.index + 0; + case TXTransitionType.TXTransitionType_UpDownSlipping: return TXTransitionType.TXTransitionType_UpDownSlipping.index + 0; + case TXTransitionType.TXTransitionType_Enlarge: return TXTransitionType.TXTransitionType_Enlarge.index + 0; + case TXTransitionType.TXTransitionType_Narrow: return TXTransitionType.TXTransitionType_Narrow.index + 0; + case TXTransitionType.TXTransitionType_RotationalScaling: return TXTransitionType.TXTransitionType_RotationalScaling.index + 0; + case TXTransitionType.TXTransitionType_FadeinFadeout: return TXTransitionType.TXTransitionType_FadeinFadeout.index + 0; + default: return 0; + } + } +} + +extension TXTransitionTypeFromX on int { + TXTransitionType toTXTransitionType() { + switch (this) { + + default: return TXTransitionType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoAspectRatio.g.dart b/lib/src/ios/TXVideoAspectRatio.g.dart new file mode 100644 index 0000000..d0d7600 --- /dev/null +++ b/lib/src/ios/TXVideoAspectRatio.g.dart @@ -0,0 +1,34 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoAspectRatio { + VIDEO_ASPECT_RATIO_3_4 /* null */, + VIDEO_ASPECT_RATIO_9_16 /* null */, + VIDEO_ASPECT_RATIO_1_1 /* null */, + VIDEO_ASPECT_RATIO_16_9 /* null */, + VIDEO_ASPECT_RATIO_4_3 /* null */ +} + +extension TXVideoAspectRatioToX on TXVideoAspectRatio { + int toValue() { + switch (this) { + case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_3_4: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_3_4.index + 0; + case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_9_16: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_9_16.index + 0; + case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_1_1: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_1_1.index + 0; + case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_16_9: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_16_9.index + 0; + case TXVideoAspectRatio.VIDEO_ASPECT_RATIO_4_3: return TXVideoAspectRatio.VIDEO_ASPECT_RATIO_4_3.index + 0; + default: return 0; + } + } +} + +extension TXVideoAspectRatioFromX on int { + TXVideoAspectRatio toTXVideoAspectRatio() { + switch (this) { + + default: return TXVideoAspectRatio.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoBeautyStyle.g.dart b/lib/src/ios/TXVideoBeautyStyle.g.dart new file mode 100644 index 0000000..326f648 --- /dev/null +++ b/lib/src/ios/TXVideoBeautyStyle.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoBeautyStyle { + VIDOE_BEAUTY_STYLE_SMOOTH /* 0 */, + VIDOE_BEAUTY_STYLE_NATURE /* 1 */, + VIDOE_BEAUTY_STYLE_PITU /* 2 */ +} + +extension TXVideoBeautyStyleToX on TXVideoBeautyStyle { + int toValue() { + switch (this) { + case TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_SMOOTH: return 0; + case TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_NATURE: return 1; + case TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_PITU: return 2; + default: return 0; + } + } +} + +extension TXVideoBeautyStyleFromX on int { + TXVideoBeautyStyle toTXVideoBeautyStyle() { + switch (this) { + case 0: return TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_SMOOTH; + case 1: return TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_NATURE; + case 2: return TXVideoBeautyStyle.VIDOE_BEAUTY_STYLE_PITU; + default: return TXVideoBeautyStyle.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoCompressed.g.dart b/lib/src/ios/TXVideoCompressed.g.dart new file mode 100644 index 0000000..6b3e3fc --- /dev/null +++ b/lib/src/ios/TXVideoCompressed.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoCompressed { + VIDEO_COMPRESSED_360P /* 0 */, + VIDEO_COMPRESSED_480P /* 1 */, + VIDEO_COMPRESSED_540P /* 2 */, + VIDEO_COMPRESSED_720P /* 3 */ +} + +extension TXVideoCompressedToX on TXVideoCompressed { + int toValue() { + switch (this) { + case TXVideoCompressed.VIDEO_COMPRESSED_360P: return 0; + case TXVideoCompressed.VIDEO_COMPRESSED_480P: return 1; + case TXVideoCompressed.VIDEO_COMPRESSED_540P: return 2; + case TXVideoCompressed.VIDEO_COMPRESSED_720P: return 3; + default: return 0; + } + } +} + +extension TXVideoCompressedFromX on int { + TXVideoCompressed toTXVideoCompressed() { + switch (this) { + case 0: return TXVideoCompressed.VIDEO_COMPRESSED_360P; + case 1: return TXVideoCompressed.VIDEO_COMPRESSED_480P; + case 2: return TXVideoCompressed.VIDEO_COMPRESSED_540P; + case 3: return TXVideoCompressed.VIDEO_COMPRESSED_720P; + default: return TXVideoCompressed.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoCustomProcessDelegate.g.dart b/lib/src/ios/TXVideoCustomProcessDelegate.g.dart new file mode 100644 index 0000000..49ec337 --- /dev/null +++ b/lib/src/ios/TXVideoCustomProcessDelegate.g.dart @@ -0,0 +1,38 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXVideoCustomProcessDelegate on NSObject { + + + + + + + + + @mustCallSuper + Future onPreProcessTexture_width_height(int texture, double width, double height) {} + + @mustCallSuper + Future onTextureDestoryed() {} + + @mustCallSuper + Future onDetectFacePoints(List points) {} + + @mustCallSuper + Future onPlayerPixelBuffer(NSValue/* void* */ pixelBuffer) {} + +} + diff --git a/lib/src/ios/TXVideoCustomProcessListener.g.dart b/lib/src/ios/TXVideoCustomProcessListener.g.dart new file mode 100644 index 0000000..3d8ec34 --- /dev/null +++ b/lib/src/ios/TXVideoCustomProcessListener.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXVideoCustomProcessListener on NSObject { + + + + + + + + + @mustCallSuper + Future onTextureDestoryed() {} + +} + diff --git a/lib/src/ios/TXVideoEditer.g.dart b/lib/src/ios/TXVideoEditer.g.dart new file mode 100644 index 0000000..9d8158e --- /dev/null +++ b/lib/src/ios/TXVideoEditer.g.dart @@ -0,0 +1,1897 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXVideoEditer extends NSObject { + //region constants + static const String name__ = 'TXVideoEditer'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXVideoEditer', {'init': init}); + final object = TXVideoEditer()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXVideoEditer', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXVideoEditer()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_supportsTwoPassEncoding() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoEditer::get_supportsTwoPassEncoding", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_generateDelegate(TXVideoGenerateListener generateDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::set_generateDelegate', {'__this__': this, }); + + MethodChannel('TXVideoGenerateListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoGenerateListener::onGenerateProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGenerateProgress([\'progress\':${args['progress']}])'); + } + + // handle the native call + generateDelegate?.onGenerateProgress(args['progress']); + break; + case 'Callback::TXVideoGenerateListener::onGenerateComplete': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onGenerateComplete([\'result\':${args['result']}])'); + } + + // handle the native call + generateDelegate?.onGenerateComplete(TypeOpTencentLiveFluttifyIOS((args['result'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_previewDelegate(TXVideoPreviewListener previewDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::set_previewDelegate', {'__this__': this, }); + + MethodChannel('TXVideoPreviewListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoPreviewListener::onPreviewProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreviewProgress([\'time\':${args['time']}])'); + } + + // handle the native call + previewDelegate?.onPreviewProgress(args['time']); + break; + case 'Callback::TXVideoPreviewListener::onPreviewFinished': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreviewFinished([])'); + } + + // handle the native call + previewDelegate?.onPreviewFinished(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_videoProcessDelegate(TXVideoCustomProcessListener videoProcessDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::set_videoProcessDelegate', {'__this__': this, }); + + MethodChannel('TXVideoCustomProcessListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoCustomProcessListener::onTextureDestoryed': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onTextureDestoryed([])'); + } + + // handle the native call + videoProcessDelegate?.onTextureDestoryed(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + //endregion + + //region methods + + Future initWithPreview(TXPreviewParam param) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::initWithPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::initWithPreview', {"param": param, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = TXVideoEditer()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setVideoPath(String videoPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setVideoPath([\'videoPath\':$videoPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoPath', {"videoPath": videoPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPictureList_fps(List pitureList, int fps) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setPictureList([\'fps\':$fps])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setPictureList_fps', {"pitureList": pitureList, "fps": fps, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPictureTransition_duration(TXTransitionType transitionType, void duration(double __arg_0__)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setPictureTransition([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setPictureTransition_duration', {"transitionType": transitionType.toValue(), "__this__": this}); + + + // handle native call + MethodChannel('void|CGFloat#__arg_0__::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|CGFloat#__arg_0__::void|CGFloat#__arg_0__': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (duration != null) duration(args['__arg_0__']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future previewAtTime(double time) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::previewAtTime([\'time\':$time])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::previewAtTime', {"time": time, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPlayFromTime_toTime(double startTime, double endTime) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::startPlayFromTime([\'startTime\':$startTime, \'endTime\':$endTime])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::startPlayFromTime_toTime', {"startTime": startTime, "endTime": endTime, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pausePlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::pausePlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::pausePlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumePlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::resumePlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::resumePlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::stopPlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::stopPlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBeautyFilter_setWhiteningLevel(double beautyLevel, double whiteningLevel) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBeautyFilter([\'beautyLevel\':$beautyLevel, \'whiteningLevel\':$whiteningLevel])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBeautyFilter_setWhiteningLevel', {"beautyLevel": beautyLevel, "whiteningLevel": whiteningLevel, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilter(UIImage image) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setFilter([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setFilter', {"image": image, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio(UIImage leftFilter, double leftIntensity, UIImage rightFilter, double rightIntensity, double leftRatio) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setFilter([\'leftIntensity\':$leftIntensity, \'rightIntensity\':$rightIntensity, \'leftRatio\':$leftRatio])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio', {"leftFilter": leftFilter, "leftIntensity": leftIntensity, "rightFilter": rightFilter, "rightIntensity": rightIntensity, "leftRatio": leftRatio, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSpecialRatio(double specialRatio) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setSpecialRatio([\'specialRatio\':$specialRatio])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSpecialRatio', {"specialRatio": specialRatio, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setReverse(bool isReverse) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setReverse([\'isReverse\':$isReverse])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setReverse', {"isReverse": isReverse, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRepeatPlay(List repeatList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setRepeatPlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setRepeatPlay', {"repeatList": repeatList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setRenderRotation(int rotation) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setRenderRotation([\'rotation\':$rotation])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setRenderRotation', {"rotation": rotation, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSpeedList(List speedList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setSpeedList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSpeedList', {"speedList": speedList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startEffect_startTime(TXEffectType type, double startTime) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::startEffect([\'startTime\':$startTime])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::startEffect_startTime', {"type": type.toValue(), "startTime": startTime, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopEffect_endTime(TXEffectType type, double endTime) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::stopEffect([\'endTime\':$endTime])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::stopEffect_endTime', {"type": type.toValue(), "endTime": endTime, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future deleteLastEffect() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::deleteLastEffect([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::deleteLastEffect', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future deleteAllEffect() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::deleteAllEffect([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::deleteAllEffect', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setSubtitleList(List subtitleList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setSubtitleList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSubtitleList', {"subtitleList": subtitleList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setPasterList(List pasterList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setPasterList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setPasterList', {"pasterList": pasterList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setAnimatedPasterList(List animatedPasterList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setAnimatedPasterList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setAnimatedPasterList', {"animatedPasterList": animatedPasterList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGM_result(String path, void result(int __arg_0__)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGM([\'path\':$path])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGM_result', {"path": path, "__this__": this}); + + + // handle native call + MethodChannel('void|int#__arg_0__::Callback@$refId', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::void|int#__arg_0__::void|int#__arg_0__': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (result != null) result(args['__arg_0__']); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMStartTime_endTime(double startTime, double endTime) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGMStartTime([\'startTime\':$startTime, \'endTime\':$endTime])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMStartTime_endTime', {"startTime": startTime, "endTime": endTime, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMLoop(bool isLoop) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGMLoop([\'isLoop\':$isLoop])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMLoop', {"isLoop": isLoop, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMAtVideoTime(double time) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGMAtVideoTime([\'time\':$time])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMAtVideoTime', {"time": time, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoVolume(double volume) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setVideoVolume([\'volume\':$volume])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoVolume', {"volume": volume, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMVolume(double volume) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGMVolume([\'volume\':$volume])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMVolume', {"volume": volume, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setBGMFadeInDuration_fadeOutDuration(double fadeInDuration, double fadeOutDuration) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setBGMFadeInDuration([\'fadeInDuration\':$fadeInDuration, \'fadeOutDuration\':$fadeOutDuration])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMFadeInDuration_fadeOutDuration', {"fadeInDuration": fadeInDuration, "fadeOutDuration": fadeOutDuration, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setWaterMark_normalizationFrame(UIImage waterMark, CGRect normalizationFrame) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setWaterMark([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setWaterMark_normalizationFrame', {"waterMark": waterMark, "normalizationFrame": normalizationFrame, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setTailWaterMark_normalizationFrame_duration(UIImage tailWaterMark, CGRect normalizationFrame, double duration) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setTailWaterMark([\'duration\':$duration])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setTailWaterMark_normalizationFrame_duration', {"tailWaterMark": tailWaterMark, "normalizationFrame": normalizationFrame, "duration": duration, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setCutFromTime_toTime(double startTime, double endTime) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setCutFromTime([\'startTime\':$startTime, \'endTime\':$endTime])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setCutFromTime_toTime', {"startTime": startTime, "endTime": endTime, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoBitrate(int bitrate) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::setVideoBitrate([\'bitrate\':$bitrate])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoBitrate', {"bitrate": bitrate, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future generateVideo_videoOutputPath(TXVideoCompressed videoCompressed, String videoOutputPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::generateVideo([\'videoOutputPath\':$videoOutputPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::generateVideo_videoOutputPath', {"videoCompressed": videoCompressed.toValue(), "videoOutputPath": videoOutputPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future quickGenerateVideo_videoOutputPath(TXVideoCompressed videoCompressed, String videoOutputPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::quickGenerateVideo([\'videoOutputPath\':$videoOutputPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::quickGenerateVideo_videoOutputPath', {"videoCompressed": videoCompressed.toValue(), "videoOutputPath": videoOutputPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future generateVideoWithTwoPass_videoOutputPath(TXVideoCompressed videoCompressed, String videoOutputPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::generateVideoWithTwoPass([\'videoOutputPath\':$videoOutputPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::generateVideoWithTwoPass_videoOutputPath', {"videoCompressed": videoCompressed.toValue(), "videoOutputPath": videoOutputPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pauseGenerate() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::pauseGenerate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::pauseGenerate', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumeGenerate() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::resumeGenerate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::resumeGenerate', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future cancelGenerate() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoEditer@$refId::cancelGenerate([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::cancelGenerate', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXVideoEditer_Batch on List { + //region getters + Future> get_supportsTwoPassEncoding_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoEditer::get_supportsTwoPassEncoding_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + + //endregion + + //region methods + + Future> initWithPreview_batch(List param) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::initWithPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"param": param[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => TXVideoEditer()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setVideoPath_batch(List videoPath) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoPath": videoPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPictureList_fps_batch(List> pitureList, List fps) async { + if (pitureList.length != fps.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setPictureList_fps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"pitureList": pitureList[__i__], "fps": fps[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> previewAtTime_batch(List time) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::previewAtTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"time": time[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPlayFromTime_toTime_batch(List startTime, List endTime) async { + if (startTime.length != endTime.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::startPlayFromTime_toTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"startTime": startTime[__i__], "endTime": endTime[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pausePlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::pausePlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumePlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::resumePlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::stopPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBeautyFilter_setWhiteningLevel_batch(List beautyLevel, List whiteningLevel) async { + if (beautyLevel.length != whiteningLevel.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBeautyFilter_setWhiteningLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"beautyLevel": beautyLevel[__i__], "whiteningLevel": whiteningLevel[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilter_batch(List image) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setFilter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"image": image[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio_batch(List leftFilter, List leftIntensity, List rightFilter, List rightIntensity, List leftRatio) async { + if (leftFilter.length != leftIntensity.length || leftIntensity.length != rightFilter.length || rightFilter.length != rightIntensity.length || rightIntensity.length != leftRatio.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"leftFilter": leftFilter[__i__], "leftIntensity": leftIntensity[__i__], "rightFilter": rightFilter[__i__], "rightIntensity": rightIntensity[__i__], "leftRatio": leftRatio[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSpecialRatio_batch(List specialRatio) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSpecialRatio_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"specialRatio": specialRatio[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setReverse_batch(List isReverse) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setReverse_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isReverse": isReverse[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRepeatPlay_batch(List> repeatList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setRepeatPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"repeatList": repeatList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setRenderRotation_batch(List rotation) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setRenderRotation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"rotation": rotation[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSpeedList_batch(List> speedList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSpeedList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"speedList": speedList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startEffect_startTime_batch(List type, List startTime) async { + if (type.length != startTime.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::startEffect_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"type": type[__i__].toValue(), "startTime": startTime[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopEffect_endTime_batch(List type, List endTime) async { + if (type.length != endTime.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::stopEffect_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"type": type[__i__].toValue(), "endTime": endTime[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> deleteLastEffect_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::deleteLastEffect_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> deleteAllEffect_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::deleteAllEffect_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setSubtitleList_batch(List> subtitleList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setSubtitleList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"subtitleList": subtitleList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setPasterList_batch(List> pasterList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setPasterList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"pasterList": pasterList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setAnimatedPasterList_batch(List> animatedPasterList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setAnimatedPasterList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"animatedPasterList": animatedPasterList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMStartTime_endTime_batch(List startTime, List endTime) async { + if (startTime.length != endTime.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMStartTime_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"startTime": startTime[__i__], "endTime": endTime[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMLoop_batch(List isLoop) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMLoop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"isLoop": isLoop[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMAtVideoTime_batch(List time) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMAtVideoTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"time": time[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoVolume_batch(List volume) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volume": volume[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMVolume_batch(List volume) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMVolume_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volume": volume[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setBGMFadeInDuration_fadeOutDuration_batch(List fadeInDuration, List fadeOutDuration) async { + if (fadeInDuration.length != fadeOutDuration.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setBGMFadeInDuration_fadeOutDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"fadeInDuration": fadeInDuration[__i__], "fadeOutDuration": fadeOutDuration[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setWaterMark_normalizationFrame_batch(List waterMark, List normalizationFrame) async { + if (waterMark.length != normalizationFrame.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setWaterMark_normalizationFrame_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"waterMark": waterMark[__i__], "normalizationFrame": normalizationFrame[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setTailWaterMark_normalizationFrame_duration_batch(List tailWaterMark, List normalizationFrame, List duration) async { + if (tailWaterMark.length != normalizationFrame.length || normalizationFrame.length != duration.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setTailWaterMark_normalizationFrame_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"tailWaterMark": tailWaterMark[__i__], "normalizationFrame": normalizationFrame[__i__], "duration": duration[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setCutFromTime_toTime_batch(List startTime, List endTime) async { + if (startTime.length != endTime.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setCutFromTime_toTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"startTime": startTime[__i__], "endTime": endTime[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoBitrate_batch(List bitrate) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::setVideoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"bitrate": bitrate[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> generateVideo_videoOutputPath_batch(List videoCompressed, List videoOutputPath) async { + if (videoCompressed.length != videoOutputPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::generateVideo_videoOutputPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoCompressed": videoCompressed[__i__].toValue(), "videoOutputPath": videoOutputPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> quickGenerateVideo_videoOutputPath_batch(List videoCompressed, List videoOutputPath) async { + if (videoCompressed.length != videoOutputPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::quickGenerateVideo_videoOutputPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoCompressed": videoCompressed[__i__].toValue(), "videoOutputPath": videoOutputPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> generateVideoWithTwoPass_videoOutputPath_batch(List videoCompressed, List videoOutputPath) async { + if (videoCompressed.length != videoOutputPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::generateVideoWithTwoPass_videoOutputPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoCompressed": videoCompressed[__i__].toValue(), "videoOutputPath": videoOutputPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pauseGenerate_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::pauseGenerate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumeGenerate_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::resumeGenerate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> cancelGenerate_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoEditer::cancelGenerate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoEncodeMode.g.dart b/lib/src/ios/TXVideoEncodeMode.g.dart new file mode 100644 index 0000000..c9a3fba --- /dev/null +++ b/lib/src/ios/TXVideoEncodeMode.g.dart @@ -0,0 +1,28 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoEncodeMode { + VIDEO_ENCODER_MODE_CBR /* null */, + VIDEO_ENCODER_MODE_VBR /* null */ +} + +extension TXVideoEncodeModeToX on TXVideoEncodeMode { + int toValue() { + switch (this) { + case TXVideoEncodeMode.VIDEO_ENCODER_MODE_CBR: return TXVideoEncodeMode.VIDEO_ENCODER_MODE_CBR.index + 0; + case TXVideoEncodeMode.VIDEO_ENCODER_MODE_VBR: return TXVideoEncodeMode.VIDEO_ENCODER_MODE_VBR.index + 0; + default: return 0; + } + } +} + +extension TXVideoEncodeModeFromX on int { + TXVideoEncodeMode toTXVideoEncodeMode() { + switch (this) { + + default: return TXVideoEncodeMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoGenerateListener.g.dart b/lib/src/ios/TXVideoGenerateListener.g.dart new file mode 100644 index 0000000..e833be6 --- /dev/null +++ b/lib/src/ios/TXVideoGenerateListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXVideoGenerateListener on NSObject { + + + + + + + + + @mustCallSuper + Future onGenerateProgress(double progress) {} + + @mustCallSuper + Future onGenerateComplete(TXGenerateResult result) {} + +} + diff --git a/lib/src/ios/TXVideoHomeOrientation.g.dart b/lib/src/ios/TXVideoHomeOrientation.g.dart new file mode 100644 index 0000000..a7e2c4a --- /dev/null +++ b/lib/src/ios/TXVideoHomeOrientation.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoHomeOrientation { + VIDOE_HOME_ORIENTATION_RIGHT /* 0 */, + VIDEO_HOME_ORIENTATION_DOWN /* null */, + VIDEO_HOME_ORIENTATION_LEFT /* null */, + VIDOE_HOME_ORIENTATION_UP /* null */ +} + +extension TXVideoHomeOrientationToX on TXVideoHomeOrientation { + int toValue() { + switch (this) { + case TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_RIGHT: return 0; + case TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_DOWN: return TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_DOWN.index + 0; + case TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_LEFT: return TXVideoHomeOrientation.VIDEO_HOME_ORIENTATION_LEFT.index + 0; + case TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_UP: return TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_UP.index + 0; + default: return 0; + } + } +} + +extension TXVideoHomeOrientationFromX on int { + TXVideoHomeOrientation toTXVideoHomeOrientation() { + switch (this) { + case 0: return TXVideoHomeOrientation.VIDOE_HOME_ORIENTATION_RIGHT; + default: return TXVideoHomeOrientation.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoInfo.g.dart b/lib/src/ios/TXVideoInfo.g.dart new file mode 100644 index 0000000..2fcf783 --- /dev/null +++ b/lib/src/ios/TXVideoInfo.g.dart @@ -0,0 +1,277 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXVideoInfo extends NSObject { + //region constants + static const String name__ = 'TXVideoInfo'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXVideoInfo', {'init': init}); + final object = TXVideoInfo()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXVideoInfo', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXVideoInfo()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + Future get_coverImage() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_coverImage", {'__this__': this}); + return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'); + } + + Future get_duration() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_duration", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_fileSize() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_fileSize", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_fps() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_fps", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_bitrate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_bitrate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_audioSampleRate() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_audioSampleRate", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_width() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_width", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_height() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_height", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + Future get_angle() async { + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_angle", {'__this__': this}); + return __result__ == null ? null : (__result__); + } + + //endregion + + //region setters + Future set_coverImage(UIImage coverImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_coverImage', {'__this__': this, "coverImage": coverImage}); + + + } + + Future set_duration(double duration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_duration', {'__this__': this, "duration": duration}); + + + } + + Future set_fileSize(int fileSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_fileSize', {'__this__': this, "fileSize": fileSize}); + + + } + + Future set_fps(double fps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_fps', {'__this__': this, "fps": fps}); + + + } + + Future set_bitrate(int bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_bitrate', {'__this__': this, "bitrate": bitrate}); + + + } + + Future set_audioSampleRate(int audioSampleRate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_audioSampleRate', {'__this__': this, "audioSampleRate": audioSampleRate}); + + + } + + Future set_width(int width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_width', {'__this__': this, "width": width}); + + + } + + Future set_height(int height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_height', {'__this__': this, "height": height}); + + + } + + Future set_angle(int angle) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfo::set_angle', {'__this__': this, "angle": angle}); + + + } + + //endregion + + //region methods + + //endregion +} + +extension TXVideoInfo_Batch on List { + //region getters + Future> get_coverImage_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_coverImage_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + Future> get_duration_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_fileSize_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_fileSize_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_fps_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_fps_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_bitrate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_bitrate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_audioSampleRate_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_audioSampleRate_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_width_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_width_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_height_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_height_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + Future> get_angle_batch() async { + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXVideoInfo::get_angle_batch", [for (final __item__ in this) {'__this__': __item__}]); + + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + + //endregion + + //region setters + Future set_coverImage_batch(List coverImage) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_coverImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "coverImage": coverImage[__i__]}]); + + + } + + Future set_duration_batch(List duration) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]); + + + } + + Future set_fileSize_batch(List fileSize) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_fileSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "fileSize": fileSize[__i__]}]); + + + } + + Future set_fps_batch(List fps) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_fps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "fps": fps[__i__]}]); + + + } + + Future set_bitrate_batch(List bitrate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_bitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bitrate": bitrate[__i__]}]); + + + } + + Future set_audioSampleRate_batch(List audioSampleRate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_audioSampleRate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "audioSampleRate": audioSampleRate[__i__]}]); + + + } + + Future set_width_batch(List width) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_width_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "width": width[__i__]}]); + + + } + + Future set_height_batch(List height) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_height_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "height": height[__i__]}]); + + + } + + Future set_angle_batch(List angle) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXVideoInfo::set_angle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "angle": angle[__i__]}]); + + + } + + //endregion + + //region methods + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoInfoReader.g.dart b/lib/src/ios/TXVideoInfoReader.g.dart new file mode 100644 index 0000000..40c5020 --- /dev/null +++ b/lib/src/ios/TXVideoInfoReader.g.dart @@ -0,0 +1,191 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXVideoInfoReader extends NSObject { + //region constants + static const String name__ = 'TXVideoInfoReader'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXVideoInfoReader', {'init': init}); + final object = TXVideoInfoReader()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXVideoInfoReader', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXVideoInfoReader()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future getVideoInfo(String videoPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoInfoReader::getVideoInfo([\'videoPath\':$videoPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfoReader::getVideoInfo', {"videoPath": videoPath}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = TXVideoInfo()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + static Future getSampleImages_videoPath_progress(int count, String videoPath, bool sampleProcess(int number, UIImage image)) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoInfoReader::getSampleImages([\'count\':$count, \'videoPath\':$videoPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfoReader::getSampleImages_videoPath_progress', {"count": count, "videoPath": videoPath}); + + + // handle native call + MethodChannel('sampleProcess::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::sampleProcess::sampleProcess': + // print log + if (fluttifyLogEnabled) { + + } + + // handle the native call + if (sampleProcess != null) sampleProcess(args['number'], TypeOpTencentLiveFluttifyIOS((args['image'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + static Future getSampleImage_videoPath(double time, String videoPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoInfoReader::getSampleImage([\'time\':$time, \'videoPath\':$videoPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfoReader::getSampleImage_videoPath', {"time": time, "videoPath": videoPath}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + //endregion +} + +extension TXVideoInfoReader_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + static Future> getVideoInfo_batch(List videoPath) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfoReader::getVideoInfo_batch', [for (int __i__ = 0; __i__ < videoPath.length; __i__++) {"videoPath": videoPath[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => TXVideoInfo()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + static Future> getSampleImage_videoPath_batch(List time, List videoPath) async { + if (time.length != videoPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoInfoReader::getSampleImage_videoPath_batch', [for (int __i__ = 0; __i__ < time.length; __i__++) {"time": time[__i__], "videoPath": videoPath[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoJoiner.g.dart b/lib/src/ios/TXVideoJoiner.g.dart new file mode 100644 index 0000000..159697b --- /dev/null +++ b/lib/src/ios/TXVideoJoiner.g.dart @@ -0,0 +1,554 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +class TXVideoJoiner extends NSObject { + //region constants + static const String name__ = 'TXVideoJoiner'; + + + //endregion + + //region creators + static Future create__({ bool init = true /* ios only */ }) async { + final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXVideoJoiner', {'init': init}); + final object = TXVideoJoiner()..refId = refId..tag__ = 'tencent_live_fluttify'; + return object; + } + + static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { + if (false) { + return Future.error('all args must have same length!'); + } + final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXVideoJoiner', {'length': length, 'init': init}); + + final List typedResult = resultBatch.map((result) => TXVideoJoiner()..refId = result..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + + //endregion + + //region getters + + //endregion + + //region setters + Future set_joinerDelegate(TXVideoJoinerListener joinerDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::set_joinerDelegate', {'__this__': this, }); + + MethodChannel('TXVideoJoinerListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoJoinerListener::onJoinProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onJoinProgress([\'progress\':${args['progress']}])'); + } + + // handle the native call + joinerDelegate?.onJoinProgress(args['progress']); + break; + case 'Callback::TXVideoJoinerListener::onJoinComplete': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onJoinComplete([\'result\':${args['result']}])'); + } + + // handle the native call + joinerDelegate?.onJoinComplete(TypeOpTencentLiveFluttifyIOS((args['result'] as Object))?.as__()); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + Future set_previewDelegate(TXVideoPreviewListener previewDelegate) async { + await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::set_previewDelegate', {'__this__': this, }); + + MethodChannel('TXVideoPreviewListener::Callback', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))) + .setMethodCallHandler((methodCall) async { + try { + final args = methodCall.arguments as Map; + switch (methodCall.method) { + case 'Callback::TXVideoPreviewListener::onPreviewProgress': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreviewProgress([\'time\':${args['time']}])'); + } + + // handle the native call + previewDelegate?.onPreviewProgress(args['time']); + break; + case 'Callback::TXVideoPreviewListener::onPreviewFinished': + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart-callback: onPreviewFinished([])'); + } + + // handle the native call + previewDelegate?.onPreviewFinished(); + break; + default: + break; + } + } catch (e) { + debugPrint(e); + throw e; + } + }); + } + + //endregion + + //region methods + + Future initWithPreview(TXPreviewParam param) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::initWithPreview([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::initWithPreview', {"param": param, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = TXVideoJoiner()..refId = __result__..tag__ = 'tencent_live_fluttify'; + return __return__; + } + } + + + Future setVideoPathList(List videoPathList) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::setVideoPathList([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::setVideoPathList', {"videoPathList": videoPathList, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future setVideoVolumes(List volumes) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::setVideoVolumes([\'volumes\':$volumes])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::setVideoVolumes', {"volumes": volumes, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future startPlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::startPlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::startPlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future pausePlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::pausePlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::pausePlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future resumePlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::resumePlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::resumePlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future stopPlay() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::stopPlay([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::stopPlay', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future joinVideo_videoOutputPath(TXVideoCompressed videoCompressed, String videoOutputPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::joinVideo([\'videoOutputPath\':$videoOutputPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::joinVideo_videoOutputPath', {"videoCompressed": videoCompressed.toValue(), "videoOutputPath": videoOutputPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future splitJoinVideo_videoOutputPath(TXVideoCompressed videoCompressed, String videoOutputPath) async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::splitJoinVideo([\'videoOutputPath\':$videoOutputPath])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::splitJoinVideo_videoOutputPath', {"videoCompressed": videoCompressed.toValue(), "videoOutputPath": videoOutputPath, "__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + + Future cancelJoin() async { + // print log + if (fluttifyLogEnabled) { + debugPrint('fluttify-dart: TXVideoJoiner@$refId::cancelJoin([])'); + } + + // invoke native method + final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::cancelJoin', {"__this__": this}); + + + // handle native call + + + // convert native result to dart side object + if (__result__ == null) { + return null; + } else { + final __return__ = __result__; + return __return__; + } + } + + //endregion +} + +extension TXVideoJoiner_Batch on List { + //region getters + + //endregion + + //region setters + + //endregion + + //region methods + + Future> initWithPreview_batch(List param) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::initWithPreview_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"param": param[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => TXVideoJoiner()..refId = __result__..tag__ = 'tencent_live_fluttify').toList(); + return typedResult; + } + } + + + Future> setVideoPathList_batch(List> videoPathList) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::setVideoPathList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoPathList": videoPathList[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> setVideoVolumes_batch(List> volumes) async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::setVideoVolumes_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"volumes": volumes[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> startPlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::startPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> pausePlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::pausePlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> resumePlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::resumePlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> stopPlay_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::stopPlay_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> joinVideo_videoOutputPath_batch(List videoCompressed, List videoOutputPath) async { + if (videoCompressed.length != videoOutputPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::joinVideo_videoOutputPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoCompressed": videoCompressed[__i__].toValue(), "videoOutputPath": videoOutputPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> splitJoinVideo_videoOutputPath_batch(List videoCompressed, List videoOutputPath) async { + if (videoCompressed.length != videoOutputPath.length) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::splitJoinVideo_videoOutputPath_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"videoCompressed": videoCompressed[__i__].toValue(), "videoOutputPath": videoOutputPath[__i__], "__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + + Future> cancelJoin_batch() async { + if (false) { + return Future.error('all args must have same length!'); + } + + // invoke native method + final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXVideoJoiner::cancelJoin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); + + + // convert native result to dart side object + if (resultBatch == null) { + return null; + } else { + final typedResult = (resultBatch as List).cast().map((__result__) => __result__).toList(); + return typedResult; + } + } + + //endregion +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoJoinerListener.g.dart b/lib/src/ios/TXVideoJoinerListener.g.dart new file mode 100644 index 0000000..c74af21 --- /dev/null +++ b/lib/src/ios/TXVideoJoinerListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXVideoJoinerListener on NSObject { + + + + + + + + + @mustCallSuper + Future onJoinProgress(double progress) {} + + @mustCallSuper + Future onJoinComplete(TXJoinerResult result) {} + +} + diff --git a/lib/src/ios/TXVideoPreviewListener.g.dart b/lib/src/ios/TXVideoPreviewListener.g.dart new file mode 100644 index 0000000..9f52505 --- /dev/null +++ b/lib/src/ios/TXVideoPreviewListener.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + + + +mixin TXVideoPreviewListener on NSObject { + + + + + + + + + @mustCallSuper + Future onPreviewProgress(double time) {} + + @mustCallSuper + Future onPreviewFinished() {} + +} + diff --git a/lib/src/ios/TXVideoQuality.g.dart b/lib/src/ios/TXVideoQuality.g.dart new file mode 100644 index 0000000..a7c7627 --- /dev/null +++ b/lib/src/ios/TXVideoQuality.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoQuality { + VIDEO_QUALITY_LOW /* 0 */, + VIDEO_QUALITY_MEDIUM /* 1 */, + VIDEO_QUALITY_HIGH /* 2 */ +} + +extension TXVideoQualityToX on TXVideoQuality { + int toValue() { + switch (this) { + case TXVideoQuality.VIDEO_QUALITY_LOW: return 0; + case TXVideoQuality.VIDEO_QUALITY_MEDIUM: return 1; + case TXVideoQuality.VIDEO_QUALITY_HIGH: return 2; + default: return 0; + } + } +} + +extension TXVideoQualityFromX on int { + TXVideoQuality toTXVideoQuality() { + switch (this) { + case 0: return TXVideoQuality.VIDEO_QUALITY_LOW; + case 1: return TXVideoQuality.VIDEO_QUALITY_MEDIUM; + case 2: return TXVideoQuality.VIDEO_QUALITY_HIGH; + default: return TXVideoQuality.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoRecordSpeed.g.dart b/lib/src/ios/TXVideoRecordSpeed.g.dart new file mode 100644 index 0000000..4d849f2 --- /dev/null +++ b/lib/src/ios/TXVideoRecordSpeed.g.dart @@ -0,0 +1,34 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoRecordSpeed { + VIDEO_RECORD_SPEED_SLOWEST /* null */, + VIDEO_RECORD_SPEED_SLOW /* null */, + VIDEO_RECORD_SPEED_NOMAL /* null */, + VIDEO_RECORD_SPEED_FAST /* null */, + VIDEO_RECORD_SPEED_FASTEST /* null */ +} + +extension TXVideoRecordSpeedToX on TXVideoRecordSpeed { + int toValue() { + switch (this) { + case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOWEST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOWEST.index + 0; + case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOW: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOW.index + 0; + case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_NOMAL: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_NOMAL.index + 0; + case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FAST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FAST.index + 0; + case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FASTEST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FASTEST.index + 0; + default: return 0; + } + } +} + +extension TXVideoRecordSpeedFromX on int { + TXVideoRecordSpeed toTXVideoRecordSpeed() { + switch (this) { + + default: return TXVideoRecordSpeed.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoRenderMode.g.dart b/lib/src/ios/TXVideoRenderMode.g.dart new file mode 100644 index 0000000..c1f0b33 --- /dev/null +++ b/lib/src/ios/TXVideoRenderMode.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoRenderMode { + VIDEO_RENDER_MODE_FULL_FILL_SCREEN /* 0 */, + VIDEO_RENDER_MODE_ADJUST_RESOLUTION /* 1 */ +} + +extension TXVideoRenderModeToX on TXVideoRenderMode { + int toValue() { + switch (this) { + case TXVideoRenderMode.VIDEO_RENDER_MODE_FULL_FILL_SCREEN: return 0; + case TXVideoRenderMode.VIDEO_RENDER_MODE_ADJUST_RESOLUTION: return 1; + default: return 0; + } + } +} + +extension TXVideoRenderModeFromX on int { + TXVideoRenderMode toTXVideoRenderMode() { + switch (this) { + case 0: return TXVideoRenderMode.VIDEO_RENDER_MODE_FULL_FILL_SCREEN; + case 1: return TXVideoRenderMode.VIDEO_RENDER_MODE_ADJUST_RESOLUTION; + default: return TXVideoRenderMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoResolution.g.dart b/lib/src/ios/TXVideoResolution.g.dart new file mode 100644 index 0000000..2427ed7 --- /dev/null +++ b/lib/src/ios/TXVideoResolution.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoResolution { + VIDEO_RESOLUTION_360_640 /* 0 */, + VIDEO_RESOLUTION_540_960 /* 1 */, + VIDEO_RESOLUTION_720_1280 /* 2 */, + VIDEO_RESOLUTION_1080_1920 /* 3 */ +} + +extension TXVideoResolutionToX on TXVideoResolution { + int toValue() { + switch (this) { + case TXVideoResolution.VIDEO_RESOLUTION_360_640: return 0; + case TXVideoResolution.VIDEO_RESOLUTION_540_960: return 1; + case TXVideoResolution.VIDEO_RESOLUTION_720_1280: return 2; + case TXVideoResolution.VIDEO_RESOLUTION_1080_1920: return 3; + default: return 0; + } + } +} + +extension TXVideoResolutionFromX on int { + TXVideoResolution toTXVideoResolution() { + switch (this) { + case 0: return TXVideoResolution.VIDEO_RESOLUTION_360_640; + case 1: return TXVideoResolution.VIDEO_RESOLUTION_540_960; + case 2: return TXVideoResolution.VIDEO_RESOLUTION_720_1280; + case 3: return TXVideoResolution.VIDEO_RESOLUTION_1080_1920; + default: return TXVideoResolution.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoReverbType.g.dart b/lib/src/ios/TXVideoReverbType.g.dart new file mode 100644 index 0000000..4e7ac17 --- /dev/null +++ b/lib/src/ios/TXVideoReverbType.g.dart @@ -0,0 +1,47 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoReverbType { + VIDOE_REVERB_TYPE_0 /* 0 */, + VIDOE_REVERB_TYPE_1 /* 1 */, + VIDOE_REVERB_TYPE_2 /* 2 */, + VIDOE_REVERB_TYPE_3 /* 3 */, + VIDOE_REVERB_TYPE_4 /* 4 */, + VIDOE_REVERB_TYPE_5 /* 5 */, + VIDOE_REVERB_TYPE_6 /* 6 */, + VIDOE_REVERB_TYPE_7 /* 7 */ +} + +extension TXVideoReverbTypeToX on TXVideoReverbType { + int toValue() { + switch (this) { + case TXVideoReverbType.VIDOE_REVERB_TYPE_0: return 0; + case TXVideoReverbType.VIDOE_REVERB_TYPE_1: return 1; + case TXVideoReverbType.VIDOE_REVERB_TYPE_2: return 2; + case TXVideoReverbType.VIDOE_REVERB_TYPE_3: return 3; + case TXVideoReverbType.VIDOE_REVERB_TYPE_4: return 4; + case TXVideoReverbType.VIDOE_REVERB_TYPE_5: return 5; + case TXVideoReverbType.VIDOE_REVERB_TYPE_6: return 6; + case TXVideoReverbType.VIDOE_REVERB_TYPE_7: return 7; + default: return 0; + } + } +} + +extension TXVideoReverbTypeFromX on int { + TXVideoReverbType toTXVideoReverbType() { + switch (this) { + case 0: return TXVideoReverbType.VIDOE_REVERB_TYPE_0; + case 1: return TXVideoReverbType.VIDOE_REVERB_TYPE_1; + case 2: return TXVideoReverbType.VIDOE_REVERB_TYPE_2; + case 3: return TXVideoReverbType.VIDOE_REVERB_TYPE_3; + case 4: return TXVideoReverbType.VIDOE_REVERB_TYPE_4; + case 5: return TXVideoReverbType.VIDOE_REVERB_TYPE_5; + case 6: return TXVideoReverbType.VIDOE_REVERB_TYPE_6; + case 7: return TXVideoReverbType.VIDOE_REVERB_TYPE_7; + default: return TXVideoReverbType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoType.g.dart b/lib/src/ios/TXVideoType.g.dart new file mode 100644 index 0000000..1a9635c --- /dev/null +++ b/lib/src/ios/TXVideoType.g.dart @@ -0,0 +1,41 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoType { + VIDEO_TYPE_420SP /* 1 */, + VIDEO_TYPE_420YpCbCr /* 2 */, + VIDEO_TYPE_420P /* 3 */, + VIDEO_TYPE_BGRA8888 /* 4 */, + VIDEO_TYPE_RGBA8888 /* 5 */, + VIDEO_TYPE_NV12 /* 6 */ +} + +extension TXVideoTypeToX on TXVideoType { + int toValue() { + switch (this) { + case TXVideoType.VIDEO_TYPE_420SP: return 1; + case TXVideoType.VIDEO_TYPE_420YpCbCr: return 2; + case TXVideoType.VIDEO_TYPE_420P: return 3; + case TXVideoType.VIDEO_TYPE_BGRA8888: return 4; + case TXVideoType.VIDEO_TYPE_RGBA8888: return 5; + case TXVideoType.VIDEO_TYPE_NV12: return 6; + default: return 0; + } + } +} + +extension TXVideoTypeFromX on int { + TXVideoType toTXVideoType() { + switch (this) { + case 1: return TXVideoType.VIDEO_TYPE_420SP; + case 2: return TXVideoType.VIDEO_TYPE_420YpCbCr; + case 3: return TXVideoType.VIDEO_TYPE_420P; + case 4: return TXVideoType.VIDEO_TYPE_BGRA8888; + case 5: return TXVideoType.VIDEO_TYPE_RGBA8888; + case 6: return TXVideoType.VIDEO_TYPE_NV12; + default: return TXVideoType.values[this + 1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVideoVoiceChangerType.g.dart b/lib/src/ios/TXVideoVoiceChangerType.g.dart new file mode 100644 index 0000000..5ddcfa7 --- /dev/null +++ b/lib/src/ios/TXVideoVoiceChangerType.g.dart @@ -0,0 +1,59 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVideoVoiceChangerType { + VIDOE_VOICECHANGER_TYPE_0 /* 0 */, + VIDOE_VOICECHANGER_TYPE_1 /* 1 */, + VIDOE_VOICECHANGER_TYPE_2 /* 2 */, + VIDOE_VOICECHANGER_TYPE_3 /* 3 */, + VIDOE_VOICECHANGER_TYPE_4 /* 4 */, + VIDOE_VOICECHANGER_TYPE_5 /* 5 */, + VIDOE_VOICECHANGER_TYPE_6 /* 6 */, + VIDOE_VOICECHANGER_TYPE_7 /* 7 */, + VIDOE_VOICECHANGER_TYPE_8 /* 8 */, + VIDOE_VOICECHANGER_TYPE_9 /* 9 */, + VIDOE_VOICECHANGER_TYPE_10 /* 10 */, + VIDOE_VOICECHANGER_TYPE_11 /* 11 */ +} + +extension TXVideoVoiceChangerTypeToX on TXVideoVoiceChangerType { + int toValue() { + switch (this) { + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_0: return 0; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_1: return 1; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_2: return 2; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_3: return 3; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_4: return 4; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_5: return 5; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_6: return 6; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_7: return 7; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_8: return 8; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_9: return 9; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_10: return 10; + case TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_11: return 11; + default: return 0; + } + } +} + +extension TXVideoVoiceChangerTypeFromX on int { + TXVideoVoiceChangerType toTXVideoVoiceChangerType() { + switch (this) { + case 0: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_0; + case 1: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_1; + case 2: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_2; + case 3: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_3; + case 4: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_4; + case 5: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_5; + case 6: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_6; + case 7: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_7; + case 8: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_8; + case 9: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_9; + case 10: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_10; + case 11: return TXVideoVoiceChangerType.VIDOE_VOICECHANGER_TYPE_11; + default: return TXVideoVoiceChangerType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TXVoiceChangerType.g.dart b/lib/src/ios/TXVoiceChangerType.g.dart new file mode 100644 index 0000000..04966ef --- /dev/null +++ b/lib/src/ios/TXVoiceChangerType.g.dart @@ -0,0 +1,59 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TXVoiceChangerType { + VOICECHANGER_TYPE_0 /* 0 */, + VOICECHANGER_TYPE_1 /* 1 */, + VOICECHANGER_TYPE_2 /* 2 */, + VOICECHANGER_TYPE_3 /* 3 */, + VOICECHANGER_TYPE_4 /* 4 */, + VOICECHANGER_TYPE_5 /* 5 */, + VOICECHANGER_TYPE_6 /* 6 */, + VOICECHANGER_TYPE_7 /* 7 */, + VOICECHANGER_TYPE_8 /* 8 */, + VOICECHANGER_TYPE_9 /* 9 */, + VOICECHANGER_TYPE_10 /* 10 */, + VOICECHANGER_TYPE_11 /* 11 */ +} + +extension TXVoiceChangerTypeToX on TXVoiceChangerType { + int toValue() { + switch (this) { + case TXVoiceChangerType.VOICECHANGER_TYPE_0: return 0; + case TXVoiceChangerType.VOICECHANGER_TYPE_1: return 1; + case TXVoiceChangerType.VOICECHANGER_TYPE_2: return 2; + case TXVoiceChangerType.VOICECHANGER_TYPE_3: return 3; + case TXVoiceChangerType.VOICECHANGER_TYPE_4: return 4; + case TXVoiceChangerType.VOICECHANGER_TYPE_5: return 5; + case TXVoiceChangerType.VOICECHANGER_TYPE_6: return 6; + case TXVoiceChangerType.VOICECHANGER_TYPE_7: return 7; + case TXVoiceChangerType.VOICECHANGER_TYPE_8: return 8; + case TXVoiceChangerType.VOICECHANGER_TYPE_9: return 9; + case TXVoiceChangerType.VOICECHANGER_TYPE_10: return 10; + case TXVoiceChangerType.VOICECHANGER_TYPE_11: return 11; + default: return 0; + } + } +} + +extension TXVoiceChangerTypeFromX on int { + TXVoiceChangerType toTXVoiceChangerType() { + switch (this) { + case 0: return TXVoiceChangerType.VOICECHANGER_TYPE_0; + case 1: return TXVoiceChangerType.VOICECHANGER_TYPE_1; + case 2: return TXVoiceChangerType.VOICECHANGER_TYPE_2; + case 3: return TXVoiceChangerType.VOICECHANGER_TYPE_3; + case 4: return TXVoiceChangerType.VOICECHANGER_TYPE_4; + case 5: return TXVoiceChangerType.VOICECHANGER_TYPE_5; + case 6: return TXVoiceChangerType.VOICECHANGER_TYPE_6; + case 7: return TXVoiceChangerType.VOICECHANGER_TYPE_7; + case 8: return TXVoiceChangerType.VOICECHANGER_TYPE_8; + case 9: return TXVoiceChangerType.VOICECHANGER_TYPE_9; + case 10: return TXVoiceChangerType.VOICECHANGER_TYPE_10; + case 11: return TXVoiceChangerType.VOICECHANGER_TYPE_11; + default: return TXVoiceChangerType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_PlayType.g.dart b/lib/src/ios/TX_Enum_PlayType.g.dart new file mode 100644 index 0000000..c4a5317 --- /dev/null +++ b/lib/src/ios/TX_Enum_PlayType.g.dart @@ -0,0 +1,44 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_PlayType { + PLAY_TYPE_LIVE_RTMP /* 0 */, + PLAY_TYPE_LIVE_FLV /* 1 */, + PLAY_TYPE_VOD_FLV /* 2 */, + PLAY_TYPE_VOD_HLS /* 3 */, + PLAY_TYPE_VOD_MP4 /* 4 */, + PLAY_TYPE_LIVE_RTMP_ACC /* 5 */, + PLAY_TYPE_LOCAL_VIDEO /* 6 */ +} + +extension TX_Enum_PlayTypeToX on TX_Enum_PlayType { + int toValue() { + switch (this) { + case TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP: return 0; + case TX_Enum_PlayType.PLAY_TYPE_LIVE_FLV: return 1; + case TX_Enum_PlayType.PLAY_TYPE_VOD_FLV: return 2; + case TX_Enum_PlayType.PLAY_TYPE_VOD_HLS: return 3; + case TX_Enum_PlayType.PLAY_TYPE_VOD_MP4: return 4; + case TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP_ACC: return 5; + case TX_Enum_PlayType.PLAY_TYPE_LOCAL_VIDEO: return 6; + default: return 0; + } + } +} + +extension TX_Enum_PlayTypeFromX on int { + TX_Enum_PlayType toTX_Enum_PlayType() { + switch (this) { + case 0: return TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP; + case 1: return TX_Enum_PlayType.PLAY_TYPE_LIVE_FLV; + case 2: return TX_Enum_PlayType.PLAY_TYPE_VOD_FLV; + case 3: return TX_Enum_PlayType.PLAY_TYPE_VOD_HLS; + case 4: return TX_Enum_PlayType.PLAY_TYPE_VOD_MP4; + case 5: return TX_Enum_PlayType.PLAY_TYPE_LIVE_RTMP_ACC; + case 6: return TX_Enum_PlayType.PLAY_TYPE_LOCAL_VIDEO; + default: return TX_Enum_PlayType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_PlayerType.g.dart b/lib/src/ios/TX_Enum_PlayerType.g.dart new file mode 100644 index 0000000..a6c3f99 --- /dev/null +++ b/lib/src/ios/TX_Enum_PlayerType.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_PlayerType { + PLAYER_FFPLAY /* 0 */, + PLAYER_AVPLAYER /* 1 */ +} + +extension TX_Enum_PlayerTypeToX on TX_Enum_PlayerType { + int toValue() { + switch (this) { + case TX_Enum_PlayerType.PLAYER_FFPLAY: return 0; + case TX_Enum_PlayerType.PLAYER_AVPLAYER: return 1; + default: return 0; + } + } +} + +extension TX_Enum_PlayerTypeFromX on int { + TX_Enum_PlayerType toTX_Enum_PlayerType() { + switch (this) { + case 0: return TX_Enum_PlayerType.PLAYER_FFPLAY; + case 1: return TX_Enum_PlayerType.PLAYER_AVPLAYER; + default: return TX_Enum_PlayerType.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_AudioSampleRate.g.dart b/lib/src/ios/TX_Enum_Type_AudioSampleRate.g.dart new file mode 100644 index 0000000..de88349 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_AudioSampleRate.g.dart @@ -0,0 +1,38 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_AudioSampleRate { + AUDIO_SAMPLE_RATE_8000 /* 0 */, + AUDIO_SAMPLE_RATE_16000 /* 1 */, + AUDIO_SAMPLE_RATE_32000 /* 2 */, + AUDIO_SAMPLE_RATE_44100 /* 3 */, + AUDIO_SAMPLE_RATE_48000 /* 4 */ +} + +extension TX_Enum_Type_AudioSampleRateToX on TX_Enum_Type_AudioSampleRate { + int toValue() { + switch (this) { + case TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_8000: return 0; + case TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_16000: return 1; + case TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_32000: return 2; + case TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_44100: return 3; + case TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_48000: return 4; + default: return 0; + } + } +} + +extension TX_Enum_Type_AudioSampleRateFromX on int { + TX_Enum_Type_AudioSampleRate toTX_Enum_Type_AudioSampleRate() { + switch (this) { + case 0: return TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_8000; + case 1: return TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_16000; + case 2: return TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_32000; + case 3: return TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_44100; + case 4: return TX_Enum_Type_AudioSampleRate.AUDIO_SAMPLE_RATE_48000; + default: return TX_Enum_Type_AudioSampleRate.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_AutoAdjustStrategy.g.dart b/lib/src/ios/TX_Enum_Type_AutoAdjustStrategy.g.dart new file mode 100644 index 0000000..febd19f --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_AutoAdjustStrategy.g.dart @@ -0,0 +1,53 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_AutoAdjustStrategy { + AUTO_ADJUST_NONE /* -1 */, + AUTO_ADJUST_LIVEPUSH_STRATEGY /* 0 */, + AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY /* 1 */, + AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY /* 5 */, + AUTO_ADJUST_BITRATE_STRATEGY_1 /* 0 */, + AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1 /* 1 */, + AUTO_ADJUST_BITRATE_STRATEGY_2 /* 2 */, + AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2 /* 3 */, + AUTO_ADJUST_REALTIME_BITRATE_STRATEGY /* 4 */, + AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY /* 5 */ +} + +extension TX_Enum_Type_AutoAdjustStrategyToX on TX_Enum_Type_AutoAdjustStrategy { + int toValue() { + switch (this) { + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_NONE: return -1; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_STRATEGY: return 0; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY: return 1; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY: return 5; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_1: return 0; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1: return 1; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_2: return 2; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2: return 3; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_STRATEGY: return 4; + case TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY: return 5; + default: return 0; + } + } +} + +extension TX_Enum_Type_AutoAdjustStrategyFromX on int { + TX_Enum_Type_AutoAdjustStrategy toTX_Enum_Type_AutoAdjustStrategy() { + switch (this) { + case -1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_NONE; + case 0: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_STRATEGY; + case 1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_LIVEPUSH_RESOLUTION_STRATEGY; + case 5: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_VIDEOCHAT_STRATEGY; + case 0: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_1; + case 1: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_1; + case 2: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_STRATEGY_2; + case 3: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_BITRATE_RESOLUTION_STRATEGY_2; + case 4: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_STRATEGY; + case 5: return TX_Enum_Type_AutoAdjustStrategy.AUTO_ADJUST_REALTIME_BITRATE_RESOLUTION_STRATEGY; + default: return TX_Enum_Type_AutoAdjustStrategy.values[this + -1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_BeautyFilterDepth.g.dart b/lib/src/ios/TX_Enum_Type_BeautyFilterDepth.g.dart new file mode 100644 index 0000000..c590db9 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_BeautyFilterDepth.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_BeautyFilterDepth { + BEAUTY_FILTER_DEPTH_CLOSE /* 0 */, + BEAUTY_FILTER_DEPTH_MAX /* 9 */ +} + +extension TX_Enum_Type_BeautyFilterDepthToX on TX_Enum_Type_BeautyFilterDepth { + int toValue() { + switch (this) { + case TX_Enum_Type_BeautyFilterDepth.BEAUTY_FILTER_DEPTH_CLOSE: return 0; + case TX_Enum_Type_BeautyFilterDepth.BEAUTY_FILTER_DEPTH_MAX: return 9; + default: return 0; + } + } +} + +extension TX_Enum_Type_BeautyFilterDepthFromX on int { + TX_Enum_Type_BeautyFilterDepth toTX_Enum_Type_BeautyFilterDepth() { + switch (this) { + case 0: return TX_Enum_Type_BeautyFilterDepth.BEAUTY_FILTER_DEPTH_CLOSE; + case 9: return TX_Enum_Type_BeautyFilterDepth.BEAUTY_FILTER_DEPTH_MAX; + default: return TX_Enum_Type_BeautyFilterDepth.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_BeautyStyle.g.dart b/lib/src/ios/TX_Enum_Type_BeautyStyle.g.dart new file mode 100644 index 0000000..31b679f --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_BeautyStyle.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_BeautyStyle { + BEAUTY_STYLE_SMOOTH /* 0 */, + BEAUTY_STYLE_NATURE /* 1 */, + BEAUTY_STYLE_PITU /* 2 */ +} + +extension TX_Enum_Type_BeautyStyleToX on TX_Enum_Type_BeautyStyle { + int toValue() { + switch (this) { + case TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_SMOOTH: return 0; + case TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_NATURE: return 1; + case TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_PITU: return 2; + default: return 0; + } + } +} + +extension TX_Enum_Type_BeautyStyleFromX on int { + TX_Enum_Type_BeautyStyle toTX_Enum_Type_BeautyStyle() { + switch (this) { + case 0: return TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_SMOOTH; + case 1: return TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_NATURE; + case 2: return TX_Enum_Type_BeautyStyle.BEAUTY_STYLE_PITU; + default: return TX_Enum_Type_BeautyStyle.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_HomeOrientation.g.dart b/lib/src/ios/TX_Enum_Type_HomeOrientation.g.dart new file mode 100644 index 0000000..12c90ef --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_HomeOrientation.g.dart @@ -0,0 +1,35 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_HomeOrientation { + HOME_ORIENTATION_RIGHT /* 0 */, + HOME_ORIENTATION_DOWN /* 1 */, + HOME_ORIENTATION_LEFT /* 2 */, + HOME_ORIENTATION_UP /* 3 */ +} + +extension TX_Enum_Type_HomeOrientationToX on TX_Enum_Type_HomeOrientation { + int toValue() { + switch (this) { + case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_RIGHT: return 0; + case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_DOWN: return 1; + case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_LEFT: return 2; + case TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_UP: return 3; + default: return 0; + } + } +} + +extension TX_Enum_Type_HomeOrientationFromX on int { + TX_Enum_Type_HomeOrientation toTX_Enum_Type_HomeOrientation() { + switch (this) { + case 0: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_RIGHT; + case 1: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_DOWN; + case 2: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_LEFT; + case 3: return TX_Enum_Type_HomeOrientation.HOME_ORIENTATION_UP; + default: return TX_Enum_Type_HomeOrientation.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_LogLevel.g.dart b/lib/src/ios/TX_Enum_Type_LogLevel.g.dart new file mode 100644 index 0000000..36548e3 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_LogLevel.g.dart @@ -0,0 +1,44 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_LogLevel { + LOGLEVEL_VERBOSE /* 0 */, + LOGLEVEL_DEBUG /* 1 */, + LOGLEVEL_INFO /* 2 */, + LOGLEVEL_WARN /* 3 */, + LOGLEVEL_ERROR /* 4 */, + LOGLEVEL_FATAL /* 5 */, + LOGLEVEL_NULL /* 6 */ +} + +extension TX_Enum_Type_LogLevelToX on TX_Enum_Type_LogLevel { + int toValue() { + switch (this) { + case TX_Enum_Type_LogLevel.LOGLEVEL_VERBOSE: return 0; + case TX_Enum_Type_LogLevel.LOGLEVEL_DEBUG: return 1; + case TX_Enum_Type_LogLevel.LOGLEVEL_INFO: return 2; + case TX_Enum_Type_LogLevel.LOGLEVEL_WARN: return 3; + case TX_Enum_Type_LogLevel.LOGLEVEL_ERROR: return 4; + case TX_Enum_Type_LogLevel.LOGLEVEL_FATAL: return 5; + case TX_Enum_Type_LogLevel.LOGLEVEL_NULL: return 6; + default: return 0; + } + } +} + +extension TX_Enum_Type_LogLevelFromX on int { + TX_Enum_Type_LogLevel toTX_Enum_Type_LogLevel() { + switch (this) { + case 0: return TX_Enum_Type_LogLevel.LOGLEVEL_VERBOSE; + case 1: return TX_Enum_Type_LogLevel.LOGLEVEL_DEBUG; + case 2: return TX_Enum_Type_LogLevel.LOGLEVEL_INFO; + case 3: return TX_Enum_Type_LogLevel.LOGLEVEL_WARN; + case 4: return TX_Enum_Type_LogLevel.LOGLEVEL_ERROR; + case 5: return TX_Enum_Type_LogLevel.LOGLEVEL_FATAL; + case 6: return TX_Enum_Type_LogLevel.LOGLEVEL_NULL; + default: return TX_Enum_Type_LogLevel.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_RTMPChannel.g.dart b/lib/src/ios/TX_Enum_Type_RTMPChannel.g.dart new file mode 100644 index 0000000..804451f --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_RTMPChannel.g.dart @@ -0,0 +1,32 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_RTMPChannel { + RTMP_CHANNEL_TYPE_AUTO /* 0 */, + RTMP_CHANNEL_TYPE_STANDARD /* 1 */, + RTMP_CHANNEL_TYPE_PRIVATE /* 2 */ +} + +extension TX_Enum_Type_RTMPChannelToX on TX_Enum_Type_RTMPChannel { + int toValue() { + switch (this) { + case TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_AUTO: return 0; + case TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_STANDARD: return 1; + case TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_PRIVATE: return 2; + default: return 0; + } + } +} + +extension TX_Enum_Type_RTMPChannelFromX on int { + TX_Enum_Type_RTMPChannel toTX_Enum_Type_RTMPChannel() { + switch (this) { + case 0: return TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_AUTO; + case 1: return TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_STANDARD; + case 2: return TX_Enum_Type_RTMPChannel.RTMP_CHANNEL_TYPE_PRIVATE; + default: return TX_Enum_Type_RTMPChannel.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_RenderMode.g.dart b/lib/src/ios/TX_Enum_Type_RenderMode.g.dart new file mode 100644 index 0000000..e929ca2 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_RenderMode.g.dart @@ -0,0 +1,29 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_RenderMode { + RENDER_MODE_FILL_SCREEN /* 0 */, + RENDER_MODE_FILL_EDGE /* 1 */ +} + +extension TX_Enum_Type_RenderModeToX on TX_Enum_Type_RenderMode { + int toValue() { + switch (this) { + case TX_Enum_Type_RenderMode.RENDER_MODE_FILL_SCREEN: return 0; + case TX_Enum_Type_RenderMode.RENDER_MODE_FILL_EDGE: return 1; + default: return 0; + } + } +} + +extension TX_Enum_Type_RenderModeFromX on int { + TX_Enum_Type_RenderMode toTX_Enum_Type_RenderMode() { + switch (this) { + case 0: return TX_Enum_Type_RenderMode.RENDER_MODE_FILL_SCREEN; + case 1: return TX_Enum_Type_RenderMode.RENDER_MODE_FILL_EDGE; + default: return TX_Enum_Type_RenderMode.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_VideoQuality.g.dart b/lib/src/ios/TX_Enum_Type_VideoQuality.g.dart new file mode 100644 index 0000000..1876368 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_VideoQuality.g.dart @@ -0,0 +1,44 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_VideoQuality { + VIDEO_QUALITY_STANDARD_DEFINITION /* 1 */, + VIDEO_QUALITY_HIGH_DEFINITION /* 2 */, + VIDEO_QUALITY_SUPER_DEFINITION /* 3 */, + VIDEO_QUALITY_ULTRA_DEFINITION /* 7 */, + VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER /* 4 */, + VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER /* 5 */, + VIDEO_QUALITY_REALTIME_VIDEOCHAT /* 6 */ +} + +extension TX_Enum_Type_VideoQualityToX on TX_Enum_Type_VideoQuality { + int toValue() { + switch (this) { + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_STANDARD_DEFINITION: return 1; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION: return 2; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_SUPER_DEFINITION: return 3; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_ULTRA_DEFINITION: return 7; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER: return 4; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER: return 5; + case TX_Enum_Type_VideoQuality.VIDEO_QUALITY_REALTIME_VIDEOCHAT: return 6; + default: return 0; + } + } +} + +extension TX_Enum_Type_VideoQualityFromX on int { + TX_Enum_Type_VideoQuality toTX_Enum_Type_VideoQuality() { + switch (this) { + case 1: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_STANDARD_DEFINITION; + case 2: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_HIGH_DEFINITION; + case 3: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_SUPER_DEFINITION; + case 7: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_ULTRA_DEFINITION; + case 4: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_MAIN_PUBLISHER; + case 5: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_LINKMIC_SUB_PUBLISHER; + case 6: return TX_Enum_Type_VideoQuality.VIDEO_QUALITY_REALTIME_VIDEOCHAT; + default: return TX_Enum_Type_VideoQuality.values[this + 1]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/TX_Enum_Type_VideoResolution.g.dart b/lib/src/ios/TX_Enum_Type_VideoResolution.g.dart new file mode 100644 index 0000000..29f9053 --- /dev/null +++ b/lib/src/ios/TX_Enum_Type_VideoResolution.g.dart @@ -0,0 +1,89 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +enum TX_Enum_Type_VideoResolution { + VIDEO_RESOLUTION_TYPE_360_640 /* 0 */, + VIDEO_RESOLUTION_TYPE_540_960 /* 1 */, + VIDEO_RESOLUTION_TYPE_720_1280 /* 2 */, + VIDEO_RESOLUTION_TYPE_1080_1920 /* 30 */, + VIDEO_RESOLUTION_TYPE_640_360 /* 3 */, + VIDEO_RESOLUTION_TYPE_960_540 /* 4 */, + VIDEO_RESOLUTION_TYPE_1280_720 /* 5 */, + VIDEO_RESOLUTION_TYPE_1920_1080 /* 31 */, + VIDEO_RESOLUTION_TYPE_320_480 /* 6 */, + VIDEO_RESOLUTION_TYPE_180_320 /* 7 */, + VIDEO_RESOLUTION_TYPE_270_480 /* 8 */, + VIDEO_RESOLUTION_TYPE_320_180 /* 9 */, + VIDEO_RESOLUTION_TYPE_480_270 /* 10 */, + VIDEO_RESOLUTION_TYPE_240_320 /* 11 */, + VIDEO_RESOLUTION_TYPE_360_480 /* 12 */, + VIDEO_RESOLUTION_TYPE_480_640 /* 13 */, + VIDEO_RESOLUTION_TYPE_320_240 /* 14 */, + VIDEO_RESOLUTION_TYPE_480_360 /* 15 */, + VIDEO_RESOLUTION_TYPE_640_480 /* 16 */, + VIDEO_RESOLUTION_TYPE_480_480 /* 17 */, + VIDEO_RESOLUTION_TYPE_270_270 /* 18 */, + VIDEO_RESOLUTION_TYPE_160_160 /* 19 */ +} + +extension TX_Enum_Type_VideoResolutionToX on TX_Enum_Type_VideoResolution { + int toValue() { + switch (this) { + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_360_640: return 0; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_540_960: return 1; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_720_1280: return 2; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1080_1920: return 30; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_640_360: return 3; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_960_540: return 4; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1280_720: return 5; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1920_1080: return 31; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_480: return 6; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_180_320: return 7; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_270_480: return 8; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_180: return 9; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_270: return 10; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_240_320: return 11; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_360_480: return 12; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_640: return 13; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_240: return 14; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_360: return 15; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_640_480: return 16; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_480: return 17; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_270_270: return 18; + case TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_160_160: return 19; + default: return 0; + } + } +} + +extension TX_Enum_Type_VideoResolutionFromX on int { + TX_Enum_Type_VideoResolution toTX_Enum_Type_VideoResolution() { + switch (this) { + case 0: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_360_640; + case 1: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_540_960; + case 2: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_720_1280; + case 30: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1080_1920; + case 3: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_640_360; + case 4: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_960_540; + case 5: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1280_720; + case 31: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_1920_1080; + case 6: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_480; + case 7: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_180_320; + case 8: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_270_480; + case 9: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_180; + case 10: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_270; + case 11: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_240_320; + case 12: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_360_480; + case 13: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_640; + case 14: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_320_240; + case 15: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_360; + case 16: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_640_480; + case 17: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_480_480; + case 18: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_270_270; + case 19: return TX_Enum_Type_VideoResolution.VIDEO_RESOLUTION_TYPE_160_160; + default: return TX_Enum_Type_VideoResolution.values[this + 0]; + } + } +} \ No newline at end of file diff --git a/lib/src/ios/constants.g.dart b/lib/src/ios/constants.g.dart new file mode 100644 index 0000000..82d67cb --- /dev/null +++ b/lib/src/ios/constants.g.dart @@ -0,0 +1,6 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// +import 'package:flutter/services.dart'; + diff --git a/lib/src/ios/functions.g.dart b/lib/src/ios/functions.g.dart new file mode 100644 index 0000000..91aadbf --- /dev/null +++ b/lib/src/ios/functions.g.dart @@ -0,0 +1,14 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:typed_data'; + +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; +import 'package:tencent_live_fluttify/src/android/android.export.g.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + diff --git a/lib/src/ios/ios.export.g.dart b/lib/src/ios/ios.export.g.dart new file mode 100644 index 0000000..a6bdd5d --- /dev/null +++ b/lib/src/ios/ios.export.g.dart @@ -0,0 +1,91 @@ +export 'TXRecordResultCode.g.dart'; +export 'TXDownloadError.g.dart'; +export 'TXLivePlayer.g.dart'; +export 'TX_Enum_Type_VideoResolution.g.dart'; +export 'TX_Enum_PlayType.g.dart'; +export 'TX_Enum_Type_RTMPChannel.g.dart'; +export 'TXSubtitle.g.dart'; +export 'TXCAVRoomConfig.g.dart'; +export 'TXVideoType.g.dart'; +export 'TXVideoRecordSpeed.g.dart'; +export 'TXSystemAudioVolumeType.g.dart'; +export 'TXRepeat.g.dart'; +export 'TX_Enum_Type_BeautyStyle.g.dart'; +export 'TXLocalVideoMirrorType.g.dart'; +export 'TX_Enum_PlayerType.g.dart'; +export 'TXVideoPreviewListener.g.dart'; +export 'TXVideoCustomProcessDelegate.g.dart'; +export 'TXReverbType.g.dart'; +export 'TXCAVRoom.g.dart'; +export 'type_op.g.dart'; +export 'TX_Enum_Type_LogLevel.g.dart'; +export 'TXLiteAVWarning.g.dart'; +export 'TXVideoRenderMode.g.dart'; +export 'TXLiveRecordListener.g.dart'; +export 'TXVideoResolution.g.dart'; +export 'TXSpeedLevel.g.dart'; +export 'TXJoinerResultCode.g.dart'; +export 'TX_Enum_Type_HomeOrientation.g.dart'; +export 'TXBeautyManager.g.dart'; +export 'TXEAVRoomAuthBits.g.dart'; +export 'TXCAVRoomParam.g.dart'; +export 'TXLiveAudioSessionDelegate.g.dart'; +export 'TXLivePushConfig.g.dart'; +export 'constants.g.dart'; +export 'TXVideoGenerateListener.g.dart'; +export 'TXEAVRoomRenderMode.g.dart'; +export 'TXVideoInfoReader.g.dart'; +export 'TXLivePlayConfig.g.dart'; +export 'TXVideoInfo.g.dart'; +export 'TXVideoHomeOrientation.g.dart'; +export 'TXRecordResult.g.dart'; +export 'TXLiveBase.g.dart'; +export 'TXAudioCustomProcessDelegate.g.dart'; +export 'TXVideoVoiceChangerType.g.dart'; +export 'TXTransitionType.g.dart'; +export 'TXLiteAVEvent.g.dart'; +export 'TX_Enum_Type_RenderMode.g.dart'; +export 'TX_Enum_Type_VideoQuality.g.dart'; +export 'TXVideoReverbType.g.dart'; +export 'TXVoiceChangerType.g.dart'; +export 'TXAudioSampleRate.g.dart'; +export 'TXBitrateItem.g.dart'; +export 'TXEAVRoomEventID.g.dart'; +export 'TXLivePlayListener.g.dart'; +export 'TXLiveBaseDelegate.g.dart'; +export 'TXVideoBeautyStyle.g.dart'; +export 'functions.g.dart'; +export 'TXPlayerAuthParams.g.dart'; +export 'TXLivePushListener.g.dart'; +export 'TXAudioRouteType.g.dart'; +export 'TXGenerateResultCode.g.dart'; +export 'TXLivePush.g.dart'; +export 'TXAnimatedPaster.g.dart'; +export 'TXVideoJoiner.g.dart'; +export 'EventID.g.dart'; +export 'TXPreviewRenderMode.g.dart'; +export 'TX_Enum_Type_BeautyFilterDepth.g.dart'; +export 'TXVideoJoinerListener.g.dart'; +export 'TXAudioRawDataDelegate.g.dart'; +export 'TXGenerateResult.g.dart'; +export 'TXEAVRoomVideoAspect.g.dart'; +export 'TXVideoCustomProcessListener.g.dart'; +export 'TXPaster.g.dart'; +export 'TXVideoEditer.g.dart'; +export 'TXLiteAVError.g.dart'; +export 'TX_Enum_Type_AudioSampleRate.g.dart'; +export 'TXPreviewParam.g.dart'; +export 'TXImageSprite.g.dart'; +export 'TX_Enum_Type_AutoAdjustStrategy.g.dart'; +export 'TXBeautyStyle.g.dart'; +export 'TXVideoAspectRatio.g.dart'; +export 'TXJoinerResult.g.dart'; +export 'TXSpeed.g.dart'; +export 'TXCAVRoomListener.g.dart'; +export 'TXEAVRoomHomeOrientation.g.dart'; +export 'TXVideoEncodeMode.g.dart'; +export 'TXEAVRoomAudioMode.g.dart'; +export 'TXEffectType.g.dart'; +export 'TXVideoQuality.g.dart'; +export 'TXRecordType.g.dart'; +export 'TXVideoCompressed.g.dart'; diff --git a/lib/src/ios/type_op.g.dart b/lib/src/ios/type_op.g.dart new file mode 100644 index 0000000..f33f4ae --- /dev/null +++ b/lib/src/ios/type_op.g.dart @@ -0,0 +1,292 @@ +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast +////////////////////////////////////////////////////////// +// GENERATED BY FLUTTIFY. DO NOT EDIT IT. +////////////////////////////////////////////////////////// + +import 'dart:io'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart'; + +import 'package:foundation_fluttify/foundation_fluttify.dart'; + +// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import +extension TypeOpTencentLiveFluttifyIOS on Object { + // type check + Future is__() async { + final typeName = T.toString(); + if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map)$').hasMatch(typeName)) { + return this is T; + } + else if (T == TXLivePush) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXLivePush', {'__this__': this}); + return result; + } + else if (T == TXCAVRoom) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXCAVRoom', {'__this__': this}); + return result; + } + else if (T == TXImageSprite) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXImageSprite', {'__this__': this}); + return result; + } + else if (T == TXLiveBase) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXLiveBase', {'__this__': this}); + return result; + } + else if (T == TXLivePlayConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXLivePlayConfig', {'__this__': this}); + return result; + } + else if (T == TXCAVRoomConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXCAVRoomConfig', {'__this__': this}); + return result; + } + else if (T == TXVideoInfoReader) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXVideoInfoReader', {'__this__': this}); + return result; + } + else if (T == TXVideoEditer) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXVideoEditer', {'__this__': this}); + return result; + } + else if (T == TXVideoJoiner) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXVideoJoiner', {'__this__': this}); + return result; + } + else if (T == TXCAVRoomParam) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXCAVRoomParam', {'__this__': this}); + return result; + } + else if (T == TXBitrateItem) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXBitrateItem', {'__this__': this}); + return result; + } + else if (T == TXPlayerAuthParams) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXPlayerAuthParams', {'__this__': this}); + return result; + } + else if (T == TXLivePushConfig) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXLivePushConfig', {'__this__': this}); + return result; + } + else if (T == TXBeautyManager) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXBeautyManager', {'__this__': this}); + return result; + } + else if (T == TXLivePlayer) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXLivePlayer', {'__this__': this}); + return result; + } + else if (T == TXRecordResult) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXRecordResult', {'__this__': this}); + return result; + } + else if (T == TXVideoInfo) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXVideoInfo', {'__this__': this}); + return result; + } + else if (T == TXPreviewParam) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXPreviewParam', {'__this__': this}); + return result; + } + else if (T == TXSubtitle) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXSubtitle', {'__this__': this}); + return result; + } + else if (T == TXPaster) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXPaster', {'__this__': this}); + return result; + } + else if (T == TXAnimatedPaster) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXAnimatedPaster', {'__this__': this}); + return result; + } + else if (T == TXRepeat) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXRepeat', {'__this__': this}); + return result; + } + else if (T == TXSpeed) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXSpeed', {'__this__': this}); + return result; + } + else if (T == TXGenerateResult) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXGenerateResult', {'__this__': this}); + return result; + } + else if (T == TXJoinerResult) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfTXJoinerResult', {'__this__': this}); + return result; + } + else if (T == CGRect) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfCGRect', {'__this__': this}); + return result; + } + else if (T == CGPoint) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfCGPoint', {'__this__': this}); + return result; + } + else if (T == CGSize) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfCGSize', {'__this__': this}); + return result; + } + else if (T == UIEdgeInsets) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIEdgeInsets', {'__this__': this}); + return result; + } + else if (T == NSError) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfNSError', {'__this__': this}); + return result; + } + else if (T == UIView) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIView', {'__this__': this}); + return result; + } + else if (T == UIViewController) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIViewController', {'__this__': this}); + return result; + } + else if (T == UIControl) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIControl', {'__this__': this}); + return result; + } + else if (T == UIImage) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIImage', {'__this__': this}); + return result; + } + else if (T == UIColor) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfUIColor', {'__this__': this}); + return result; + } + else if (T == NSData) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfNSData', {'__this__': this}); + return result; + } + else if (T == NSOperation) { + final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfNSOperation', {'__this__': this}); + return result; + } + } + + // type cast + T as__() { + final typeName = T.toString(); + // jsonable 直接造型 返回 + if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map)$').hasMatch(typeName)) { + return this as T; + } + // 如果是Ref类的cast, 那么取其refId, 如果本身是refId, 那么直接使用(int) + else if (T == TXLivePush) { + return (TXLivePush()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXCAVRoom) { + return (TXCAVRoom()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXImageSprite) { + return (TXImageSprite()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXLiveBase) { + return (TXLiveBase()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXLivePlayConfig) { + return (TXLivePlayConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXCAVRoomConfig) { + return (TXCAVRoomConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXVideoInfoReader) { + return (TXVideoInfoReader()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXVideoEditer) { + return (TXVideoEditer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXVideoJoiner) { + return (TXVideoJoiner()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXCAVRoomParam) { + return (TXCAVRoomParam()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXBitrateItem) { + return (TXBitrateItem()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXPlayerAuthParams) { + return (TXPlayerAuthParams()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXLivePushConfig) { + return (TXLivePushConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXBeautyManager) { + return (TXBeautyManager()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXLivePlayer) { + return (TXLivePlayer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXRecordResult) { + return (TXRecordResult()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXVideoInfo) { + return (TXVideoInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXPreviewParam) { + return (TXPreviewParam()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXSubtitle) { + return (TXSubtitle()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXPaster) { + return (TXPaster()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXAnimatedPaster) { + return (TXAnimatedPaster()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXRepeat) { + return (TXRepeat()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXSpeed) { + return (TXSpeed()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXGenerateResult) { + return (TXGenerateResult()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == TXJoinerResult) { + return (TXJoinerResult()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == CGRect) { + return (CGRect()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == CGPoint) { + return (CGPoint()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == CGSize) { + return (CGSize()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIEdgeInsets) { + return (UIEdgeInsets()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == NSError) { + return (NSError()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIView) { + return (UIView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIViewController) { + return (UIViewController()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIControl) { + return (UIControl()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIImage) { + return (UIImage()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == UIColor) { + return (UIColor()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == NSData) { + return (NSData()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + else if (T == NSOperation) { + return (NSOperation()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T; + } + } +} \ No newline at end of file diff --git a/lib/tencent_live_fluttify.dart b/lib/tencent_live_fluttify.dart new file mode 100644 index 0000000..4db7e60 --- /dev/null +++ b/lib/tencent_live_fluttify.dart @@ -0,0 +1,5 @@ +export 'src/facade/cloud_video.widget.dart'; +export 'src/facade/enums.dart'; +export 'src/facade/live_player.dart'; +export 'src/facade/live_pusher.dart'; +export 'src/facade/tencent_live.dart'; diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..d8c61d4 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,31 @@ +name: tencent_live_fluttify +description: A `Tencent Live` flutter plugin, Powered by `Fluttify` engine. +version: 1.0.0 +author: yohom +homepage: https://fluttify.com +publish_to: none + +environment: + sdk: ">=2.6.0 <3.0.0" + flutter: ">=1.12.13 <2.0.0" + +dependencies: + flutter: + sdk: flutter + + foundation_fluttify: ^0.9.5 + +dev_dependencies: + flutter_test: + sdk: flutter + +flutter: + plugin: + platforms: + android: + package: com.fluttify.tencent_live_fluttify + pluginClass: TencentLiveFluttifyPlugin + ios: + pluginClass: TencentLiveFluttifyPlugin + assets: + - assets/ \ No newline at end of file diff --git a/test/tencent_live_fluttify_test.dart b/test/tencent_live_fluttify_test.dart new file mode 100644 index 0000000..0ae0b0a --- /dev/null +++ b/test/tencent_live_fluttify_test.dart @@ -0,0 +1,20 @@ +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:tencent_live_fluttify/tencent_live_fluttify.dart'; + +void main() { + const MethodChannel channel = MethodChannel('tencent_live_fluttify'); + + TestWidgetsFlutterBinding.ensureInitialized(); + + setUp(() { + channel.setMockMethodCallHandler((MethodCall methodCall) async { + return '42'; + }); + }); + + tearDown(() { + channel.setMockMethodCallHandler(null); + }); + +}