Electron Raw SDK in demo doesn't work, and produces a strange unrelated error

Description
Currently you join a meeting and initialize it to subscribe to raw streams, but the raw stream demo is broken.

Unfortunately I cannot attach screenshots, but the response of the zoomRawData.Subscribe call is ‘13’ @
src/assets/ts/rawdata/video.ts:36

This is confusing because it is passing in ZoomSDKRawDataType.RAW_DATA_TYPE_VIDEO, and the if statement is looking for SDKRawDataError_NO_VIDEO_DATA or SDKRawDataError_SUCCESS.

Instead it seems to get SDKRawDataError_NO_SHARE_DATA: 13, which is associated with screen sharing I believe and not RAW_DATA_TYPE_VIDEO…

I definitely can see video from the other user through the native Zoom conference window.

It seems this issue was posted before, but maybe without specific details?

Has anyone else been able to subscribe to raw video and audio data with the Zoom Meeting SDK with Electron on macOS?

Also, out of curiosity, in my scenario when I select raw the native Zoom window pops up… Is this intended, or is it meant to perform the meeting entirely inside Electron?

Which Electron Meeting SDK version?
I’ve tested on both SDK versions: 5.15.2.19837 & zoom-sdk-electron-5.14.11.19310, and they both behave identically.

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Launch the SDK with npm run electron:serve
  2. Connect to a meeting using any method.
  3. Exit the meeting, and from the SDK Zoom screen, click the dropdown on Join Meeting, and click “With Rawdata”
  4. Click the “Join Meeting” button, and fill in the meeting details.
  5. Attempt to subscribe to raw video or audio for any of the available users, and note that an error is produced.

Screenshots
I’m not allowed to attach media apparently, but I have a screenshot demonstrating the above behavior.

Device (please complete the following information):

  • Device: (Macbook Pro 14-inch 2021)

  • OS: macOS Monterey 12.6.7

Here are some more details:

The ZoomSDKError result of the following call is 21:
lib/node_add_on/mac/rawdata_api_wrap_core.mm:211

                ZoomSDKError ret = [render subscribe:userId rawDataType:ZoomMapRawDataType(type)];

It’s translated into a ZNSDKError of 13 here:
lib/node_add_on/mac/sdk_native_error.mm:17

    ZNSDKError ret = ZNSDKERR_UNKNOWN;

Which I think is probably just the default value above :point_up:

lib/node_add_on/zoom_node_rawdata_api_ctrl.cpp:111

		err = _g_native_wrap.GetRawAPIWrap().Subscribe(_zn_userid, _zn_rawdataType, _zn_recv_handle);

So the error result here is 13, which is naively cast into a SDKRawDataError which doesn’t match its current type.

The parameters to _g_native_wrap.GetRawAPIWrap().Subscribe look correct, I printed them with the following:

		printf("subscribe userid:%d, rawdatatype:%d, recvhandle:%lld\n", _zn_userid, _zn_rawdataType, _zn_recv_handle);

And it matches to parameters of a correct userId, a ZNZoomSDKRawDataType of ZNRAW_DATA_TYPE_VIDEO, and a recvhandle of 3. I’ve tried different recvhandles as well:

subscribe userid:16778240, rawdatatype:0, recvhandle:3

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