Tiny Core Base > Raspberry Pi
picam, firefox, picore 15: js error. camera not found
segfault:
Firefox outputs JavaScript error: Unable to find Camera. And sure enough about:support in firefox does _not_ list the camera under the media / input devices. I know that the camera works on, because from terminal I can snap a photo and view the JPEG. However, I did run into an issue when installing firefox.tcz because it was looking for libffi.so.6 and I got libffi.so.8.1.4 (to fix this error I created a tce package that creates a softlink to the lib), so this might be why?! Next I will try to find a libffi.so.6 from another version if picore, but if anyone else knows a better path to making this work, Im all ears ;D
Im running picore15.
Ive installed firefox.
Im running JavaScript that Ive verified can access Camera (on another device).
Juanito:
libffi6 needs to be added to the firefox dep file - I won’t be able to get to it for a couple of weeks.
I seem to remember that the ability to access a camera needs to be added to the firefox configuration at compile time - building firefox takes several days, but I might have a go soon.
segfault:
I wonder if there is some kind of permission I need to set on the OS level? ???
I tried the camera in firefox on piCore-13 and got the same JavaScript error: Unable to find the Camera. I can take photos from CLI. No issues when installing firefox on piCore-13. But the Camera does not show up in firefox about:support media / input devices. I tried to launch the webpage using python -m SimpleHTTPSever to rule out permissions issues but it makes no difference. Firefox does ask for enabling camera when webpage loads and the "unable to find Camera" error shows up when I select unicam.
Im thinking that maybe firefox is not getting access to the camera at a lower level. Anyone have any idea on if I need to add firefox to some video group or something like that?
--- Quote from: Juanito on September 02, 2024, 09:14:38 AM ---libffi6 needs to be added to the firefox dep file - I won’t be able to get to it for a couple of weeks.
I seem to remember that the ability to access a camera needs to be added to the firefox configuration at compile time - building firefox takes several days, but I might have a go soon.
--- End quote ---
Sounds great! Looking forward to trying it out! Cheers! ;D
Juanito:
You could check the permissions of /dev/media* or /dev/media/* and try setting them to tc:staff
segfault:
--- Quote from: Juanito on September 03, 2024, 05:10:58 AM ---You could check the permissions of /dev/media* or /dev/media/* and try setting them to tc:staff
--- End quote ---
Thanks! I already had those set, but when I added: sudo chown tc:staff /dev/video*
I got a wee bit further... now the HMTL element rendering the camera stream is at least a black square (before there was nothing). Then after a long time of waiting there is the "Camera not found" error message and firefox about:support input devices, list is still empty. I tried setting dtoverlay=imx219, camera_auto_detect=1, gpu_mem=128 (with 512 firefox wont even start, with 256 it crashes with send/recv channel error) in /mnt/mmcblk0p1/config.txt.
Navigation
[0] Message Index
[#] Next page
Go to full version