Implement mimetype support reporting for MPRIS, start implementation of bulk of getters.

Implemented the following getters for MPRIS:

- CanQuit
- CanRaise
- HasTrackList
- Identity
- DesktopEntry
- SupportedUriSchemas
- SupportedMimeTypes
- Metadata
- CanPlay / CanPause / CanSeek
- CanControl
- PlaybackStatus

Implemented a koto_push_track_info_to_builder function that enables us to easily push KotoIndexedTrack as well as associated album and artist info to a GVariantBuilder for use in a GVariant for various getters.

Implemented a koto_update_mpris_info_for_track function that emits a signal for PropertiesChanged + "Metadata" when our track info changes.
This commit is contained in:
Joshua Strobl 2021-04-06 10:41:15 +03:00
parent b1f4460a2e
commit 07c3c00f1e
17 changed files with 734 additions and 69 deletions

View file

@ -1,7 +1,7 @@
{
"app-id" : "com.github.joshstrobl.koto",
"runtime" : "org.gnome.Platform",
"runtime-version" : "3.38",
"runtime-version" : "40",
"sdk" : "org.gnome.Sdk",
"command" : "com.github.joshstrobl.koto",
"finish-args" : [
@ -29,9 +29,12 @@
"sources" : [
{
"type" : "git",
"url" : "file:///home/joshua/Code/Personal/Koto"
"url" : "https://github.com/JoshStrobl/koto.git"
}
]
}
]
],
"build-options" : {
"env" : { }
}
}