Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added playrate (fps) control for better resource usage control #4

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contents/config/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<label>Audio muted</label>
<default>false</default>
</entry>
<entry name="Rate" type="Double">
<label>Platback Rate</label>
<default>1.0</default>
</entry>
</group>

</kcfg>
11 changes: 11 additions & 0 deletions contents/ui/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ColumnLayout {
property string cfg_Video
property string cfg_Folder
property bool cfg_Muted
property double cfg_Rate

GroupBox {
title: "File picker"
Expand Down Expand Up @@ -57,4 +58,14 @@ ColumnLayout {
}
}
}

GroupBox {
title: "Playback Rate"
Slider {
value: wallpaper.configuration.Rate
onValueChanged: {
cfg_Rate = value
}
}
}
}
1 change: 1 addition & 0 deletions contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Item {
muted: wallpaper.configuration.Muted
loops: MediaPlayer.Infinite
source: wallpaper.configuration.Video
playbackRate: wallpaper.configuration.Rate
}

VideoOutput {
Expand Down