From a205c5fa6407ea53313e728f19e413a77ab39d51 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 8 Sep 2023 09:51:45 +0200 Subject: [PATCH] autoconfig: set media.webrtc.camera.allow-pipewire (MR 38) As suggested by Robert Mader in issue 57, thanks. --- src/mobile-config-autoconfig.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mobile-config-autoconfig.js b/src/mobile-config-autoconfig.js index 97adaab..5693847 100644 --- a/src/mobile-config-autoconfig.js +++ b/src/mobile-config-autoconfig.js @@ -309,6 +309,12 @@ function set_default_prefs() { // shows recently closed tabs. The always pinned tab takes up screen estate // and it's slightly annoying if you do not want to register an account. defaultPref('browser.tabs.firefox-view', false); + + // FF >= 116 allows to use cameras via Pipewire. While it will likely still + // take a while until this is made the default, on most mobile devices it + // makes a lot of sense to enable it unconditionally, as cameras usually + // only work with libcamera, not via plain v4l2. + defaultPref('media.webrtc.camera.allow-pipewire', true); } function main() {