Commit 81cbcedc authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Media Controller] Advance seek slider only if it can be advanced

Keeps us from continuously querying the current position when streaming
where a length is not defined
parent b8a07e15
......@@ -261,7 +261,7 @@ Item {
id: seekTimer
interval: 1000 / expandedRepresentation.rate
repeat: true
running: root.state == "playing" && plasmoid.expanded && !keyPressed && interval > 0
running: root.state == "playing" && plasmoid.expanded && !keyPressed && interval > 0 && seekSlider.maximumValue >= 1000000
onTriggered: {
// some players don't continuously update the seek slider position via mpris
// add one second; value in microseconds
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment