Description
When calling getSharePipe()?.unSubscribe(with: delegate)
the externalVideoSourceDelegate
gets overriden/unloaded - stops working and the SDK takes over the video pipe.
Exactly after the call I see in the console:
Thread Performance Checker: -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
This is the signal the SDK started the capture session - even if I had another capture session already running - using the externalVideoSourceDelegate
.
Which iOS Video SDK version?
1.3.2.
To Reproduce(If applicable)
Steps to reproduce the behavior:
- when connecting to the session set
externalVideoSourceDelegate
- start a screen share and subscribe to it by
getSharePipe()?.subscribe(with: delegate, resolution: ...)
- unsubscribe from the screen share by
getSharePipe()?.unSubscribe(with: delegate)
- See error
Additional context
To trigger the issue I have to subscribe to the normal video stream by using:
getVideoCanvas()?.subscribe(with: view, andAspectMode: .panAndScan)
if on the other hand I use:
getVideoPipe()?.subscribe(with: delegate, resolution: ..)
The issue doesn’t occur.