# How to add recording functionality in my video calls

**URL:** <https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978>\
**Category:** Web\
**Created:** [July 11, 2019, 12:16pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978 "2019-07-11T12:16:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tony](https://devforum.zoom.us/u/tony)\
**Post date:** [July 11, 2019, 12:16pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/1 "2019-07-11T12:16:49Z")

</div>

Hello,

I’m following this guide [https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/getting-started/integrate-the-sdk](https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/getting-started/integrate-the-sdk)

**How can I record the video meetings?**

I found in the documentation section some related functions

```
ZoomMtg.record({
   record: true
});

```

and

```
ZoomMtg.showRecordFunction({
show: false
 });

```

but I don’t know how to integrate them in the sample app. Should they be inside the ZoomMtg.init function or what.

It’s also worth mentioning that the video call is taking place between an Android mobile device and a Web client. I want to be able to download the recorded video to my desktop.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 11, 2019, 9:27pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/2 "2019-07-11T21:27:32Z")

</div>

Hey @tony,

Basically the sample code and code you have are for joining a meeting and [to record a meeting, you need to be the host](https://zoom.github.io/sample-app-web/ZoomMtg.html#record).

I am working on creating an example of having the web SDK be the host so you can use the recording functionality.

I will send you what I come up with.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 12, 2019, 4:03pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/3 "2019-07-12T16:03:16Z")

</div>

Hey @tony,

In order to add recording functionality, the `role` must be set to `1` in the `meetConfig` object. This makes you the host when you join a meeting.

Then, you can add the functions you found into the `ZoomMtg.join` callback success function. Here is the sample-app-web code modified to record a meeting,

```javascript
(function() {

  console.log('checkSystemRequirements');
  console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

  // it's option if you want to chenge the jssdk dependency link resources.
  // ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.4.2/lib', '/av'); // CDN version default
  // ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/zoomus-jssdk/dist/lib', '/av'); // Local version default

  ZoomMtg.preLoadWasm();

  ZoomMtg.prepareJssdk();

  var API_KEY = 'YOUR_API_KEY';

  /**
   * NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
   * The below generateSignature should be done server side as not to expose your api secret in public
   * You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature
   */
  var API_SECRET = 'YOUR_API_SECRET';

  document.getElementById('join_meeting').addEventListener('click', function(e) {

    e.preventDefault();

    if (!this.form.checkValidity()) {
      alert("Enter Name and Meeting Number");
      return false;
    }

    var meetConfig = {
      apiKey: API_KEY,
      apiSecret: API_SECRET,
      meetingNumber: parseInt(document.getElementById('meeting_number').value),
      userName: document.getElementById('display_name').value,
      passWord: "",
      leaveUrl: "https://zoom.us",
      role: 1
    };

    var signature = ZoomMtg.generateSignature({
      meetingNumber: meetConfig.meetingNumber,
      apiKey: meetConfig.apiKey,
      apiSecret: meetConfig.apiSecret,
      role: meetConfig.role,
      success: function(res) {
        console.log(res.result);
      }
    });

    ZoomMtg.init({
      leaveUrl: 'http://www.zoom.us',
      isSupportAV: true,
      success: function() {
        ZoomMtg.join({
          meetingNumber: meetConfig.meetingNumber,
          userName: meetConfig.userName,
          signature: signature,
          apiKey: meetConfig.apiKey,
          userEmail: 'email@gmail.com',
          passWord: meetConfig.passWord,
          success: function(res) {

			$('#nav-tool').hide();
            console.log('join meeting success');

			// meeting set to record by default
            ZoomMtg.record({
              record: true
            });

			// meeting set to show record button
            // ZoomMtg.showRecordFunction({
            // show: true
            // });
          },
          error: function(res) {
            console.log(res);
          }
        });
      },
      error: function(res) {
        console.log(res);
      }
    });

  });

})();

```

