-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen share not working properly within SEB with Sonoma 14.5 #414
Comments
What platform/software are you using for screen sharing? |
@danschlet Using webrtc getdisplaymedia to share the screen. If we enable those settings, it allows screenshotting and recording, which we currently do not allow. |
@danschlet this started to happen recently with Sonoma 14.5. We tested this with several screensharing applications (Meet, Teams) that use browser-based screensharing and it always shares the wallpaper / desktop as the image above. It seems that it is related to the new presenter overlay in 14.5? Does block Screenshotting work? It seems to allow screenshotting even when enabled. |
We are facing a similar issue with SEB on macOS 14.5. When the screen is recorded using the Screen Capture API with the getDisplayMedia() method, SEB's screen is not recorded, only the desktop screen is recorded. However, mouse movements are visible. When we tried the screen recording on macOS 12.7.5, it worked fine. After investigation, We found that the newer macOS version has added some new options in Safari to share either the whole screen or just a window, which were not present in older versions of Safari before 14.5 mac os. Since SEB also uses WebKit, this new change might be causing the issue. Video track object returned by MediaStreamTrack: getSettings() method: macOS v12.7.5:
macOS v14.5:
As we can see above, displaySurface was not present in the video's settings in the older macOS version. Current Solution (Not Suitable for our requirements)By tweaking SEB configurations, We found that enabling the While enabling allowWindowCapture solves the screen recording issue, it also lets users take screenshots, which is not desirable for our requirements. Please let us know how we can achieve the same result without allowing our screen to be captured by users. Device configurations in which the issue was faced: |
As someone created a duplicate to this issue, I should actually post the latest findings here: Apple apparently changed how screen capture in web views works in macOS 14.5. SEB has to exempt its windows from screen capture, as otherwise students could just record their exams using system features or additional tools. As a workaround, you can set allowWindowCapture = true and blockScreenShotsLegacy = true. SEB then uses an older method to block screen shots. I'm not sure though if screen capture in web views works if you disable system screen recordings (allowScreenCapture = false). Note that blockScreenShotsLegacy was broken in SEB 3.3.3 and should work again in SEB 3.4 (please test it with the beta version). The best solution would be, if Apple would allow specific applications (like assessment and proctoring applications as SEB) to record everything on the screen, maybe with a new API or special on-demand Entitlements. So as only Apple can solve this issue, please create a feedback at https://feedbackassistant.apple.com/ |
Discussed in #413
Originally posted by hlo250 June 6, 2024
Ever since 14.5 was released, we've been having issues with sharing the screen properly within SEB.
When i click on share this screen, the screen that is shared is not the Safe Exam Browser screen, instead it shares my desktop. The only way to fix it, is to click on the presenter overlay "small" option and then turning it off, and then it finally shows the SEB.
Tested on previous versions of Sonoma and screensharing doesn't have any issues. Anyone have any ideas?
The text was updated successfully, but these errors were encountered: