# Zoom SDK 2.9.7 component view possible bug

**URL:** <https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227>\
**Category:** Web\
**Created:** [January 27, 2023, 9:51am UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227 "2023-01-27T09:51:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![it17](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@it17](https://devforum.zoom.us/u/it17)\
**Post date:** [January 27, 2023, 9:51am UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/1 "2023-01-27T09:51:10Z")

</div>

Hi all,  
we are integrating the websdk package into our Angular 15 app  
Below the Meeting SDK type and version we’re working:  
Meeting SDK 2.9.7 component view

We have a problem when the meeting starts after the user tries to join.

The user clicks join and receives the message ‘Meeting has not started’

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/2/92bfccfa06ea295c40bac2938b41743350f1970b.png)

Then the user close the window by clicking on the red button.

When meeting starts , user clicks on Join Meeting again (without refresh the page).  
It seems that the join was successful, but no windows open.  
The meetingSDKElement view is empty.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/a/0aeeacc6a38cc361d3018710d8b6e7300f4e9a1f.png)

There are no errors in console and in the zoom client we can see user as attendee of meeting.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/a/ea8cc7ceecbfed063c191708655beff779ef267b.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/2/022dff0e9ce47ead032e52b89b786aec1137e686.png)

We have downloaded the meetingsdk-angular-sample and we were able to reproduce the problem

Steps to reproduce the behavior including:

1. Join meeting by sample web app when meeting has not started yet
2. Leave meeting by clicking the red button
3. Start the meeting from zoom client
4. Click on join meeting again (without refresh the page)

The result is an empty meetingSDKElement view, even if join was successful and you can see user as attendee in zoom client.

Anyone with the same problem?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 14, 2023, 4:42pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/2 "2023-02-14T16:42:30Z")

</div>

@it17,  
Thank you for posting on the Zoom Developer Forum and sorry for the missed response. I see you are using the Meeting SDK 2.9.7 component view and have a problem when the meeting starts after the user tries to join. I’ve seen reports of similar behavior in the past where clicking on join the meeting again without refreshing the page causes unintended behavior. We recently introduced an API to destroy the Component View client to allow re-creation from scratch. Here is the link to the changelog and the Component View documentation for your reference:

### DestroyClient Changelog

> **[Support](https://developers.zoom.us/support/)**
>
> Support plans that provide prioritized developer-specific resources.

# destroyClient

> **[EmbeddedClient | Zoom Meeting SDK for Web - Component View](https://marketplacefront.zoom.us/sdk/meeting/web/components/modules/EmbeddedClient.html)**
>
> Documentation for Zoom Meeting SDK for Web - Component View

When attempting to rejoin meeting without refreshing the page, can you try the following approach:

1. Upon leaving, destroy the client.
2. When returning back to the angular page/component, create the client and initialize again.

Please let us know if this helps.

---

<div class="post-metadata">

**Author:** ![alfonso.moscato1](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@alfonso.moscato1](https://devforum.zoom.us/u/alfonso.moscato1)\
**Post date:** [February 14, 2023, 5:42pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/3 "2023-02-14T17:42:16Z")

</div>

Hi @donte.zoom and thanks for your reply. Unfortunately this function doesn’t seem to be presente at the links you posted. A full search on google and GitHub has just showed this reference

 ![immagine](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/5/957459072b7ef9a853dd86a2a6a668c270afbacf.png)  
in [meetingsdk-web/embedded.d.ts at master · zoom/meetingsdk-web · GitHub](https://github.com/zoom/meetingsdk-web/blob/master/embedded.d.ts).  
Could please point us to some link where we can find some little documentation, or just drop two lines of code, to understand how in the context of the angular component, we can destroy the client?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 14, 2023, 6:04pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/4 "2023-02-14T18:04:25Z")

</div>

Welcome, @alfonso.moscato1,

You can find the link to our documentation on destroyClient method here :

> **[ZoomMtgEmbedded | Zoom Meeting SDK for Web - Component View](https://marketplacefront.zoom.us/sdk/meeting/web/components/modules/ZoomMtgEmbedded.html#destroyClient)**
>
> Documentation for Zoom Meeting SDK for Web - Component View

### Screenshot of destroyClient for reference :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/0/c0cd9385190b3725ea03bfecc97267b922c3355b.png)

### Screenshot of Changelog for reference:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/5/95928e7838cab6904105db6de0b24e919f454437.png)

Let us know if this helps.

---

<div class="post-metadata">

**Author:** ![it17](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@it17](https://devforum.zoom.us/u/it17)\
**Post date:** [February 24, 2023, 3:55pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/5 "2023-02-24T15:55:32Z")

</div>

Hi Dante,  
thank you for reply.  
just to avoid any iincomprehension, I would like to remember that we are in a SPA Angular app. This means we never leave the page. We try to join the meeting, we receive an error. So, we remain inside the same component, and code doesn’t get reinitialized.  
We thought about checking if the meeting is started before joining it, but in our context which is interactive, webhook doesn’t fit.

So in order to avoid unexpected behavior, every time client join fails,  
we destroy client, we recreate and initialize it again:

code executed every time a client.Join fails:

```auto
ZoomMtgEmbedded.destroyClient();
this.client = ZoomMtgEmbedded.createClient();
this.client
	.init({
		debug: true,
		zoomAppRoot: this.meetingSDKElement,
		language: 'it-IT',
		customize: {
			meetingInfo: ['topic', 'host', 'mn', 'invite', 'participant'],
			video: {
				isResizable: this.resize,
				popper: { disableDraggable: !this.draggable },
				viewSizes: {
					default: {
						width: this.videoWidth,
						height: this.videoHeight
					}
				}
			}
		}
	})
	.then(() => this.logService.info('Client init success'))
	.catch((err) => this.logService.info('Error INIT: ', err));

```

but we encounter following error:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/3/23a5f14d613256deabfd4b53f428f0fd45c58f0f.png)

as if we were calling init multiple times.  
Moreover, this error throws even if we have a catch in our init code.

Actually we are doing so, but we understood that destroyclient has to called exactly for this purpose, so that we can Initialize the client again.

What are we doing wrong?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 24, 2023, 4:29pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/6 "2023-02-24T16:29:43Z")

</div>

@it17,

Thank you for sharing these additional details. I believe this is related to a known issue that our Engineering team is working to address [Z-475406]. Please make sure to subscribe to our blog, change log, and developer guides topics for the latest news, updates, and fixes. You can also find Announcements here :

[https://marketplace.zoom.us/docs/guides/stay-up-to-date/announcements](https://marketplace.zoom.us/docs/guides/stay-up-to-date/announcements)

Let me know if you have any additional questions.

---

<div class="post-metadata">

**Author:** ![it17](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@it17](https://devforum.zoom.us/u/it17)\
**Post date:** [February 24, 2023, 4:44pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/7 "2023-02-24T16:44:17Z")

</div>

Thank you for reply,  
is there a workaround, or are we stuck with component view until the bug is solved?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 24, 2023, 5:10pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/8 "2023-02-24T17:10:45Z")

</div>

@it17 ,

For now, when attempting to rejoin a meeting, you can refresh the page. The fix is slated for the next release.

---

<div class="post-metadata">

**Author:** ![alfonso.moscato1](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@alfonso.moscato1](https://devforum.zoom.us/u/alfonso.moscato1)\
**Post date:** [March 9, 2023, 1:18pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/9 "2023-03-09T13:18:45Z")

</div>

Update. Version 2.10.1 has solved the bug.  
Thanks for helping us.

---

<div class="post-metadata">

**Author:** ![thinh.pv](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@thinh.pv](https://devforum.zoom.us/u/thinh.pv)\
**Post date:** [March 13, 2023, 9:39am UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/10 "2023-03-13T09:39:47Z")

</div>

Dear @alfonso.moscato1

How you can solve it?  
I still have this problem even after updating to 2.10.1

Thank you in advance.

Best regards,  
John.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 21, 2023, 5:17pm UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/11 "2023-03-21T17:17:22Z")

</div>

@thinh.pv.

Are you able to share a screenshot of the browser console when you see this behavior ?

---

<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:** [April 21, 2023, 3:18am UTC](https://devforum.zoom.us/t/zoom-sdk-2-9-7-component-view-possible-bug/82227/12 "2023-04-21T03:18:06Z")

</div>

Closed on April 21, 2023, 3:18am UTC

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