You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When position is gotten, right now we do a dbus call to get the current position from the player.
Instead, calculate the current position based on previous status changes and clock monotonic time.
Maybe at some point in the future consider rate changes too.
This might improve position calculation with spotify a bit (it's totally broken now) although we still don't get a "seeked" event so it will still be wrong.
Add a playerctl_player_get_position() function to get the old behavior of hitting the dbus interface since I'm not confident we can rely on players to give the correct events to make this work correctly all the time.
In fact I'm not totally confident this will work at all, but it will be interesting to try. The interface specification seems to hint that we can do it.
The text was updated successfully, but these errors were encountered:
Is there a way to disable this caching? It doesn't take into account the playback speed, and (with mpv at least) while a video is still loading from the network, it starts incrementing the position even though nothing started playing yet.
When position is gotten, right now we do a dbus call to get the current position from the player.
Instead, calculate the current position based on previous status changes and clock monotonic time.
Maybe at some point in the future consider rate changes too.
This might improve position calculation with spotify a bit (it's totally broken now) although we still don't get a "seeked" event so it will still be wrong.
Add a
playerctl_player_get_position()
function to get the old behavior of hitting the dbus interface since I'm not confident we can rely on players to give the correct events to make this work correctly all the time.In fact I'm not totally confident this will work at all, but it will be interesting to try. The interface specification seems to hint that we can do it.
The text was updated successfully, but these errors were encountered: