Update:
I am using the browserblock prebuilt image on RPI 4. I am setting the launch URL to https://webcamtests.com/.
It is able to detect the CSI camera.
version: '2'
volumes:
settings: # Only required if using PERSISTENT flag (see below)
services:
browser:
image: balenablocks/browser
privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
network_mode: host
volumes:
- 'settings:/data' # Only required if using PERSISTENT flag (see below)
But, if I build the image and push it to the RPI 4, using the same launch URL, the camera is not detected.
version: '2'
volumes:
settings: # Only required if using PERSISTENT flag (see below)
services:
browser:
build: .
privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
network_mode: host
volumes:
- 'settings:/data' # Only required if using PERSISTENT flag (see below)
Project: balena browser block, RPI 4, OS version: [balenaOS 2.80.5+rev1]
I have a CSI camera and USB microphone hooked up to the PI. Basically I want the camera and the microphone to be detected by the browser. You could use the following URLs to test the mic and camera, respectively.
I tried on v2.75 with the same result - mic was detected, USB camera detected but CSI camera was not. I did not try the pre-built browser since you already confirmed that does detect a CSI camera. I’ll ask the maintainer of the block if they know of any difference between the pre-built one and the files in the repo. If not, we’ll have to look elsewhere but that will be a tough one!
Thanks, @alanb128.
yeah, I know the USB cam works.I had forgotten to mention in my test logs Thanks for testing and helping me out. Has anyone tried on RPI 3B+ if there is any different observation ?
rename Dockerfile.raspberrypi to Dockerfile.template
Then try building again to rule out the possibility that the wrong template is being used. This is the only difference we can think of between building and using the hosted image…