Hi, I'm wondering how KWGT gets media information from Spotify such as the active song name, album art, and Play/Pause state. Note that this question is not about how to use KWGT, I'm interested in how KWGT is doing this with Android Java/Kotlin code.
I know that they've implemented a function called "mi()" that can be used to get things like Play/Pause state and Album Art:
mi(state) // play/pause state
mi(cover) // album art URI
I'm wondering how they've built that "mi()" function. I've tried to get the Play/Pause state and Album Art from Spotify myself with Android Kotlin code but nothing has worked.
Is there any code I could look at? Or examples of how this is done?