Problem when screen share is interrupted by another user

Description
I implemented screen sharing by following the documentation and using RPSystemBroadcastPickerView to display the broadcast picker to start and stop the screen share, and I’m using onUserShareStatusChanged to render it, in our case, we only want to render one screen at a time.

I have two issues during a call where one user is using an iOS device and the other user uses Web client.

  1. While the iOS user is presenting the screen and the Web user starts sharing their screen, I receive an error “Attempted to start an invalid broadcast session”.
  2. While the Web user is presenting the screen and the iOS user starts sharing their screen, if I tap “Stop Broadcast” in the picker view, the image freezes on both clients, broadcastFinished is called in SampleHandler but onUserShareStatusChanged is not.

Which iOS Video SDK version?
2.1.5

Troubleshooting Routes

  • Checked App Group ID is correct
  • Checked ZoomVideoSDK.shareInstance()?.getShareHelper() is called
  • Checked SampleHandler functions are called correctly
  • Checked CptShare was added with “Embed & Sign” option.

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro
  • OS: iOS 18.4.1

Additional context
The screen share functionality works as expected if I’m sharing iOS or Web client without another using presenting the screen on top of a current presentation.