# Electron SDK v6.1.1.41755 getting SDKRawDataError.SDKRawDataError\_WRONGUSAGE from zoomRawData.Subscribe func

**URL:** <https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594>\
**Category:** Electron\
**Tags:** guide, sdk\
**Created:** [July 29, 2024, 9:05pm UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594 "2024-07-29T21:05:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shared\_Studios](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shared_studios/32/887_2.png) [@Shared\_Studios](https://devforum.zoom.us/u/Shared_Studios)\
**Post date:** [July 29, 2024, 9:05pm UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/1 "2024-07-29T21:05:05Z")

</div>

**Meeting SDK Type and Version**  
Meeting SDK Electron Wrapper v6.1.1.41755

**Description**  
While exploring the Meeting SDK Electron Wrapper ([Meeting SDK Electron Wrapper](https://developers.zoom.us/docs/meeting-sdk/electron/)), we are consistently encountering the `SDKRawDataError.SDKRawDataError_WRONGUSAGE` error from `zoomRawData.Subscribe`. Below is the relevant portion of the code I am using (in src\assets\ts\rawdata\video.ts line 28):

```auto
const handleSubscribeVideo = (resolution: number, recv_handle: number, userid: number) => {
    console.log('handleSubscribeVideo userid:', userid);
    console.log('handleSubscribeVideo resolution:', resolution);
    console.log('handleSubscribeVideo recv_handle:', recv_handle);
    let obj = {resolution, recv_handle}
    let ret = zoomRawData.SetRawDataResolution(obj)
    let subscribeObj = {
      userid: userid,
      rawdataType: ZoomSDKRawDataType.RAW_DATA_TYPE_VIDEO,
      recv_handle: recv_handle
    }
    ret = zoomRawData.Subscribe(subscribeObj);
    console.warn('SDKRawDataError: ', ret);
    if (ret == SDKRawDataError.SDKRawDataError_SUCCESS || ret == SDKRawDataError.SDKRawDataError_NO_VIDEO_DATA) {
      subscribedVideoList.value[recv_handle] = zoomMeetingParticipants.GetUserInfoByUserID(userid)
    }
}

```

**Error?**  
The `zoomRawData.Subscribe` method consistently returns `SDKRawDataError.SDKRawDataError_WRONGUSAGE`.

**Troubleshooting Routes**

- Implement the above code snippet within the Meeting SDK Electron Wrapper.
- Execute the `handleSubscribeVideo` function with appropriate parameters.

Could you please guide us how to correctly use `zoomRawData.Subscribe` method? Additionally, if there are any known issues or additional steps required to correctly use `zoomRawData.Subscribe`, please kindly provide that information.

Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 30, 2024, 2:45am UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/2 "2024-07-30T02:45:44Z")

</div>

@Shared_Studios I’m not that familiar with electron, but from macOS, Windows and Linux SDK, here are the steps needed before calling Subscribe.

1. Ensure that the SDK has fully joined the meeting
2. Request for either recording rights, co-host or host priviledge
3. Call the start raw recording method
4. Call the Subscribe method.

---

<div class="post-metadata">

**Author:** ![Shared\_Studios](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shared_studios/32/887_2.png) [@Shared\_Studios](https://devforum.zoom.us/u/Shared_Studios)\
**Post date:** [July 30, 2024, 3:16am UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/3 "2024-07-30T03:16:40Z")

</div>

> [@chunsiong.zoom](#):
>
> Request for either recording rights, co-host or host priviledge

Hi @chunsiong.zoom,

Thank you for your reply. It seems we are missing the second step: Request for either recording rights, co-host or host privileges. Could you please guide us how to request the privileges? Thank you.

Kindly,  
James

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 30, 2024, 5:18am UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/4 "2024-07-30T05:18:48Z")

</div>

@Shared_Studios ,.

I’ll be sharing the solution on Windows. Electron being a wrapper will call the same method on the bottom layer as well.

There is a IMeetingRecordingController which you can get from the ZoomSDK’s meetingService’s GetMeetingRecordingController method.

Within this Recording Controller, you can call RequestLocalRecordingPrivilege method

[https://marketplacefront.zoom.us/sdk/meeting/windows/class\_i\_meeting\_recording\_controller.html#abcb2ca7aa87e73836f4d6226feffbe8d](https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_meeting_recording_controller.html#abcb2ca7aa87e73836f4d6226feffbe8d)

---

<div class="post-metadata">

**Author:** ![Shared\_Studios](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shared_studios/32/887_2.png) [@Shared\_Studios](https://devforum.zoom.us/u/Shared_Studios)\
**Post date:** [August 6, 2024, 8:16pm UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/5 "2024-08-06T20:16:29Z")

</div>

> [@chunsiong.zoom](#):
>
> Privilege

Hi @chunsiong.zoom,

Thank you for your reply. I can see the `GetMeetingRecordingController` method in the ZoomMeetingRecording addon (`zoom_sdk_electron\lib\zoom_setting_recording.js`). However, I’m unable to find the `RequestLocalRecordingPrivilege` method in the wrapper (`zoom_sdk_electron\lib\node_add_on\meeting_service_wrap_core.h`) or in the C# wrapper (`zoom_sdk_c_sharp_wrap\meeting_recording_dotnet_wrap.h`). Could you please provide more details or guidance on how to call `RequestLocalRecordingPrivilege` method? Thank you.

Kindly,  
James

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 7, 2024, 5:36am UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/6 "2024-08-07T05:36:50Z")

</div>

@Shared_Studios , sorry I’m not that familiar with Electron.

You will need to trace the javascript files to the underlying “wrapped” cpp and .h files. They will call the specific methods on the underlying Windows SDK to request for local recording privilege.

The general guidelines are trace

- GetSettingRecordingCtrl

.  
.  
.

Keep tracing until you find the actual code which calls |MeetingRecordingController::RequestLocalRecordingPrivilege()

---

<div class="post-metadata">

**Author:** ![Shared\_Studios](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shared_studios/32/887_2.png) [@Shared\_Studios](https://devforum.zoom.us/u/Shared_Studios)\
**Post date:** [August 21, 2024, 5:43pm UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/7 "2024-08-21T17:43:24Z")

</div>

I have added the necessary permissions in the scope, see the snapshots below, but when we request the permission in the meeting, I encounter another **SDKRawDataError\_WRONGUSAGE** issue or maybe the same issue.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/5/a5267ea1d2188245120648e84c5eeef74ab5455d.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/4/344da6b75a5b5b519ea35ba8593ce500040ae248.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/c/ac7eb8c0fbf3266d29cd469be4cac17fcbcbdb10.png)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 22, 2024, 8:05am UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/8 "2024-08-22T08:05:36Z")

</div>

@Shared_Studios raw stream is not the same as raw data.

You want want to check out this flow diagram

> **[Use raw data | Meeting SDK | Windows](https://developers.zoom.us/docs/meeting-sdk/windows/add-features/raw-data/#recording-and-streaming-sequence-diagrams)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<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:** [September 21, 2024, 6:05pm UTC](https://devforum.zoom.us/t/electron-sdk-v6-1-1-41755-getting-sdkrawdataerror-sdkrawdataerror-wrongusage-from-zoomrawdata-subscribe-func/114594/9 "2024-09-21T18:05:40Z")

</div>

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