# Zoom Video Call Issue

**URL:** <https://devforum.zoom.us/t/zoom-video-call-issue/4186>\
**Category:** Android\
**Created:** [May 8, 2019, 10:41am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186 "2019-05-08T10:41:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 8, 2019, 10:41am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/1 "2019-05-08T10:41:47Z")

</div>

Im developing android with zoom sdk actually my issues is first time when i trigger video call the error code is -1 and then once again trigger video call it will working so what is the issue im facing can u assist me

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 8, 2019, 5:05pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/2 "2019-05-08T17:05:20Z")

</div>

Hi aasaikeyan08,

Thanks for using Zoom SDK. Are you getting this error code from our demo app([https://github.com/zoom/zoom-sdk-android](https://github.com/zoom/zoom-sdk-android))? If so, then the error code -1 is actually defined in the code(Not from our SDK), if you look at the following code snippet in the demo:

```auto
        int ret = -1;
        MeetingService meetingService = mZoomSDK.getMeetingService();
        if(meetingService == null) {
            return ret;
        }

```

If the `getMeetingService` returns null, then you will get error code -1; Please double check whether you have successfully initialized our Zoom SDK. Here is the doc for SDK initialization: [https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 8, 2019, 5:19pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/3 "2019-05-08T17:19:13Z")

</div>

It getting first time only next time it will working fine so only im asking about it

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 8, 2019, 6:40pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/4 "2019-05-08T18:40:04Z")

</div>

Hi,  
If you got any error codes, you can refer to the error code dictionary in our doc: [https://marketplace.zoom.us/docs/sdk/native-sdks/android/resource/error-codes](https://marketplace.zoom.us/docs/sdk/native-sdks/android/resource/error-codes). We don’t have the error code -1 besides the Pre-Meeting method, so it is highly possible the error code is caused by the mZoomSDK.getMeetingService() is getting null. If you have successfully initialized the SDK, and everything else works fine besides this one, please provide any logs or code snippets so we can further investigate into this issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 9, 2019, 10:51am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/5 "2019-05-09T10:51:58Z")

</div>

Hi,  
Great its working for me thanks and one more thing is when we finish/leave meeting the response is giving the meeting id not available so may i know that issues

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 9, 2019, 6:42pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/6 "2019-05-09T18:42:12Z")

</div>

Hi,  
May I ask which method are you referring to? `onMeetingLeaveComplete`?

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 10, 2019, 12:44pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/7 "2019-05-10T12:44:13Z")

</div>

Hi,  
Yes i’m using the method onMeetingLeaveComplete interface method

Advance Thanks

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [May 10, 2019, 8:13pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/8 "2019-05-10T20:13:08Z")

</div>

Hi,

We have received your request and will be responding to you shortly.

Thanks,

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 11, 2019, 2:03am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/9 "2019-05-11T02:03:49Z")

</div>

Hi,

The method `onMeetingLeaveComplete(long ret)`([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingLeaveComplete-long-](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingLeaveComplete-long-)) will provide a `long ret` variable, which is the end meeting reason that is defined in `MeetingEndReason`([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingEndReason.html](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingEndReason.html)).

There is no “Meeting ID not available” in the MeetingEndReason, could you provide more info on this? Can you provide the exact error message and location when you get the “Meeting ID not available” error message? Can you provide some code snippet regarding this?

Help this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 13, 2019, 9:41am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/10 "2019-05-13T09:41:30Z")

</div>

Hi Team,  
FYI we have process that i will explain for the above we had facing the issue  
When we process video call on zoom sdk it will goes smoothly nothing wrong when we leave/end meeting from the video call .After that we trigger the one api call for getting the response for the particular meeting id like call summary,start date and end date etc.,After triggering the api call it show null start time and end time in some time so that im thinking about there is some fraction of second to get the data from zoom call. For that we are confusing about that shall you please support for us team.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 13, 2019, 6:27pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/11 "2019-05-13T18:27:56Z")

</div>

Hi aasaikeyan08,

