FullPageOS
FullPageOS copied to clipboard
Camera permission setting
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!
Up
Using rpi-config? How is the website accessing the camera? Please be more specific - how is this different than using raspbian?
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.
start_chromium_browser
runs chromium with --kiosk
which probably disables the dialog.
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/"]
}