ios_stopScreenVideoCapture method
@platform ios @hidden(iOS) @detail api @hiddensdk(audiosdk) @author liyi.000 @brief Stops capturing screen video stream. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - The call of this API takes effects only when you are using RTC SDK to record screen. You will get a warning by rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceWarning:deviceType:deviceWarning} after calling this API when the video source is set to an external recorder. - To enable screen video stream capture, calling startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters}. - You will receive rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error} after calling this API. - This API has no effect on screen video stream publishing.
Implementation
Future<int?> ios_stopScreenVideoCapture() async {
$() => ($instance as $p_i.ByteRTCEngine).stopScreenVideoCapture();
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}