getVideoEffectInterface method
@detail api @author zhushufan.ref @brief 获取视频特效接口。 @return 视频特效接口,参看 IVideoEffect{@link #IVideoEffect}。
Implementation
Future<IVideoEffect?> getVideoEffectInterface() async {
$a() async => packObject(
await ($instance as $p_a.RTCEngine).getVideoEffectInterface(),
() => IVideoEffect());
$i() async => packObject(
await ($instance as $p_i.ByteRTCEngine).getVideoEffectInterface(),
() => IVideoEffect());
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}