# How to switch on CC automatically with meeting sdk on web

**URL:** <https://devforum.zoom.us/t/how-to-switch-on-cc-automatically-with-meeting-sdk-on-web/121062>\
**Category:** Web\
**Tags:** video-sdk, sdk\
**Created:** [November 18, 2024, 7:48am UTC](https://devforum.zoom.us/t/how-to-switch-on-cc-automatically-with-meeting-sdk-on-web/121062 "2024-11-18T07:48:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaclla](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spaclla/32/51547_2.png) [@spaclla](https://devforum.zoom.us/u/spaclla)\
**Post date:** [November 18, 2024, 7:48am UTC](https://devforum.zoom.us/t/how-to-switch-on-cc-automatically-with-meeting-sdk-on-web/121062/1 "2024-11-18T07:48:07Z")

</div>

Platform: web

I’ve active license for video sdk.

I am using meeting sdk to join meeting & video sdk to enable live trascription. It’s working.

**Problem is -**  
The user has to click on the CC button on the embedded zoom ui for live transcription to start working.

I want to not have the user to click on CC.

React code -

```auto
useEffect(() => {
    const initializeZoom = async () => {
      const meetingSDKElement = meetingSDKElementRef.current;
      const client = ZoomMtgEmbedded.createClient();
      const videoClient = ZoomVideo.createClient();
      var stream;

      if (!meetingSDKElement) {
        setError("Meeting SDK element not found.");
        return;
      }

      try {
        await client.init({
          patchJsMedia: true,
          language: "en-US",
          zoomAppRoot: meetingSDKElement,
          customize: {
            video: {
              isResizable: false,
            },
          },
        });

        const role = 0;
        const signature = generateSignature(meetingNumber, role);
        const signatureVideoSDK = generateSignatureVideoSDK(meetingNumber, role);

        await client.join({
          meetingNumber,
          userName,
          signature,
          sdkKey: process.env.NEXT_PUBLIC_ZOOM_SDK_KEY!,
          password,
        });

        videoClient.init('en-US', 'Global', { patchJsMedia: true }).then(() => {
          videoClient
            .join(meetingNumber, signatureVideoSDK, userName, password)
            .then(() => {
              // stream = client.getMediaStream()
              const liveTranscriptionTranslation = videoClient.getLiveTranscriptionClient();

              liveTranscriptionTranslation.startLiveTranscription().then(() => {
                liveTranscriptionTranslation.setSpeakingLanguage(LiveTranscriptionLanguage.English)
              })
            })
        })

        videoClient.on("caption-message", (payload) => {
          if (payload.done) {
            console.log("received", payload);
            onNewCaptions([{
              name: payload.displayName,
              text: payload.text,
              timestamp: new Date().toISOString()
            }]);
          }
        });
      } catch (err) {
        console.error("Error initializing or joining Zoom SDK: ", err);
        setError("Error initializing or joining Zoom SDK.");
        console.log(error)
      }
    };

    initializeZoom();
  }, [meetingNumber, userName, password]);

```

---

<div class="post-metadata">

**Author:** ![binesh.dhami](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/binesh.dhami/32/40381_2.png) [@binesh.dhami](https://devforum.zoom.us/u/binesh.dhami)\
**Post date:** [December 2, 2024, 9:43pm UTC](https://devforum.zoom.us/t/how-to-switch-on-cc-automatically-with-meeting-sdk-on-web/121062/2 "2024-12-02T21:43:24Z")

</div>

Hi @spaclla ,

Can you please confirm the following

- Which view you(component view/client view) are using for meeting sdk ?
- Which version of the SDK?

Additionally, can you please elaborate on the VideoSDK trasncription being used with Meetings product. Are you using this separately or together.

One option you might want to consider is to capture the live transcript and display it outside the view by leveraging function “[onReceiveTranscriptionMsg](https://marketplacefront.zoom.us/sdk/meeting/web/functions/ZoomMtg.inMeetingServiceListener.html#inMeetingServiceListener-6)”

Please let me know your thoughts.

Thanks,  
Binesh

---

<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 2, 2025, 7:44am UTC](https://devforum.zoom.us/t/how-to-switch-on-cc-automatically-with-meeting-sdk-on-web/121062/3 "2025-01-02T07:44:09Z")

</div>

Closed on January 2, 2025, 7:44am UTC

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