Description
Please tell me the correct thread to run when executing the muteMyVideo method of MobileRTCMeetingService.
Which iOS Meeting SDK version?
v5.13.10.7064
To Reproduce(If applicable)
If you call the muteMyVideo method of MobileRTCMeetingService on the main thread when the camera is on, you will receive a warning.
dispatch_async(dispatch_get_main_queue(), ^{
[[[MobileRTC sharedRTC] getMeetingService] muteMyVideo:NO];
});
// -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
A warning will be displayed if the MobileRTCMeetingService.muteMyVideo() method is executed on a background thread when the camera is OFF.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[[MobileRTC sharedRTC] getMeetingService] muteMyVideo:NO];
});
// -[UIApplication delegate] must be used from main thread only
Screenshots
Smartphone (please complete the following information):
- Device: iPhone 11 Max Pro
- OS: 16.4.1 (a)