applyStickerEffect method
@hidden for internal use only
@detail api
@author zhushufan.ref
@brief Private method
Set video sticker effects material package.
@param effectNodes Array of effect material package paths.
@return
- 0: Success
- <0: Other errors
Implementation
Future<int?> applyStickerEffect(string tickerPath) async {
$a() => ($instance as $p_a.IVideoEffect).applyStickerEffect(tickerPath);
$i() =>
($instance as $p_i.ByteRTCVideoEffect).applyStickerEffect(tickerPath);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}