stopScreenCapture method
@detail api @hiddensdk(audiosdk) @author wangqianqian.1104 @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式采集屏幕音视频。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 @note - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 onVideoDeviceWarning{@link #IRTCEngineEventHandler#onVideoDeviceWarning} 或 onAudioDeviceWarning{@link #IRTCEngineEventHandler#onAudioDeviceWarning} 回调。 - 要开始屏幕音视频内部采集,调用 startScreenCapture{@link #RTCEngine#startScreenCapture}。
Implementation
Future<int?> stopScreenCapture() async {
$a() => ($instance as $p_a.RTCEngine).stopScreenCapture();
$i() => ($instance as $p_i.ByteRTCEngine).stopScreenCapture();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}