Within the App, invoke startLocalAudio to kickstart microphone collection, and it's suggested to utilize TRTCAudioQualityDefault for audio quality.
Note:
This action is indispensable; by initiating microphone collection, the App can preserve its functioning even when relegated to the background.
Step 2: Initiate screen sharing
Due to the restrictions of iOS, system sounds can only be collected during screen recording. Therefore, to implement this feature, the iOS screen sharing function must be connected first.
When starting screen recording, do not light up the microphone icon. Voice collection has already been started in the app.
Step 3: Midway open and close system sound
The system audio capture and screen recording are done concurrently, initiating automatically with the start of the recording and ceasing alongside the recording termination. It is not feasible to independently switch on or mute the system audio.
TRTCCloud proffers the setSystemAudioLoopbackVolume method for system audio volume conditioning. When there is no desire to output the system audio, the volume can be set to 0.