ios_stopScreenAudioCapture method
@platform ios @hidden(iOS) @detail api @author liyi.000 @brief Stops using RTC SDK internal capture to capture screen audio during screen sharing. @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:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning} after calling this API when the video source is set to an external recorder. - This API can only stop the screen capture by the RTC SDK. If the video source has been set to external recorder, the call of this API will fail with a warning message. You need to stop it in the external recorder. - To enable the screen audio internal capture, call startScreenAudioCapture:{@link #ByteRTCEngine#startScreenAudioCapture}.
Implementation
Future<int?> ios_stopScreenAudioCapture() async {
$() => ($instance as $p_i.ByteRTCEngine).stopScreenAudioCapture();
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}