# Not able to open custom UI

**URL:** <https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208>\
**Category:** Meeting SDK\
**Created:** [February 22, 2020, 2:23pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208 "2020-02-22T14:23:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit.acet13](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ankit.acet13](https://devforum.zoom.us/u/ankit.acet13)\
**Post date:** [February 22, 2020, 2:23pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/1 "2020-02-22T14:23:32Z")

</div>

I am trying to createvideocontainer , but not able to open customUI screen, although I am able to join meeting.  
not able to show that meeting on customized UI  
Below is the code i have added:

```auto
VideoPlayer vp = new VideoPlayer();

                    RECT rt = new RECT
                    {
                        Right = 0,
                        Top = 10,
                        Left = 10,
                        Bottom = 50
                    };
                    GCHandle handle1 = GCHandle.Alloc(vp);
                    IntPtr ptr = (IntPtr)handle1;

                    var container = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetCustomizedUIMgrWrap().CreateVideoContainer(ptr, rt);
                    container.CreateVideoElement(VideoRenderElementType.VideoRenderElement_ACTIVE);
                    container.Show();

```

---

<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:** [February 24, 2020, 11:34pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/2 "2020-02-24T23:34:49Z")

</div>

Hi [ankit.acet13](https://devforum.zoom.us/u/ankit.acet13),

Thanks for the post. Which SDK version are you using? Did you enable the custom UI feature when initializing the SDK?

`param.config_opts.optionalFeatures = 1<<5;`

Please see: [https://marketplace.zoom.us/docs/sdk/native-sdks/windows/mastering-sdk/custom-ui-feature](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/mastering-sdk/custom-ui-feature) for more info.

Thanks!

---

<div class="post-metadata">

**Author:** ![ankit.acet13](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ankit.acet13](https://devforum.zoom.us/u/ankit.acet13)\
**Post date:** [February 25, 2020, 12:21pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/3 "2020-02-25T12:21:12Z")

</div>

Hi,

I am able to connect , open and join meeting if i use zoom meeting UI. it works fine for me.  
but I am not able to open custom UI, although in case of custom UI aproach I am able to join the meeting.

Here is the approach i am following :  
Initialization :  
Code snippet for initialization :  
ZOOM\_SDK\_DOTNET\_WRAP.InitParam param = new ZOOM\_SDK\_DOTNET\_WRAP.InitParam();  
param.web\_domain = “[https://zoom.us](https://zoom.us)”;  
param.config\_opts.optionalFeatures = 32;

```
        ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(param);

```

AUTHENTICATION :  
Code Snippet for authentication :  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add\_CB\_onAuthenticationReturn(onAuthenticationReturn);

```
        ZOOM_SDK_DOTNET_WRAP.AuthParam authparam = new ZOOM_SDK_DOTNET_WRAP.AuthParam();

        authparam.appKey = "XXXXXXXX";
        authparam.appSecret = "XXXXXXX";
        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authparam);

```

Meeting status change event : there is one event onMeetingStatusChange, when the meeting status is MEETING\_STATUS\_INMEETING

Below Code executes :

videocontainer vc = new videocontainer();  
RECT t = new RECT  
{  
Right = 10,  
Left = 10,  
Bottom = 100,  
Top = 10  
};  
GCHandle handle1 = GCHandle.Alloc(vc);  
IntPtr parameter = (IntPtr)handle1;

```
                    var customUIContainer = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetCustomizedUIMgrWrap().CreateVideoContainer(parameter, t);
                    //customUIContainer.
                    customUIContainer.CreateVideoElement(VideoRenderElementType.VideoRenderElement_ACTIVE);
                    customUIContainer.Show();

```

JOINING Meeting :  
Code snippet for the same :  
ZOOM\_SDK\_DOTNET\_WRAP.JoinParam joinparam = new ZOOM\_SDK\_DOTNET\_WRAP.JoinParam();  
[//joinparam.userType](https://joinparam.userType) = ZOOM\_SDK\_DOTNET\_WRAP.SDKUserType.SDK\_UT\_APIUSER;  
joinparam.userType = ZOOM\_SDK\_DOTNET\_WRAP.SDKUserType.SDK\_UT\_APIUSER;  
ZOOM\_SDK\_DOTNET\_WRAP.JoinParam4APIUser join\_api\_param = new ZOOM\_SDK\_DOTNET\_WRAP.JoinParam4APIUser();  
join\_api\_param.meetingNumber = 123456789;  
join\_api\_param.userName = “”;  
joinparam.apiuserJoin = join\_api\_param;

```
        ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().Join(joinparam);
		
		
		
		After following this approacg i am able to join meeting but custom UI provided by zoom is not getting opened.
		Can you please let me know if i am missing something or any problem with my approach.
```

---

<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:** [February 27, 2020, 2:36am UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/4 "2020-02-27T02:36:09Z")

</div>

Hi [ankit.acet13](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/3),

Thanks for the reply and for providing the code snippet. The steps to use the Custom UI can be concluded as the following:

1. Provide a window and use the window handle to create a video container
2. Create video elements in the video container
3. Use the video elements and subscribe to the video stream of a certain user
4. Show the window

Based on your code snippet, the step 2, 3 is not showing.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![ankit.acet13](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ankit.acet13](https://devforum.zoom.us/u/ankit.acet13)\
**Post date:** [February 29, 2020, 5:11pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/5 "2020-02-29T17:11:24Z")

</div>

hi,  
Thanks for reply.  
As per ur reply,

1. Provide a window and use the window handle to create a video container
2. Create video elements in the video container
3. Use the video elements and subscribe to the video stream of a certain user
4. Show the window

I have mapped your steps to below code snippet , please verify and let me know where i missed.

var mp = axWindowsMediaPlayer1;

```
        RECT rt = new RECT
        {
            Right = 0,
            Top = 10,
            Left = 10,
            Bottom = 50
        };
        GCHandle handle1 = GCHandle.Alloc(mp);
        IntPtr ptr = (IntPtr)handle1;

        var container = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetCustomizedUIMgrWrap().CreateVideoContainer(ptr, rt); step 1
       
        container.CreateVideoElement(VideoRenderElementType.VideoRenderElement_ACTIVE); step 2
        
        container.Show(); step 4

```

What i found was may be i missed step 3, for this can u tell me how can I apply code to use video elements and subscribe to video stream?

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![ankit.acet13](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ankit.acet13](https://devforum.zoom.us/u/ankit.acet13)\
**Post date:** [March 3, 2020, 4:47pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/6 "2020-03-03T16:47:20Z")

</div>

Can you please let me know. Where I am missing something?

---

<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:** [March 5, 2020, 1:26am UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/7 "2020-03-05T01:26:18Z")

</div>

Hi [ankit.acet13](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/6),

Thanks for the reply and I see you have the same question in this post: [How to custom the conference UI](https://devforum.zoom.us/t/how-to-custom-the-conference-ui/2810/8), please see my response to your questions there.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:27pm UTC](https://devforum.zoom.us/t/not-able-to-open-custom-ui/8208/8 "2020-08-21T19:27:55Z")

</div>


