-
Notifications
You must be signed in to change notification settings - Fork 109
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
Enable when playback is detected via MPRIS #217
Comments
Not sure to understand what you are proposing ? I don't see how MPRIS/music players would interact with Caffeine |
Ah you mean maybe an option to enable Caffeine when some player is 'play' status ? |
yes, correct! Similar to the option that enables caffeine for fullscreen apps |
This feature would be incredibly useful to me, given that I use HDMI audio - so screen off = audio off too. I've never done any work on GNOME extensions but would be happy to start work on a PR for this. Any pointers would be appreciated. |
Excerpts from snoopdouglas's message of February 13, 2024 9:49 am:
This feature would be incredibly useful to me, given that I use HDMI audio - so screen off = audio off too.
I've never done any work on GNOME extensions but would be happy to start work on a PR for this. Any pointers would be appreciated.
MPRIS status is exposed via dbus, so the extension would need to track via DBUS if some player is in playing state.
I think you can look for media player extensions and see how they use the MPRIS Dbus API.
Not the simplest change to do, will add quite some code to the extension.
…
--
Reply to this email directly or view it on GitHub:
#217 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
I implemented MPRIS trigger in |
MPRIS is a D-Bus API which aims to provide a common programmatic API for controlling media players.
In our case, it is interesting because it provides a mechanism for querying compliant media players, including music players and browsers.
Using the MPRIS API to determine if there currently is any media playing sounds like good option for this extension!
The text was updated successfully, but these errors were encountered: