I’m building an application that requires a kiosk and have moved on from chromium in search of something light, minimal and most importantly allows accelerated gpu. Oh! And supports video autoplay. This is why I don’t just use the wonderful WPE browser you guys use in your balenaDash project.
So I’m running the Electron kiosk and I need to store cookies. The problem is that I don’t know where they are stored. I’d like to find that out and then claim that as a volume in my docker compose unless there’s a better way of doing this. This is the solution I used for the chromium browser:
The reason for needing to save cookies is that they’re used for authentification.
Hope this helps.
Out of curiosity, since i’m working on trying to get hardware accleration for video decoding using electron on pi, have you been able to do this? if so can you please share how? fyi, I have been able to get gpu acceleration, and autoplay using chromium. see this WIP repo: https://github.com/balena-io-playground/chromium-ha
hopefully adding the raspberry pi specific patches to electron and then compiling it will get the hardware acceleration working. You can find the instructions for building it on linux here. If you can give it a try that would be very helpful!
Let us know how it goes.
Cheers!
I’m working on using the “supported” hardware acceleration solution by installing the needed packages but this is a quick solution which does work, especially for video. It’s a in the fleet configurations dtoverlay:
Which Pi are you using? That is enabled by default on the Pi4.
Can you confirm you have hardware accelerated video decode? If you can look at the output from chrome://media-internals from a separate tab while video is playing. and check the video_decoder field: if it is Hardware accelerated it usually says mmalVideoDecoder and if In-software decoding -VpxVideoDecoder, FFmpegVideoDecoder. Do you mind sharing your Dockerfile please? are you using the flags such as --ignore-gpu-blacklist?
I’m using a Pi 3 so it’s fairly old. I’m not aware of how one would add these flags for electron. I’m not sure where that line that starts chromium actually is.
The dockerfile was just the standard one from their github.