You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4941 lines
199 KiB
4941 lines
199 KiB
4 years ago
|
//////////////////////////////////////////////////////////
|
||
|
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||
|
//////////////////////////////////////////////////////////
|
||
|
|
||
|
#import "SubHandler1.h"
|
||
|
#import "FluttifyMessageCodec.h"
|
||
|
|
||
|
// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器
|
||
|
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
|
||
|
// Dart端随机存取对象的容器
|
||
|
extern NSMutableDictionary<NSNumber*, NSObject*>* HEAP;
|
||
|
// 日志打印开关
|
||
|
extern BOOL enableLog;
|
||
|
|
||
|
@implementation TencentLiveFluttifyPlugin (SubHandler1)
|
||
|
- (NSDictionary<NSString*, Handler>*) getSubHandler1 {
|
||
|
__weak __typeof(self)weakSelf = self;
|
||
|
return @{
|
||
|
@"TXLivePush::stopPush_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
|
||
|
|
||
|
// ref
|
||
|
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
|
||
|
|
||
|
// invoke native method
|
||
|
NSArray* result = [ref getRoomMemberList];
|
||
|
|
||
|
// result
|
||
|
// 返回值: 列表
|
||
|
NSMutableArray<NSObject*>* __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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
|
||
|
|
||
|
// ref
|
||
|
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
|
||
|
|
||
|
// invoke native method
|
||
|
NSArray* result = [ref getRoomVideoList];
|
||
|
|
||
|
// result
|
||
|
// 返回值: 列表
|
||
|
NSMutableArray<NSObject*>* __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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<UIImage*>* pitureList = (NSArray<UIImage*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<TXRepeat*>* repeatList = (NSArray<TXRepeat*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<TXSpeed*>* speedList = (NSArray<TXSpeed*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<TXSubtitle*>* subtitleList = (NSArray<TXSubtitle*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<TXPaster*>* pasterList = (NSArray<TXPaster*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<TXAnimatedPaster*>* animatedPasterList = (NSArray<TXAnimatedPaster*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<NSObject*>* videoPathList = (NSArray<NSObject*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSArray<NSNumber*>* volumes = (NSArray<NSNumber*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
||
|
NSMutableArray* resultList = [NSMutableArray array];
|
||
|
|
||
|
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
||
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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 <FlutterPluginRegistrar> * 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
|