# Unsubscribe from sharePipe overrides/unloads externalVideoSourceDelegate

**URL:** <https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572>\
**Category:** iOS\
**Created:** [January 17, 2023, 1:05pm UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572 "2023-01-17T13:05:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [January 17, 2023, 1:05pm UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/1 "2023-01-17T13:05:30Z")

</div>

**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:

```auto
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:

1. when connecting to the session set `externalVideoSourceDelegate`
2. start a screen share and subscribe to it by `getSharePipe()?.subscribe(with: delegate, resolution: ...)`
3. unsubscribe from the screen share by `getSharePipe()?.unSubscribe(with: delegate)`
4. 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.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 18, 2023, 11:47am UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/2 "2023-01-18T11:47:06Z")

</div>

Hey Rok! Thanks for your post. I know we just released v1.6.2 of the iOS SDK which may resolve this. Could you try upgrading and see if that fixes the issue?

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [January 19, 2023, 9:03am UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/3 "2023-01-19T09:03:43Z")

</div>

@kellyjandrews I tried v1.6.2 and have to say that’s even worse.

The same problem now happens every time a user leaves the session without even unsubscribing from the share pipe - I get `onStopSend` and `onUninitialized` calls on `externalVideoSourceDelegate` and the SDK takes over the video source.

I am very disappointed. I am trying every single release after 1.3.2. and there is always something broken that prevents me from updating ☹

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 19, 2023, 11:11am UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/4 "2023-01-19T11:11:40Z")

</div>

Thanks for trying it - I’ve requested someone with iOS knowledge to help out here, and hopefully, we can get things sorted out. Sorry for the trouble!

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [January 19, 2023, 11:23am UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/5 "2023-01-19T11:23:26Z")

</div>

@kellyjandrews thanks for the quick turn-around. If you need more info / testing LMK 🙏

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 18, 2023, 9:23pm UTC](https://devforum.zoom.us/t/unsubscribe-from-sharepipe-overrides-unloads-externalvideosourcedelegate/81572/6 "2023-02-18T21:23:42Z")

</div>

Closed on February 18, 2023, 9:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
