Main thread hangs after screen sharing starting

Main thread hangs after call

  • ( void )broadcastStartedWithSetupInfo:(NSDictionary<NSString *,NSObject *> *)setupInfo
    method on MobileRTCScreenShareService

Thanks

Hey @stas.hryhoriev,

Thanks for using the dev forum!

Are you seeing this same behavior in the sample application?

Thanks!
Michael

Hello

In sample application everything works fine. But in our case, unlike the sample, the MobileRTCScreenShare framework is used in the application itself, and not in broadcast extension. The reason is that we are sending the processed image and audio to the Zoom session.

Thanks!

Hey @stas.hryhoriev,

Can you provide your handler code and SDK Version?

Thanks!
Michael

Hello

I am using screen share SDK without broadcast extension that’s why I don’t have SampleHandler class. I just create MobileRTCScreenShareService object in my model and put buffers there via

  • (void )processSampleBuffer:withType: method

Which version?
5.4.54520.1229

Thanks!

Hey @stas.hryhoriev,

I see. The MobileRTCScreenShareService is actually just a wrapper for the ReplayKit handler. It is only designed to be used in the way of passing the handler callbacks to the SDK. Using it in a different way is going to cause unexpected behavior.

Thanks!
Michael