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

Switch to or add option for event-based monitoring #10

Open
FichteFoll opened this issue Oct 18, 2019 · 1 comment
Open

Switch to or add option for event-based monitoring #10

FichteFoll opened this issue Oct 18, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@FichteFoll
Copy link
Owner

The dbus protocol provides an observable property change event that we can monitor in case anything in the player (besides playback position) changes. trackma uses this.

We would still provide the poll-based version as a fallback for players that don't properly implement it (and especially considering how it's already implemented), but well-behaving citizens use events where they can.

I don't know how well this works with dbussy's async backend, but I prefer to keep using it.

@FichteFoll FichteFoll added the enhancement New feature or request label Oct 18, 2019
@FichteFoll
Copy link
Owner Author

I've used jeepney for a different project recently (trackma) and very much liked its low-level API, allowing precise control of the dbus interactions and providing several IO implementations, including asyncio. I'll be switching to it when implementing a signal-based approach some time in the future.

@FichteFoll FichteFoll self-assigned this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant