From 63b30697b49580fb9cd5142cfea298c9b83d74da Mon Sep 17 00:00:00 2001 From: tilpner Date: Sun, 5 Apr 2020 21:12:22 +0200 Subject: noMedia: document, disable autoplay --- profiles/noMedia.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'profiles') diff --git a/profiles/noMedia.nix b/profiles/noMedia.nix index bd5b856..32c960a 100644 --- a/profiles/noMedia.nix +++ b/profiles/noMedia.nix @@ -1,11 +1,25 @@ { ffLib }: { + meta.description = '' + This assumes a deployment where video consumption does not occur often. + It disables DRM and other encrypted media, as well as autoplay. + ''; + policies = { Preferences = ffLib.flattenAttrs { media = { eme.enabled = false; - gmp-gmpopenh264.enabled = false; + gmp-gmpopenh264 = { + enabled = false; + autoupdate = false; + }; gmp-widevinecdm.enabled = false; peerconnection.enabled = false; + + autoplay = { + default = 1; + enabled.user-gestures-needed = true; + allow-muted = false; + }; }; }; }; -- cgit v1.2.3