startScreenAudioCapture method

FutureOr<int> startScreenAudioCapture(
  1. NSString deviceId
)

@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

FutureOr<int> startScreenAudioCapture(NSString deviceId) async {
  return await nativeCall('startScreenAudioCapture:', [deviceId]);
}