-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add Seeked signal to Mpris interface #1494
Conversation
080bc7f
to
f829001
Compare
Thanks ❤️, tested it quickly and it looks pretty good to me! Could you update the Changelog and check on the Clippy errors? After that I'll happily merge it :) |
Thanks. I've looked at those 2
I don't see how adding a new function caused that. I also don't understand how this gets fixed. The link refers to a
Again, this should have been an issue before this PR as the two names had the same prefix (and suffix) - but maybe it needs at least 3 members before it fires. To fix this, I'd need to rename existing values. I'm fine to do that if you're ok with it. |
That first one is quite simple to solve generally. I think it means you used the literal name For the second one I'd imagine the lint only triggers when you have 3 or more variants with the same prefix (https://dev-doc.rust-lang.org/nightly/clippy/lint_configuration.html#enum-variant-name-threshold). I also don't understand what the suggestion means in this case. I've never seen that one either. |
Thanks for the comments.
Unless I'm blind, I haven't done this at all. There an
This is probably just solved by renaming the variants but I'll leave this until I can fix the first one. |
Hey, @elParaguayo. A PR of mine (#1515) has been merged that restructures how MPRIS events are emitted, making this PR (in its current state) incompatible with the main branch.
From what I can tell, this is an issue causes by zbus, upon expanding the |
@haruInDisguise thanks for letting me know. I'll rebase this PR and fix as necessary. |
The Mpris2 spec includes a `Seeked` signal which should be fired when the track position changes in an unexpected way i.e. when the user seeks to a different part of the track. This PR implements this signal on seek events and also when a new track begins. The latter is not strictly required but has been observed in other players (e.g. VLC). Closes hrkfdn#1492
f829001
to
df150a6
Compare
Thank you :) Merged with some very minor changes |
Thanks for the changes. Beyond my current skill level so appreciate you improving my PR. |
NB I am new to Rust so may have made some horrible mistakes in here!
Describe your changes
The Mpris2 spec includes a
Seeked
signal which should be fired when the track position changes in an unexpected way i.e. when the user seeks to a different part of the track.This PR implements this signal on seek events and also when a new track begins. The latter is not strictly required but has been observed in other players (e.g. VLC).
Issue ticket number and link
Closes #1492
Checklist before requesting a review
not performance improvements, etc.)