Let me know if this works for you!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tony](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tony](https://devforum.zoom.us/u/tony)\
**Post date:** [July 15, 2019, 12:57pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/4 "2019-07-15T12:57:38Z")

</div>

Hey @tommy

Unfortunately, your code doesn’t seem to work. I used the exact same code you posted.  
I am able to join as host as I’m getting the message “You are are host now”. But the recording functionality is missing.  
I tried both functions that are related to recording(ZoomMtg.record and ZoomMtg.showRecordFunction) and neither seems to have effect. In the case of ZoomMtg.showRecordFunction the record button doesn’t appear.

Do I need to login first maybe?

Also, its worth mentioning that I’m using the free Basic plan.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 15, 2019, 3:16pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/5 "2019-07-15T15:16:14Z")

</div>

Hey @tony,

For the recording feature you do need at least the Pro paid plan: [https://zoom.us/pricing](https://zoom.us/pricing) OR you can reach out to our customer support and ask for the Free Trail if you want to test this out before paying.

After you do that, your code should work 🙂

Thanks for your patience,

Tommy

---

<div class="post-metadata">

**Author:** ![frayeralex](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frayeralex/32/2511_2.png) [@frayeralex](https://devforum.zoom.us/u/frayeralex)\
**Post date:** [December 30, 2019, 8:54am UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/6 "2019-12-30T08:54:27Z")

</div>

Hi @tommy

So to test the “recording” feature using WEB SDK need:

- Free Trial Account
- Use a supported browser (only crome)
- run as host user ZoomMtg.record({  
record: true  
});

Where I can find the latest WEB ZOOM SDK docs - I need to clarify If there is an ability to start “recording” in the cloud - only audio (no video, screen sharing).

Thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 30, 2019, 6:19pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/7 "2019-12-30T18:19:36Z")

</div>

Hey @frayeralex,

Correct!

> [@frayeralex](#):
>
> If there is an ability to start “recording” in the cloud - only audio (no video, screen sharing).

To accomplish this, simply have your video turned off.

Here are the Web SDK docs:  
[https://marketplace.zoom.us/docs/sdk/native-sdks/web](https://marketplace.zoom.us/docs/sdk/native-sdks/web)

Let me know if you have additional questions! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![frayeralex](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frayeralex/32/2511_2.png) [@frayeralex](https://devforum.zoom.us/u/frayeralex)\
**Post date:** [December 31, 2019, 7:37am UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/8 "2019-12-31T07:37:12Z")

</div>

Hi @tommy  
But in my case, our APP needs to record audio-only during video/audio/screen-sharing calls. Is it possible in the current Web SDK to add some extra flag? Something like ZoomMtg.record({  
record: true,  
formats: [“audio”]  
});  
Maybe in future versions? Also, will Computer Audio has more browser supports in the future? Now Computer Audio works well only in Chrome((

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 31, 2019, 6:26pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/9 "2019-12-31T18:26:55Z")

</div>

Hey @frayeralex,

Unfortunately our Web SDK does not support custom recording like that.

We will consider adding this to our roadmap.

[Yes, we are working on more browser support next year.](https://support.zoom.us/hc/en-us/articles/214629443-Zoom-Web-Client)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![keneth.prospark](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/keneth.prospark/32/11059_2.png) [@keneth.prospark](https://devforum.zoom.us/u/keneth.prospark)\
**Post date:** [June 26, 2020, 11:08am UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/10 "2020-06-26T11:08:56Z")

</div>

hello, @tommy I am using SDK web i just want to ask how can i stop the automatic recording… i want the recording functionality but i don’t want it to be automatic recording each time ill start a meeting… can you assists me on this issue…

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 29, 2020, 6:15pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/11 "2020-06-29T18:15:01Z")

</div>

Hey @keneth.prospark,

You can turn off automatic recording for specific [meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate), or in your [user](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettingsupdate) or [account](https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/accountsettingsupdate) settings. You can also change these settings in the [Zoom Web Portal](http://zoom.us/).

Or with the Web SDK, while you are in the meeting, you can turn off recording via the [record function](https://zoom.github.io/sample-app-web/ZoomMtg.html#record).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:29pm UTC](https://devforum.zoom.us/t/how-to-add-recording-functionality-in-my-video-calls/4978/12 "2020-08-21T22:29:30Z")

</div>

Closed on August 21, 2020, 10:29pm UTC


