# Is it possible to init a new client after having a meeting using the component view

**URL:** <https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027>\
**Category:** Web\
**Created:** [April 4, 2023, 1:00pm UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027 "2023-04-04T13:00:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmd11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jmd11/32/17615_2.png) [@jmd11](https://devforum.zoom.us/u/jmd11)\
**Post date:** [April 4, 2023, 1:00pm UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027/1 "2023-04-04T13:00:27Z")

</div>

**Description**  
Using the component view after having a meeting, is it possible to initialize a new client without having to do a full page refresh?

**Browser Console Error**  
Init Error TypeError: Cannot assign to read only property ‘video’ of object ‘#’  
at zoomus-websdk-embedded.umd.min.js:2:1  
at Array.forEach ()  
at Die.init (zoomus-websdk-embedded.umd.min.js:2:1)  
at onClick (VideoRequestButton.js:267:1)

**Which Web Meeting SDK version?**  
@zoomus/websdk: 2.9.7

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

1. Start a meeting
2. End the meeting
3. Try to initialize the zoom client again with any kind of customization, eg

```auto
client.init({
  zoomAppRoot: document.getElementById('zoomSDK'),
   language: 'en-US',
   customize: {
     video: {
        viewSizes: {
           default: {
              height: 240,
               width: 240,
            },
         },
      },
   },
})

```

**Troubleshooting Routes**  
I have tried using `ZoomMtgEmbedded.destroyClient()` but it has no effect

**Additional context**  
I will sometimes need to create a new client with custom buttons

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 5, 2023, 7:11am UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027/2 "2023-04-05T07:11:11Z")

</div>

in the newer versions of websdk, you can destroy and re-create the client.

I would recommend trying out 2.11.0 for your scenario.

---

<div class="post-metadata">

**Author:** ![jmd11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jmd11/32/17615_2.png) [@jmd11](https://devforum.zoom.us/u/jmd11)\
**Post date:** [April 6, 2023, 10:46am UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027/3 "2023-04-06T10:46:49Z")

</div>

Going to version 2.11.0 fixed the issue I was having

Thanks

---

<div class="post-metadata">

**Author:** ![tuanthinhit](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tuanthinhit/32/44109_2.png) [@tuanthinhit](https://devforum.zoom.us/u/tuanthinhit)\
**Post date:** [April 6, 2023, 5:02pm UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027/4 "2023-04-06T17:02:20Z")

</div>

Hi @jmd11 ,

- I have same the problem as you. But i still have this problem when i upgrade to 2.11.0.  
Could you please share the code `ZoomMtgEmbedded.destroyClient() ` where you put this command?

Best regards,  
John

---

<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:** [May 7, 2023, 3:02am UTC](https://devforum.zoom.us/t/is-it-possible-to-init-a-new-client-after-having-a-meeting-using-the-component-view/86027/5 "2023-05-07T03:02:36Z")

</div>

Closed on May 7, 2023, 3:02am UTC

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