setEffectNodes method
@detail api
@author zhushufan.ref
@brief Sets the video effects material package.
@param effectNodes Array of effect material package paths.
To remove the current video effect, set it to null.
@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.
@note You must call enableVideoEffect{@link #IVideoEffect#enableVideoEffect} before calling this API.
Implementation
Future<int?> setEffectNodes(List<String>? effectNodes) async {
$a() => ($instance as $p_a.IVideoEffect).setEffectNodes(effectNodes);
$i() => ($instance as $p_i.ByteRTCVideoEffect).setEffectNodes(effectNodes);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}