updateScreenCapture method
@detail api @hiddensdk(audiosdk) @author wangqianqian.1104 @brief Updates the media type of the internal screen capture. @param type Media type. See ScreenMediaType{@link #ScreenMediaType}. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note Call this API after calling startScreenCapture{@link #RTCEngine#startScreenCapture}.
Implementation
Future<int?> updateScreenCapture(ScreenMediaType type) async {
$a() => ($instance as $p_a.RTCEngine)
.updateScreenCapture(t_ScreenMediaType.code_to_android(type));
$i() => ($instance as $p_i.ByteRTCEngine)
.updateScreenCapture(t_ScreenMediaType.code_to_ios(type));
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}