jackun
ac11beef9b
[dbus] Don't stop D-Bus thread or remove filter if not completely deiniting
3 years ago
jackun
31e879215a
[dbus] Also check if gamemode is enabled with D-Bus
3 years ago
jackun
355c521f12
Misc small clean ups and fixes
3 years ago
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
jackun
19ef4f3df0
[dbus] re-init active player so `media_player_name` changes take effect
...
Might be good to check if player name actually changed though.
4 years ago
Alessandro Toia
8e873fe547
Remove more "not" and "and" in if statments
...
Rename dbus_helpers.hpp to dbus_helpers.h
4 years ago
jackun
7471d42cac
Fix dbus for GCC 5
4 years ago
jackun
b07db5d3ef
[dbus] Don't clear metadata when reloading config file
4 years ago
jackun
bb50e6a637
[dbus] Use "xesam:url" to force metadata update
...
If file has no other metadata, clear old metadata by using
"xesam:url" to detect new file being played.
4 years ago
jackun
f74b4bccd9
[dbus] always update metadata if no forced player
...
Otherwise it stays in "paused" state if resuming play.
4 years ago
Lars Krämer
a393c05829
Fix auto-switching bug
...
Debug output under ifdef NDEBUG
4 years ago
Lars Krämer
6dd08c89bc
Use fallback only if no player was requested;
...
Request no player by default
4 years ago
Lars Krämer
9a34b55498
Move interactions with main_metadata into separate functions
...
More tidying up of the helper classes
4 years ago
Lars Krämer
7cc76142f1
Tidy up DBus helper classes
...
make sure metadata is up-tp-date when switching players (WIP)
4 years ago
Lars Krämer
72b86b4371
Fix some weird behaviour with non-spotify media players
...
Add DBusMessage_wrap to wrap/hide some dbus_message_* calls
4 years ago
Lars Krämer
6484e09f01
Implement wrapper class for DBusMessageIter
...
Implement for_each-style helpers for common constructions
Reimplement most of the DBus message parsing in terms of these
4 years ago
Lars Krämer
4bf7a3f2f0
Make DBus signal handling more event-based
4 years ago
Lars Krämer
5850643db4
Change the media player functionality to allow changing active media
...
player
4 years ago
jackun
72602fab89
[dbus] remove missed exceptions; set dbus call timeout to 2 seconds
4 years ago
jackun
9b595cef1a
[dbus] clear metadata on re-init; don't use exceptions
4 years ago
jackun
d694a61d21
Add `media_player_name` and `media_player_color` params
...
Allows to set "main" media player and text color
4 years ago
jackun
768297b430
[editorconfig] Apply whitespace rules
4 years ago
jackun
88188ee1da
[dbus] Generalize a bit more but still give Spotify special treatment, keep track of 'org.mpris.MediaPlayer2' service providers
...
Keeps and draws spotify's and other player's metadata separately.
Keep track of 'org.mpris.MediaPlayer2' service providers so when
a player that was the last metadata sender quits, we can stop
showing its metadata on overlay.
5 years ago
jackun
e5a256bfc0
Move DBus init to overlay_params so it can be enabled/disabled on the fly from a single place
5 years ago
jackun
0db804aa01
Don't free DBusError if it was never inited because dbus_error_free() is nullptr too
5 years ago
jackun
421146b822
Don't reinit dbus manager
5 years ago
jackun
0a27e0a447
Clear all metadata strings in case other mpris-compatible media players don't have them all
5 years ago
jackun
8024736253
Add DBus loader, combined ticker for Spotify metadata
5 years ago
FlightlessMango
d975278396
Dbus with spotify
5 years ago