Thanks for the info. We are here to help but it is really hard for us to find the root cause and provide further assistance with the info you provided. May I ask:

1. Which API call did you call when leaving/ending the meeting(In `onMeetingLeaveComplete`)? Which API call are you referring to?
2. Can you provide some code snippets regarding this issue so that we can further look into this?

Looking forward to hearing from you. Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 14, 2019, 11:41am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/12 "2019-05-14T11:41:42Z")

</div>

Hi Team,  
In our backend this is a url to get the details of the zoom details (/meetings/{meetingId})

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 14, 2019, 5:15pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/13 "2019-05-14T17:15:26Z")

</div>

Hi,  
Thanks for the reply. I see. You are calling our Zoom API([https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting)) to retrieve the meeting info after the meeting ends. At the time you trigger the `onMeetingLeaveComplete` interface, the end meeting request is just sent to our backend to end the meeting. The meeting info is not ready yet. If you would like to receive meeting information after leaving the meeting, you can:

1. Set a 2-3 second timeout after you ends the meeting, and before you call the API to retrieve meeting info.
2. Or subscribe to our Webhook service([https://marketplace.zoom.us/docs/guides/webhooks/event-subscriptions](https://marketplace.zoom.us/docs/guides/webhooks/event-subscriptions)), there is an event for “end meeting”, once you leave the meeting, the webhook will send you the meeting info when the info data is ready.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 14, 2019, 5:32pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/14 "2019-05-14T17:32:02Z")

</div>

Hi Team,  
Thanks for the solution and one more clarification in our app there is in audio call so can we do audio call by using both participant\_id and host\_video boolean value from our sdk side with meeting id

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 15, 2019, 11:05pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/15 "2019-05-15T23:05:58Z")

</div>

Hi,

Thanks for the info. Hope the solutions can help you to resolve your issue. If you are still experiencing any errors or issues, please feel free to post the error message or the steps to reproduce the issue here.

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 17, 2019, 8:09am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/16 "2019-05-17T08:09:14Z")

</div>

Hi Team,  
There is possible for handling video call and audio call default using meeting id  
By using meeting id can we differentiate the video call or audio call from our zoom api

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 17, 2019, 11:24pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/17 "2019-05-17T23:24:41Z")

</div>

Hi,  
Thanks for the reply. Are you saying that you would like to distinguish the meetings that has both video and audio on and the meeting that has only audio on(Like call-me, dial-in)?

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 25, 2019, 10:31am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/18 "2019-05-25T10:31:25Z")

</div>

Hi Team,  
Thank your kind response for all above . In our sdk is there any option to hide leave meeting button alone we just want to display the end meeting alone See the attached image file

 ![Screenshot_20190525_121825](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/3e6508c7ab6a224e72ffe3e9e4f6b6a4b1c55472.jpeg) on the popup when the end meeting through sdk

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [May 28, 2019, 10:30am UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/19 "2019-05-28T10:30:07Z")

</div>

Hi Team,  
Thank your kind response for all above . In our sdk is there any option to hide leave meeting button alone we just want to display the end meeting alone See the attached image file

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 28, 2019, 7:53pm UTC](https://devforum.zoom.us/t/zoom-video-call-issue/4186/20 "2019-05-28T19:53:20Z")

</div>

Hi,  
Thanks for the reply. Yes, we have a setting for this in the `MeetingSettingsHelper` called `setNoLeaveMeetingButtonForHostEnabled` ([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#setNoLeaveMeetingButtonForHostEnabled-boolean-](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#setNoLeaveMeetingButtonForHostEnabled-boolean-)), you can also check whether this is enable or not by calling `isNoLeaveMeetingButtonForHostEnabled`([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#isNoLeaveMeetingButtonForHostEnabled--](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#isNoLeaveMeetingButtonForHostEnabled--)) we have this in our demo ([https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/MeetingSettingActivity.java#L184](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/MeetingSettingActivity.java#L184))

Hope this helps. Thanks!

[Next page](https://devforum.zoom.us/t/zoom-video-call-issue/4186.md?page=2)
