updateEffectNode method
@detail api
@author zhushufan.ref
@brief 设置特效强度。
@param effectNode 特效素材包绝对路径,参考素材包结构说明。
@param key 需要设置的素材 key 名称,参考素材 key 对应说明。
@param value 特效强度值,取值范围 0,1,超出范围时设置无效。
@return
- 0: 调用成功。
- –1000: 未集成特效 SDK。
- –1001: 特效 SDK 不支持该功能。
- –1002: 特效 SDK 版本不兼容。
- < 0: 调用失败,错误码对应具体描述参看 错误码表。
Implementation
Future<int?> updateEffectNode(
string effectNode, string key, float value) async {
$a() => ($instance as $p_a.IVideoEffect)
.updateEffectNode(effectNode, key, value);
$i() => ($instance as $p_i.ByteRTCVideoEffect)
.updateEffectNode(effectNode, key, value);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}