From 38e721be035204bb647daf119c0cff3bb4d4fb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 3 Sep 2021 11:35:23 +0200 Subject: [PATCH] prefs: Add playbin3 and pipewire options --- data/com.github.rafostar.Clapper.gschema.xml | 8 ++++++++ src/player.js | 2 ++ ui/preferences-window.ui | 14 ++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/data/com.github.rafostar.Clapper.gschema.xml b/data/com.github.rafostar.Clapper.gschema.xml index f43b58f4..26db03ad 100644 --- a/data/com.github.rafostar.Clapper.gschema.xml +++ b/data/com.github.rafostar.Clapper.gschema.xml @@ -94,6 +94,14 @@ '{}' Custom values for GStreamer plugin ranking + + false + Use playbin3 element instead of playbin2 + + + false + Use PipeWire for audio output + 1687 Set PlayFlags for playbin diff --git a/src/player.js b/src/player.js index 5fb877f7..a981b43d 100644 --- a/src/player.js +++ b/src/player.js @@ -34,6 +34,8 @@ class ClapperPlayer extends GstClapper.Clapper desktop_entry: Misc.appId, default_art_url: Misc.getClapperThemeIconUri(), }), + use_playbin3: settings.get_boolean('use-playbin3'), + use_pipewire: settings.get_boolean('use-pipewire'), }); this.widget = gtk4plugin.video_sink.widget; diff --git a/ui/preferences-window.ui b/ui/preferences-window.ui index 749c3116..85e9f0a7 100644 --- a/ui/preferences-window.ui +++ b/ui/preferences-window.ui @@ -254,6 +254,20 @@ Alter default ranks of GStreamer plugins + + + Use playbin3 + Use experimental playbin3 element (requires player restart) + use-playbin3 + + + + + Use PipeWire + Use PipeWire for audio output (requires player restart) + use-pipewire + +