mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
prefs: Add playbin3 and pipewire options
This commit is contained in:
@@ -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>
|
||||
|
@@ -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;
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user