# Zoom Meeting Web SDK and Component View is completely black

**URL:** <https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669>\
**Category:** Web\
**Created:** [December 20, 2021, 10:24am UTC](https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669 "2021-12-20T10:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![camillo](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@camillo](https://devforum.zoom.us/u/camillo)\
**Post date:** [December 20, 2021, 10:24am UTC](https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669/1 "2021-12-20T10:24:07Z")

</div>

**Description**  
Zoom Web SDK 2.1.1 trying to use new Component View (following docs) but the view showed is completely blacked, unable to resize, and no error on console inspector (beside GL\_INVALID\_VALUE : glViewport: negative width/height)

**Browser Console Error**  
GL\_INVALID\_VALUE : glViewport: negative width/height

**Which Web Meeting SDK version?**  
2.1.1

**Meeting SDK Code Snippets**

```auto
<template>
  <div class="iframe-container">
      <div id="meetingSDKElementDiv" ref="meetingSDKElementDiv">
          <!-- Zoom Meeting SDK Rendered Here -->
      </div>
    <meta charset="utf-8">
   <link
     type="text/css"
     rel="stylesheet"
     href="https://source.zoom.us/2.1.1/css/bootstrap.css"
   />
   <link
     type="text/css"
     rel="stylesheet"
     href="https://source.zoom.us/2.1.1/css/react-select.css"
   />
   <meta
     name="format-detection"
     content="telephone=no"
   >
  </div>
</template>
<script>
  // import { ZoomMtg } from "@zoomus/websdk";
  import ZoomMtgEmbedded from "@zoomus/websdk/embedded";
  const client = ZoomMtgEmbedded.createClient();
  console.log("checkSystemRequirements");

  export default {
    name: "ZoomFrame",
    data() {
      return {
        src: "",
        meetConfig: {},
        signature: null,
        API_KEY: null,
          meetingSDKElement: null
      };
    },
    props: {
      nickname: String,
      meetingId: String,
      password: String,
      hostId: String,
      userRole: Number,
      isUserInstructor: Boolean,
      isUserLiveCourseTutor: Boolean,
    },
    created() {
    },
    mounted: function () {
        this.meetingSDKElement = this.$refs.meetingSDKElementDiv;

        console.log('zoom frame created');
        this.zoomInite();
    },

    methods: {
      whereToGoWhenLeavingMeeting() {
        if (
          this.userRole === 1 &&
          !this.isUserInstructor &&
          !this.isUserLiveCourseTutor
        ) {
          return `/agency/live_courses_events`;
        }
        if (
          this.userRole === 1 &&
          this.isUserInstructor &&
          !this.isUserLiveCourseTutor
        ) {
          return `/dashboard/instructor`;
        }
        if (
          this.userRole === 1 &&
          !this.isUserInstructor &&
          this.isUserLiveCourseTutor
        ) {
          return `/dashboard/live_course_tutor`;
        }
        if (this.userRole === 0) {
          return `/user/dashboard`;
        }
      },

      zoomSignatureInit() {
        if (this.API_KEY && this.signature) {
          // Meeting config object
          this.meetConfig = {
            apiKey: this.API_KEY,
            meetingNumber: this.meetingId,
            userName: this.nickname,
            passWord: this.password,
            leaveUrl: this.whereToGoWhenLeavingMeeting(),
            role: this.userRole,
          };

          // Zoom init and join function
            client.init({
                debug: true,
                zoomAppRoot: this.meetingSDKElement,
                language: 'it-IT',
                customize: {
                    meetingInfo: ['topic', 'host', 'mn', 'pwd', 'telPwd', 'invite', 'participant', 'dc', 'enctype'],
                    toolbar: {
                        buttons: [
                            {
                                text: 'Custom Button',
                                className: 'CustomButton',
                                onClick: () => {
                                    console.log('custom button');
                                }
                            }
                        ]
                    }
                }
            });

            client.join({
                apiKey: this.meetConfig.apiKey,
                signature: this.signature,
                meetingNumber: Number(this.meetConfig.meetingNumber),
                password: this.meetConfig.passWord,
                userName: this.meetConfig.userName,
            })

        }
      },

      zoomInite() {
        axios
          .post(`/api/zoom_credentials/`, {
            meeting_number: this.meetingId,
            role: this.userRole,
          })
          .then((response) => {
            this.API_KEY = response.data.zoomApiKey;
            this.signature = response.data.zoomSignature;
            this.zoomSignatureInit();
            console.log("success signature: " + this.signature);
          })
          .catch((error) => {
            console.log(error);
          });
      },
    },
  };
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
</style>

```

**To Reproduce(If applicable)**  
na

**Screenshots**  
If applicable, add screenshots to help explain your problem.

 ![Screenshot 2021-12-20 at 11.15.49](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/619e5cc17998dc8e0f4bf60dee97f269e12e4592.png)

**Device (please complete the following information):**

- Device: MacBook Pro (Retina, 15-inch, Mid 2015)
- OS: macOS Catalina
- Browser: Chrome
- Browser Version 96.0.4664.93 (Official Build) (x86\_64)

**Additional context**  
unable to use

---

<div class="post-metadata">

**Author:** ![camillo](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@camillo](https://devforum.zoom.us/u/camillo)\
**Post date:** [December 21, 2021, 11:24am UTC](https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669/2 "2021-12-21T11:24:35Z")

</div>

To add to my description above `GL_INVALID_VALUE : glViewport: negative width/height` console error appears only when I try to open the camera in the meeting.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 3, 2022, 8:48pm UTC](https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669/4 "2022-01-03T20:48:28Z")

</div>

Hey @camillo,

Thank you for reaching out to the Zoom Developer Forum. Based on the code snippet provided, it looks like you may be displaying the Web SDK in an iFrame. Is that correct?

If so, that’s likely the issue as the Web SDK doesn’t support being shown through an iFrame. Instead, you’ll want to display it directly on the page.

Thanks,  
Max

---

<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:** [February 3, 2022, 6:49am UTC](https://devforum.zoom.us/t/zoom-meeting-web-sdk-and-component-view-is-completely-black/61669/5 "2022-02-03T06:49:22Z")

</div>

Closed on February 3, 2022, 6:49am UTC

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