# Webinar gallery mode shows a black screen

**URL:** <https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606>\
**Category:** Meeting SDK\
**Created:** [June 16, 2021, 8:36pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606 "2021-06-16T20:36:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuejb](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yuejb](https://devforum.zoom.us/u/yuejb)\
**Post date:** [June 16, 2021, 8:36pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/1 "2021-06-16T20:36:48Z")

</div>

I encountered a technical problem and would like to consult a solution;

Our APP integrates the Zoom SDK, and we need to use the custom UI for normal meetings, but standard UI for Webinars, but we cannot distinguish whether a meeting number is a normal meeting or Webinar.

Our current plan is to use custom UI for all first, and if it is a Webinar, we would have a call in the callback onJoinWebinarNeedUserNameAndEmail, and then exit the custom UI page, and then open the non-custom UI mode to enter. This solution can enter Webinar normally, but when switching to gallery mode, it shows a black screen and no picture. I don’t know if it is a zoom bug. Please help to troubleshoot it;

Before we consider entering, if there is an API that can query whether the meeting number is webinar, we can determine which UI mode to use before entering. This solution will be better. Please help confirm whether there is such an API;

Thanks for your attention, no matter whether it helps.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 17, 2021, 8:13pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/2 "2021-06-17T20:13:44Z")

</div>

Hey @yuejb,

Thanks for using the dev forum!

What platform are you using?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![yuejb](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yuejb](https://devforum.zoom.us/u/yuejb)\
**Post date:** [June 21, 2021, 2:06pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/4 "2021-06-21T14:06:44Z")

</div>

Thanks for attention，the problem occurs on both iOS and Android.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 22, 2021, 10:26pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/5 "2021-06-22T22:26:31Z")

</div>

Hey @yuejb,

This is definitely an interesting situation. I ran some tests and it looks like the meeting service releases it is entering a webinar in the onMeetingStateChange callback while it is connecting. So you could try disabling custom UI by default, waiting for a connecting state, check the meeting type, if it is webinar enable custom UI and present it:

```auto
- (void)onMeetingStateChange:(MobileRTCMeetingState)state
{
    MobileRTCMeetingType type = [[[MobileRTC sharedRTC] getMeetingService] getMeetingType];
    if (state == MobileRTCMeetingState_Connecting && type == MobileRTCMeetingType_Webinar)
    {
        [[MobileRTC sharedRTC] getMeetingSettings].enableCustomMeeting = true;
        // assign your custommeeting delegate and present your UI here
    }

```

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![yuejb](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yuejb](https://devforum.zoom.us/u/yuejb)\
**Post date:** [June 24, 2021, 2:30pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/6 "2021-06-24T14:30:37Z")

</div>

I may not make it clear, anyway thank you for your idea.  
I tried it on Android, but when the onMeetingStatusChanged callback status is MEETING\_STATUS\_CONNECTING, the method ZoomSDK.getInstance().getInMeetingService().isWebinarMeeting() returns false, I wonder if it doesn’t know the meeting type as the meeting is in connecting.

```auto
if(meetingStatus == MeetingStatus.MEETING_STATUS_CONNECTING && ZoomSDK.getInstance().getInMeetingService().isWebinarMeeting()){
ZoomSDK.getInstance().getMeetingSettingsHelper().setCustomizedMeetingUIEnabled(false);
        }

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 24, 2021, 7:40pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/7 "2021-06-24T19:40:51Z")

</div>

Hi @yuejb,

For determining whether a meeting is a webinar or regular meeting before joining, I don’t think the SDK is going to be the most effective approach. The client SDK is primarily used for in-meeting functionality. For obtaining information about the meeting before attempting to join, your best bet would be our REST APIs. If you need any assistance with finding the correct APIs for this, please feel free to reach out in #api-and-webhooks. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![yuejb](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yuejb](https://devforum.zoom.us/u/yuejb)\
**Post date:** [June 24, 2021, 10:17pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/8 "2021-06-24T22:17:47Z")

</div>

Yes, I thought about querying the API before entering the meeting, I’ll try that, thank you anyway. 😀

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 25, 2021, 6:58pm UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/9 "2021-06-25T18:58:07Z")

</div>

Glad I was able to help!

Please feel free to reach back out with any additional SDK questions. 🙂

---

<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:** [July 26, 2021, 4:58am UTC](https://devforum.zoom.us/t/webinar-gallery-mode-shows-a-black-screen/52606/10 "2021-07-26T04:58:43Z")

</div>

Closed on July 26, 2021, 4:58am UTC

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