You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The camera does not function in SafeExamBrowser (SEB) on macOS. However, when using Safari without SEB, the camera works normally—after prompting for permission and having it granted, the video appears.
Steps to reproduce the behavior:
Below is the code snippet. (We typically use our own WebRTC proctoring system; this is a simplified, minimal code)
Start Camera
The JavaScript API is available, indicating that the modern WebView is in use.
OS-level permissions for both the camera and microphone are enabled for SEB.
The site is accessed via HTTPS.
The Info.plist file includes the following keys and descriptions:
NSCameraUsageDescription
This application requires camera access for exam monitoring.
NSMicrophoneUsageDescription
This application requires microphone access for exam monitoring.
Troubleshooting Steps and Error:
The camera permission for SEB was reset using tccutil in the terminal.
Upon restarting SEB, and clicking on "Start Camera", it prompted for camera access, which was granted.
However, the following error was encountered:
"Error: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
The text was updated successfully, but these errors were encountered:
As you can test with this link Jitsi Meet Test for getDisplayMedia: sebs://safeexambrowser.org/exams/JitsiScreenSharingTest.seb (link also on this page), camera and microphone access for web applications works perfectly with SEB 3.5.
I assume you didn't set the necessary options in Settings / Browser / Media Playback/Capture.
I discovered that I was creating our SEB configuration files using the Windows tool (version 3.9) for both Windows and macOS. I didn’t see the “Media autoplay”, “Allow camera capture”, and “Allow microphone capture” options in that tool (they’re visible in the Mac version). These options generate the following keys:
Describe the bug
The camera does not function in SafeExamBrowser (SEB) on macOS. However, when using Safari without SEB, the camera works normally—after prompting for permission and having it granted, the video appears.
Steps to reproduce the behavior:
Below is the code snippet. (We typically use our own WebRTC proctoring system; this is a simplified, minimal code)
<script> var stream = document.getElementById( "video" ); stream.setAttribute('autoplay', ''); stream.setAttribute('muted', ''); stream.setAttribute('playsinline', ''); function startVideo() { navigator.mediaDevices.getUserMedia({video:true}) .then((stream)=>{ document.getElementById("video").srcObject=stream; }) .catch((err)=>{ alert("Error: " + err.name + ": " + err.message); }); } </script>Start Camera
Version Information:
Additional Context:
NSCameraUsageDescription
This application requires camera access for exam monitoring.
NSMicrophoneUsageDescription
This application requires microphone access for exam monitoring.
Troubleshooting Steps and Error:
"Error: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
The text was updated successfully, but these errors were encountered: