Skip to content

Commit 061f1a4

Browse files
authored
Merge pull request #4 from jNullj/master
Added playrate (fps) control for better resource usage control
2 parents f8ec6f9 + 7046207 commit 061f1a4

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

contents/config/main.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<label>Audio muted</label>
1919
<default>false</default>
2020
</entry>
21+
<entry name="Rate" type="Double">
22+
<label>Platback Rate</label>
23+
<default>1.0</default>
24+
</entry>
2125
</group>
2226

2327
</kcfg>

contents/ui/config.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ColumnLayout {
1010
property string cfg_Video
1111
property string cfg_Folder
1212
property bool cfg_Muted
13+
property double cfg_Rate
1314

1415
GroupBox {
1516
title: "File picker"
@@ -57,4 +58,14 @@ ColumnLayout {
5758
}
5859
}
5960
}
61+
62+
GroupBox {
63+
title: "Playback Rate"
64+
Slider {
65+
value: wallpaper.configuration.Rate
66+
onValueChanged: {
67+
cfg_Rate = value
68+
}
69+
}
70+
}
6071
}

contents/ui/main.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Item {
99
muted: wallpaper.configuration.Muted
1010
loops: MediaPlayer.Infinite
1111
source: wallpaper.configuration.Video
12+
playbackRate: wallpaper.configuration.Rate
1213
}
1314

1415
VideoOutput {

0 commit comments

Comments
 (0)