| Summary: | [GTK] V4L2 Hardware Decode does not work (Missing /dev/video*) (Flatpak Specific) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abhinav Praveen <abhinav> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro, pgriffis, vjaquez |
| Priority: | P3 | Keywords: | Gtk |
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Abhinav Praveen
2023-09-21 18:40:27 PDT
So I've been thinking about this more....
> I start epiphany with `flatpak run --device=all org.gnome.Epiphany`
We're not going to run the web process with --device=all (or --filesystem=, which could also be used to mount /dev/video* devices).
I'm thinking nobody has yet considered how hardware-accelerated video decoding is supposed to work for Flatpak applications. If access to /dev/video* is not security-sensitive, then Flatpak should just mount it automatically IMO. But I'm guessing it's moderately-sensitive, in which case a new permission, say --device=video, would make sense: we would use the new permission when launching the web process, then it would work if the application itself also uses the same permission. Another option *might* be a new desktop portal, but I'm thinking that's probably not suitable for this.
I finally noticed your flatpak issue https://github.com/flatpak/flatpak/issues/5524 that you linked to above. Let's discuss there. Hi, I'm going to close this with MOVED status for the time being. When the flatpak issue is fixed, then feel free to reopen this issue and we can add a new permission --device=video or --device=videocodes (or whatever it gets named) to the flatpak-spawn command used to launch the web process in FlatpakLauncher.cpp. I'm not willing to add any --filesystem permissions or --device=all to the web process, so there is nothing more to done here in WebKit until Flatpak provides a new permission for this. |