Video SDK on iframe

I am trying to use the video SDK using an iFrame however, I am getting an error:

{
errorCode: 6100,
message: "",
name: "OverconstrainedError",
type: "VIDEO_USER_FORBIDDEN_CAPTURE"
}

This is my code of implementation:

<iframe src="url"
      loading="lazy"
      allow="camera; microphone; geolocation; autoplay; display-capture"
      width="100%"
      height="100%"
      title="Video Call Iframe"
      id="videocall-iframe"
      class="border-none block h-full w-full resize"
    ></iframe>

Not sure what is missing, I cannot find any other documentation related


@zoom/videosdk: 2.1.10

Description

I followed these docs about Best practices using the Video SDK in an iFrame , but it seems it’s still an error even with permissions to the iframe

How To Reproduce

  • Iframe added from a Vue App
  • Zoom SDK version 2.1.10
  • Chrome Browser version 135.0.7 and Camera/microphone allowed
  • OS Windows or Mac

Hey @pablother3

Thanks for your feedback.

Could you share some problematic session IDs with us for troubleshooting purposes?

Thanks
Vic

Hi Vic,

Yes, I have this session ID about a call finished: TxKgcfoYRn6bmGtH4BbxlA==

Please let me know if something changed or am I doing something wrong

UPDATE:
I just realized that my last version which worked was 1.11.6 and when I updated to 2.1.10 my implementation was totally broken, I guess because SDK is not using id refs anymore.

Just to clarify it was not iFrame issue. It was just a breaking change between version 1.11 and >= 1.12

Thank you anyways for the response

Hey @pablother3

TxKgcfoYRn6bmGtH4BbxlA==

After analyzing the logs, we found that on the desktop browser, the stream.startVideo method was called with 'user' as the camera ID, which is incorrect. This is why you encountered the VIDEO_USER_FORBIDDEN_CAPTURE error with the error name OverconstrainedError.

In earlier versions of the Video SDK, the specified camera ID was not strictly enforced—if the camera ID didn’t match, it would fallback to the default device.

Thanks
Vic

2 Likes

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