Description
On Chrome 87.0.4280.141 (Official Build) (x86_64) on macOS 10.15.7, the “Share Screen” button in the Zoom Web SDK (1.8.6) does not seem to work.
Error
When clicking on the button, nothing happens. It was expected that a dialog would appear.
Which version?
1.8.6
To Reproduce(If applicable)
Steps to reproduce the behavior:
Run the sample web application locally.
Click on “Join Audio by Computer”
Click on “Share Screen”
Device (please complete the following information):
Device: MacBook Pro
OS: macOS
Version: 10.15.7
Browser: Chrome 87.0.4280.141
Additional context
The SDK is embedded within an IFRAME in a React application, it is hosted via a HTTPS connection.
In theory, the Content Security Policy on the CDN or the IFRAME might limit the access to certain browser APIs, but the issue can be reproduced locally - independently whether the SDK is displayed standalone or within an IFRAME.
If there is a possibility to hide the screen sharing functionality, this would resolve this issue as well (for my use case).
We are aware of this, and have seen this happen also when the Web SDK is embedded in a web view:
Since the Web SDK is not designed to work within an iFrame, my best suggestion for you is to use it outside of the iFrame and screen sharing should work.
I can reproduce the issue also when the SDK is running outside an IFRAME. The button does not do anything.
In order to get more information, I would need additional information on the root cause as no errors are logged. Is it due to a lack of permissions inside an IFRAME? Are you aware of a Content Security Policy preventing access to screen sharing?
I wasn’t able to reproduce this issue with our Sample Web App when serving over HTTPS. Do you see the same issue when using the sample app? If not, are you able to share a public git repo or a snippet of the code that you’re using to test this?
Thank you for reaching out to the Zoom Developer Forum. We have a separate SDK when working with Electron. Have you followed our steps to set up and install the electron SDK? You may also be interested in the Electron Sample App that we have.
If you continue to have issues, I recommend posting in the #client-desktop-sdk:electron category so that a subject matter expert can assist you.
Thank you for the help. I have found out eventually that screen sharing in the settings of the Zoom meeting itself was disabled.
Nevertheless, @MaxM : The Zoom SDK behaves in this case differently than the native client, it ALWAYS shows the “Share Screen” button independently of the meeting settings.
Thank you for the update. I’m glad to hear that you were able to resolve your issue! If you want to hide the screenshare button when the meeting starts, you can set the screenShare field on the init() function to false when initializing the meeting.
Due to this, I wouldn’t say this is a bug but more of a missing feature. If you would like this feature to be considered for a future release, I recommend posting in the #feature-requests category.