prefs: Add playbin3 and pipewire options

This commit is contained in:
Rafał Dzięgiel
2021-09-03 11:35:23 +02:00
parent cf6d41b725
commit 38e721be03
3 changed files with 24 additions and 0 deletions

View File

@@ -94,6 +94,14 @@
<default>'{}'</default>
<summary>Custom values for GStreamer plugin ranking</summary>
</key>
<key name="use-playbin3" type="b">
<default>false</default>
<summary>Use playbin3 element instead of playbin2</summary>
</key>
<key name="use-pipewire" type="b">
<default>false</default>
<summary>Use PipeWire for audio output</summary>
</key>
<key name="play-flags" type="i">
<default>1687</default>
<summary>Set PlayFlags for playbin</summary>

View File

@@ -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;

View File

@@ -254,6 +254,20 @@
<property name="subtitle" translatable="yes">Alter default ranks of GStreamer plugins</property>
</object>
</child>
<child>
<object class="ClapperPrefsSwitch">
<property name="title" translatable="yes">Use playbin3</property>
<property name="subtitle" translatable="yes">Use experimental playbin3 element (requires player restart)</property>
<property name="schema-name">use-playbin3</property>
</object>
</child>
<child>
<object class="ClapperPrefsSwitch">
<property name="title" translatable="yes">Use PipeWire</property>
<property name="subtitle" translatable="yes">Use PipeWire for audio output (requires player restart)</property>
<property name="schema-name">use-pipewire</property>
</object>
</child>
</object>
</child>
</object>