# Troubles getting user's raw pixel data

**URL:** <https://devforum.zoom.us/t/troubles-getting-users-raw-pixel-data/80043>\
**Category:** iOS\
**Created:** [December 9, 2022, 6:38pm UTC](https://devforum.zoom.us/t/troubles-getting-users-raw-pixel-data/80043 "2022-12-09T18:38:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![veerlorden](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@veerlorden](https://devforum.zoom.us/u/veerlorden)\
**Post date:** [December 9, 2022, 6:38pm UTC](https://devforum.zoom.us/t/troubles-getting-users-raw-pixel-data/80043/1 "2022-12-09T18:38:21Z")

</div>

**Description**  
Hello. I’m trying to get raw CVPixelBuffer of a user’s sharing and video content. Basically, I need three types of data in my app: my own video, host’s video and host’s sharing. And besides, I need to show both host’s video and host’s sharing simultaneously.  
I simplified my setup here: [gist:e1fe5137e44d87d690a6994dd0746301 · GitHub](https://gist.github.com/veerlorden/e1fe5137e44d87d690a6994dd0746301)  
I implemented three delegates to receive data. Then, inside onSessionJoin callback I subscribe to my own video stream, and inside onUserJoin callback I subscribe to receive the host’s data. I have two problems:

Firstly, I cannot get host’s video and sharing data simultaneously.  
Secondly, when host leaves I don’t receive my own frames and my video freezes.

Thanks,  
Wade

**Which iOS Video SDK version?**  
1.5.3

**Smartphone (please complete the following information):**

- Device: iPhone 12
- OS: iOS 16.1.2

---

<div class="post-metadata">

**Author:** ![veerlorden](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@veerlorden](https://devforum.zoom.us/u/veerlorden)\
**Post date:** [December 12, 2022, 1:29pm UTC](https://devforum.zoom.us/t/troubles-getting-users-raw-pixel-data/80043/2 "2022-12-12T13:29:27Z")

</div>

Hello again,  
It seems, that I managed to solve my issues. However, I still have some questions.

In the first case I downgraded video quality from 720 to 360 and both frames come as expected now. Is it a bug that I don’t receive both sharing and video of the same user in 720p?  
In the second case it seems that my local video freezes when host leaves session. I resubscribe to my video stream inside onUserLeave callback. Is it OK that my video freezes? Or I’m doing something wrong?

I’ll be waiting for your reply

Thanks,  
Wade

---

<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:** [January 11, 2023, 11:29pm UTC](https://devforum.zoom.us/t/troubles-getting-users-raw-pixel-data/80043/3 "2023-01-11T23:29:36Z")

</div>

Closed on January 11, 2023, 11:29pm UTC

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