ios_startScreenAudioCapture method
@platform ios @hidden(iOS) @detail api @author yezijian.me @brief Starts using RTC SDK internal capture to capture screen audio during screen sharing. @param deviceId ID of the virtual device @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. - You also need to call publishScreenAudio: to publish the captured screen audio. - To disable screen audio internal capture, call stopScreenAudioCapture{@link #ByteRTCEngine#stopScreenAudioCapture}.
Implementation
Future<int?> ios_startScreenAudioCapture(string deviceId) async {
$() => ($instance as $p_i.ByteRTCEngine).startScreenAudioCapture(deviceId);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}