FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

Camera permission setting

Open jyy1082 opened this issue 5 years ago • 5 comments

I tried to run Webrtc page on FullPageOS with a raspberry pi 4, but can not get camera access permission. Is there someone know how should we set the camera and microphone permission for FullPageOS? Thank you!

jyy1082 avatar Jan 21 '20 20:01 jyy1082

Up

dan-developer avatar Jun 09 '20 14:06 dan-developer

Using rpi-config? How is the website accessing the camera? Please be more specific - how is this different than using raspbian?

guysoft avatar Jun 09 '20 19:06 guysoft

Usually in a browser when the website tries to access the camera through the WebRTC API, a message "Allow or disallow the camera for this website" appears. When allowed, the website can access the camera. In the case of Full Page OS this question does not appear, simply access to the camera and microphone is not allowed.

dan-developer avatar Jun 10 '20 16:06 dan-developer

start_chromium_browser runs chromium with --kiosk which probably disables the dialog.

cweiske avatar Jul 22 '20 12:07 cweiske

According to this you can override it with:

mkdir -p /etc/opt/chrome/policies/managed
touch /etc/opt/chrome/policies/managed/test_policy.json

In test_policy.json:

{
  "VideoCaptureAllowedUrls": ["http://www.example.com/", "http://[*.]example.edu/"]
}

guysoft avatar Jul 22 '20 13:07 guysoft