# Host cannot send Closed Captioning messages via SDK, and gets 'false' for \`isMeetingSupportCloseCaption\`

**URL:** <https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039>\
**Category:** macOS\
**Created:** [June 8, 2021, 8:24pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039 "2021-06-08T20:24:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.r.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt.r.zoom/32/25622_2.png) [@matt.r.zoom](https://devforum.zoom.us/u/matt.r.zoom)\
**Post date:** [June 8, 2021, 8:24pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/1 "2021-06-08T20:24:20Z")

</div>

**Description**

I’m having difficulties integrating Closed Captioning support into a custom macOS app via the Zoom Client SDK.

Specifically:

1. Even if I’m the meeting host/organizer and I’ve enabled Closed Captioning in my Zoom advanced settings, the `ZoomSDKCloseCaptionController` is returning `NO` for `isMeetingSupportCloseCaption`, and I receive `NO` for `canSendClosedCaption`
2. If I log into the same meeting, with the same host/user, but in the Zoom desktop client, I can successfully send CC messages. Those messages are then received by the SDK in my custom app (for the same user) and reported via `ZoomSDKCloseCaptionControllerDelegate onReceiveCCMessageWithString`
3. If I attempt to assign CC privileges to _another_ user via the SDK `assignCCPriviledgeTo`, that works succesfully, and other users (in the Zoom Mac desktop client) can then send CC messages which the SDK receives

**Which macOS Client SDK version?**  
5.5 (12509.0330)

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

1. Enable Closed Captioning support for your Zoom host in Advanced Settings
2. Create a meeting and join as Host
3. Retrieve the CC controller via `-[ZoomSDKMeetingService getCloseCaptionController]`
4. Check the values of the controller for: `isMeetingSupportCloseCaption` and `canSendClosedCaption`. Both return `NO`.
5. On a separate machine, join the same meeting with the same host account.
6. On the Zoom desktop client, this same user can successfully enter CC messages (which the SDK receives via the `ZoomSDKCloseCaptionControllerDelegate` callbacks)
7. However, as noted in step 4, the SDK reports that this exact same host user cannot send messages, and that CC is not supported for the meeting (even though the Zoom client can successfully send CC messages to this meeting)
8. Join the meeting as a separate user in the Zoom desktop client, and via the SDK attempt to assign CC privileges to that user with `assignCCPriviledgeTo`
9. Notice that this succeeds, and that user (in the Zoom desktop client) can then send CC messages successfully.

I thought perhaps as host I needed to call `assignCCPriviledgeTo:` with the host’s own ID, but if I attempt that I simply get a `ZoomSDKError_WrongUsage`.

**Screenshots**

 ![Screen Shot 2021-06-08 at 1.32.01 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/0/f05bfed092687122ed6030eae54100fca2d7dc35.png)

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

- Device: Macbook Pro 13"
- OS: macOS Big Sur 11.2.3

**Additional context**

Any help would be greatly appreciated.

The gist of the issue is that the SDK, although able to receive CC messages in the meeting from the host in the Zoom client, seems to report that the same exact user (host), in the same exact meeting, cannot send CC messages via `sendClosedCaptionMessage` (even though the Zoom client allows it).

Further, the SDK reports through `-[ZoomSDKCloseCaptionController isMeetingSupportCloseCaption]` that the meeting does not support CC, even though messages can actively be received.

The SDK allows me (as host) to assign CC privileges to another Zoom desktop client user for example, but I can’t find a way as host to send messages via `- (ZoomSDKError)sendClosedCaptionMessage:(NSString*)ccString;`.

---

<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:** [June 8, 2021, 11:18pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/2 "2021-06-08T23:18:39Z")

</div>

Hi @matt.r.zoom, thanks for using the dev forum.

I really appreciate the detailed write-up of the issue you are facing! This will certainly help us track down the issue faster. 🙂

I have tried to reproduce the behavior you are describing, but the only thing that seems to be working improperly based on my testing is that the `isMeetingSupportCloseCaption` property is returning an incorrect value. We will need to investigate what is causing this and identify a solution.

I have been able to successfully send closed captions programmatically through the SDK despite this issue and am seeing `canSendCloseCaption` return `YES`.

> I thought perhaps as host I needed to call `assignCCPriviledgeTo:` with the host’s own ID, but if I attempt that I simply get a `ZoomSDKError_WrongUsage` .

Usually this will happen if it has already been assigned. On the first attempt of assigning this to myself, it returns success, but on subsequent attempts it is unsuccessful. Can you try calling this with a value of 0 instead of the host’s own ID and let me know if you are still receiving this error? In many instances, 0 is used to represent the current user in the SDK.

Also, what happens when you ignore the SDK’s return values and try to call `sendClosedCaptionMessage`?

Thanks!

---

<div class="post-metadata">

**Author:** ![matt.r.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt.r.zoom/32/25622_2.png) [@matt.r.zoom](https://devforum.zoom.us/u/matt.r.zoom)\
**Post date:** [June 9, 2021, 4:57pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/3 "2021-06-09T16:57:49Z")

</div>

Hi Jon,

Thanks very much for the follow-up. I think your suggestion of using `assignCCPriviledgeTo: 0` has fixed several of the issues.

So after initially launching and joining a meeting as the host (where there is at least 1 other participant), these were the following results of the test code below (in sample below, `cc` is the closed captioning controller from `-getCloseCaptionController`, and the results are in the inline comments):

```auto
    BOOL isHost = [self userIsHost]; // YES
    BOOL supports = [cc isMeetingSupportCloseCaption]; // NO
    BOOL canAssign = [cc canAssignOthersToSendCC]; // YES
    BOOL canSend = [cc canSendClosedCaption]; // NO
    
    ZoomSDKError r1 = [cc assignCCPriviledgeTo:0]; //r1 = success, no error
    ZoomSDKError r2 = [cc sendClosedCaptionMessage:@"Test message 1"]; // error, no permission

```

In the above, the host is showing NO for `canSendClosedCaption`. Although the assign method reports success, I can’t immediately send messages.

However, after a brief delay, the message sending _does_ start working. I’m assuming that there is some async code running in the SDK (network callback etc.) after the assign command, which has to return before messages can be sent.

In the last two tests, I’ve seen that after calling `assignCCPriviledgeTo:0`, I do eventually get a delegate callback `onGetCCPrvilege`. After that point, it looks like the `canSendClosedCaption` returns YES and I can send messages using `sendClosedCaptionMessage`.

So the only remaining issue is what you mentioned above, which is just that `isMeetingSupportCloseCaption` continues to report NO. But it looks like we should be able to ignore that and just rely on the other properties instead.

Thanks very much for your help,  
Matt

---

<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:** [June 9, 2021, 10:10pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/4 "2021-06-09T22:10:30Z")

</div>

Hi @matt.r.zoom,

I’m glad to hear things are looking better in your implementation! Upon further investigation, we determined that the reason `isMeetingSupportCloseCaption`'s return value is inaccurate is because there were some changes made to how CC works in order to support the live interpretation feature which messed with how the SDK determines whether or not it is enabled. This should be resolved in a future release.

Thanks!

---

<div class="post-metadata">

**Author:** ![matt.r.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt.r.zoom/32/25622_2.png) [@matt.r.zoom](https://devforum.zoom.us/u/matt.r.zoom)\
**Post date:** [June 10, 2021, 10:00pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/5 "2021-06-10T22:00:35Z")

</div>

Hi Jon,

I seem to be hitting other issues with the Closed Captioning. In this case, I am getting a `wrongUsage` error when attempting to assign CC privileges to a user, even though the SDK is telling me that I can assign them.

Example:

```auto
(lldb) po sdkController.canBeAssigned(toSendCC: 16780288)
true

(lldb) po sdkController.assignCCPriviledge(to: 16780288)
▿ ZoomSDKError
  - rawValue : 4 // <--- WrongUsage error

```

The above happens both when testing directly in LLDB, as well as when using identical code in the compiled app. The basic flow I’m using for this test is fairly simple:

1. Enable CC in Zoom settings for host
2. Enter meeting (host user)
3. With a separate user, enter the same meeting
4. Check `canBeAssignedToSendCC` for the new user’s ID
5. RESULT: SDK returns true
6. Attempt to assign CC to that user, for the same ID
7. RESULT: SDK returns error

Can you provide any insight into the mismatch here?

---

<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:** [June 11, 2021, 5:55pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/6 "2021-06-11T17:55:57Z")

</div>

Hi @matt.r.zoom,

I have been able to reproduce this but haven’t found a solution yet. We will investigate this and keep you updated once more information is available.

Thanks!

---

<div class="post-metadata">

**Author:** ![matt.r.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matt.r.zoom/32/25622_2.png) [@matt.r.zoom](https://devforum.zoom.us/u/matt.r.zoom)\
**Post date:** [June 23, 2021, 5:13pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/7 "2021-06-23T17:13:00Z")

</div>

Hi Jon,

> I have been able to reproduce this but haven’t found a solution yet. We will investigate this and keep you updated once more information is available.

Thank you for the help. Do you know if there is any potential workaround for this problem?

I’m assuming an SDK fix would be necessary to correct this, but wondering if there are any alternatives we can use to allow `assignCCPriviledgeTo` to work.

Thanks so much

---

<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:** [June 23, 2021, 10:46pm UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/8 "2021-06-23T22:46:41Z")

</div>

Hi @matt.r.zoom,

We have not identified any workarounds. I think you are correct in assuming that a new SDK version will be required to resolve this, but I will hold off on saying that will be the case for certain until we have identified a fix.

Thanks!

---

<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:** [July 24, 2021, 8:46am UTC](https://devforum.zoom.us/t/host-cannot-send-closed-captioning-messages-via-sdk-and-gets-false-for-ismeetingsupportclosecaption/52039/9 "2021-07-24T08:46:52Z")

</div>

Closed on July 24, 2021, 8:46am UTC

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