# Meeting recording not happening automatically in zoom web sdk

**URL:** <https://devforum.zoom.us/t/meeting-recording-not-happening-automatically-in-zoom-web-sdk/17822>\
**Category:** Web\
**Created:** [May 15, 2020, 12:43pm UTC](https://devforum.zoom.us/t/meeting-recording-not-happening-automatically-in-zoom-web-sdk/17822 "2020-05-15T12:43:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 19, 2020, 9:04pm UTC](https://devforum.zoom.us/t/meeting-recording-not-happening-automatically-in-zoom-web-sdk/17822/2 "2020-05-19T21:04:53Z")

</div>

Hey @rahul4,

Where in your code are you using the recording function?

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

```

Make sure it is inside your ZoomMtg.Join() success callback function.

```auto
ZoomMtg.init({
      leaveUrl: this.leaveUrl,
      isSupportAV: true,
      success: (success) => {
        console.log(success)

        ZoomMtg.join({
          signature: signature,
          meetingNumber: this.meetingNumber,
          userName: this.userName,
          apiKey: this.apiKey,
          userEmail: this.userEmail,
          passWord: this.passWord,
          success: (success) => {
            console.log(success)

            ZoomMtg.record({
                record: true
            });
          },
          error: (error) => {
            console.log(error)
          }
        })

      },
      error: (error) => {
        console.log(error)
      }
    })

```

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/meeting-recording-not-happening-automatically-in-zoom-web-sdk/17822)._
