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

Negative seek seems not to work #36

Closed
necauqua opened this issue May 1, 2020 · 1 comment
Closed

Negative seek seems not to work #36

necauqua opened this issue May 1, 2020 · 1 comment

Comments

@necauqua
Copy link

necauqua commented May 1, 2020

To reproduce open anything in mpv with this plugin installed and run this command a couple of times

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Seek int64:-5

You'll see what I mean, it just seems to be stuck at one point and never go back past that.
Positive seek works as expected.

@necauqua
Copy link
Author

necauqua commented May 2, 2020

Okay, so I finally manager to figure out, that seek works in microseconds instead of seconds.

And my seeks for 5 microseconds forward were just rounded up to one second seeks, so it jumped forward, but only for one second no matter what relatively small value of presumably seconds I was giving to it.

So after all, everything works okay, just needed to multiply by 1e6))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant