# Not able to know when the meeting was ended when using component view

**URL:** <https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091>\
**Category:** Meetings\
**Created:** [November 21, 2022, 6:28am UTC](https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091 "2022-11-21T06:28:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saideepj](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@saideepj](https://devforum.zoom.us/u/saideepj)\
**Post date:** [November 21, 2022, 6:28am UTC](https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091/1 "2022-11-21T06:28:24Z")

</div>

Hi there, I was using the component view for the zoom meetings, everything was working fine as expected but I was not able to know when the meeting ended. I need my page to get refreshed when a meeting ends.

I need to call some APIs when the meeting was ended but not able to do that as I’m getting to know when the meeting ends

This was the code used for joining the meeting

```auto
  // joining the call.
  startMeeting(signatureToken: string) {
    const callerName = localStorage.getItem('dispaly_name');
    const element = this.requestDetails.element;
    const client = element.createClient();
    const meetingSDKElement = document.getElementById('meetingSDKElement');
    this.isLoading = false;
    client.init({
      zoomAppRoot: meetingSDKElement,
      customize: {
        video: {
          isResizable: false,
          popper: {
            disableDraggable: true,
            placement: 'top',
          },
          viewSizes: {
            default: {
              width: 750,
              height: 420,
            },
            ribbon: {
              width: 150,
              height: 350,
            },
          },
        },
        chat: {
          popper: {
            disableDraggable: true,
            anchorElement: meetingSDKElement,
            placement: 'left',
          },
        },
      },
    });
    client.join({
      sdkKey: this.sdkKey,
      signature: signatureToken,
      meetingNumber: this.meetingDetails.id,
      password: this.passWord,
      userName: callerName,
    });
    this.requestDetails.action_type === callActions[0]
      ? this.setDirectCall()
      : this.setScheuleCall();
    this.authtokenService.setIsCallInitiated(true);
  }

```

I am using web SDK - 2.6.0  
Environment: Angular 12  
Browse: Chrome (107.0)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 25, 2022, 6:26pm UTC](https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091/3 "2022-11-25T18:26:24Z")

</div>

Hi @saideepj  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
Have you tried our webhooks? By subscribing to an event, you will get a notification when the meeting ends

> **[Zoom API Events - Meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/events/#operation/meeting.ended)**
>
> API Reference for /api-reference/zoom-api/events

Let me know if this helps!  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![saideepj](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@saideepj](https://devforum.zoom.us/u/saideepj)\
**Post date:** [November 29, 2022, 6:51am UTC](https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091/4 "2022-11-29T06:51:46Z")

</div>

Hello Elisa, thanks for getting back, I have tried the above solution but it doesn’t seem to work.  
I am using the free account is that the reason?

And is there any other way for this issue?

Thanks!

---

<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:52pm UTC](https://devforum.zoom.us/t/not-able-to-know-when-the-meeting-was-ended-when-using-component-view/79091/5 "2023-02-14T16:52:08Z")

</div>

@saideepj,

Sorry for the missed response, please see this post for reference on detecting when the meeting ended :

> [@Can't rejoin a webinar using Component View in React App](https://devforum.zoom.us/t/cant-rejoin-a-webinar-using-component-view-in-react-app/68505/8):
>
> @adigunsherif, Unlike Client View, there is no “page refresh” in Component View once a meeting is ended or left. Instead, the Component SDK provides [leaveMeeting](https://marketplace.zoom.us/docs/sdk/native-sdks/web/component-view/reference/) function and [Meeting Left Webhook](https://marketplace.zoom.us/docs/api-reference/zoom-api/events/#/paths/meeting.participant_left/post) so you can implement the flow of your choice.
