updateEffectNode method
@detail api
@author zhushufan.ref
@brief Sets the intensity of video effects.
@param effectNode The absolute path of the effects resource package, see Resource Package Structure.
@param key The name of the material key to be set, see Functions of Resource Keys for the value.
@param value The intensity value that needs to be set, the value range 0,1, and the setting is invalid when it exceeds the range.
@return
- 0: Success.
- –1000: The Effects SDK is not integrated.
- –1001: This API is unavailable for your Effects SDK.
- –1002: Your Effects SDK's version is incompatible.
- < 0: Other error. See error code table for specific instructions.
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}');
}
}