# macOS SDK Raw Data Help/Examples?

**URL:** <https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525>\
**Category:** macOS\
**Created:** [February 18, 2022, 4:11pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525 "2022-02-18T16:11:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylan\_v](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylan_v/32/35265_2.png) [@dylan\_v](https://devforum.zoom.us/u/dylan_v)\
**Post date:** [February 18, 2022, 4:11pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/1 "2022-02-18T16:11:13Z")

</div>

**Description**

Are there any examples of using raw data with the macOS SDK?

I’ve been following the docs ([https://marketplace.zoom.us/docs/sdk/native-sdks/macos/raw-data/](https://marketplace.zoom.us/docs/sdk/native-sdks/macos/raw-data/)) and I’m stuck on:

> Once the recording has started, set up a `ZoomSDKRenderer` , set your `ZoomSDKRendererDelegate` as the delegate property, and subscribe to the user via the `subscribe` method.

I’ve tried this after recording is started:

```objective-c
ZoomSDKRenderer *sdkRenderer = nil;
ZoomSDKError e = [[[ZoomSDK sharedSDK] getRawDataController] creatRender:&sdkRenderer];
sdkRenderer.delegate = self;
[sdkRenderer subscribe:_activeUser rawDataType:ZoomSDKRawDataType_Video];

```

I think it’s missing something because the callbacks are never called.

**Which macOS Meeting SDK version?**

zoom-sdk-macos-5.9.3.4280

**Screenshots**

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

- Device: [Apple MacBook Pro (16-inch, M1)]
- OS: [macOS Monterey v12.1]

---

<div class="post-metadata">

**Author:** ![dylan\_v](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylan_v/32/35265_2.png) [@dylan\_v](https://devforum.zoom.us/u/dylan_v)\
**Post date:** [February 19, 2022, 7:34pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/2 "2022-02-19T19:34:03Z")

</div>

I found out the issue was with the `userID` passed to `subscribe`. I had used `onHostChange` to assign `_activeUser` but `onHostChanged` was not called while my code was running. I switched to using `onActiveVideoUserChanged` which was called, giving a valid `userID` and the code worked.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 23, 2022, 1:48am UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/3 "2022-02-23T01:48:25Z")

</div>

Hi @dylan_v, thanks for using our SDK.

It looks like you were able to figure out the correct way of getting the ID of the active speaker each time it changes. That callback seems like it will do the trick for you if you are looking to subscribe to whomever is the active speaker at a given time. However, if you want to be able to subscribe to each individual user’s video stream as soon as it is available, you can use the [`onVideoStatusChange`](https://marketplacefront.zoom.us/sdk/meeting/macos/protocol_zoom_s_d_k_meeting_action_controller_delegate-p.html#a68eb95b361e7e1699af4c58f541173f9) callback to ensure you have an accurate list of userIDs for all participants with video turned on.

Thanks!

---

<div class="post-metadata">

**Author:** ![dylan\_v](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylan_v/32/35265_2.png) [@dylan\_v](https://devforum.zoom.us/u/dylan_v)\
**Post date:** [February 24, 2022, 9:10pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/4 "2022-02-24T21:10:21Z")

</div>

Thank you @jon.zoom. That works for me!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 25, 2022, 7:05pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/5 "2022-02-25T19:05:25Z")

</div>

You are welcome, glad I could help!

Please don’t hesitate to reach back out in a new topic with any additional questions. 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 25, 2022, 7:05pm UTC](https://devforum.zoom.us/t/macos-sdk-raw-data-help-examples/64525/6 "2022-02-25T19:05:28Z")

</div>

Closed on February 25, 2022, 7:05pm UTC


