Skip to content

Clueeng/Lyria

Repository files navigation

Lyria

A single-purpose library for all your music related needs

What does it do

Lyria provides a simple way of fetching metadata from the song you're listening to on Linux systems (running systemd) See the example here Mini example:

dbus = DBusInitializer()
val currentPlayerType = dbus.determinePlayer()
if (currentPlayerType == PlayerType.None) {
    error("No media player detected")
}

val source = dbus.getSource(currentPlayerType)

playerBusName = source.getPlayer()
currentTrack = dbus.getCurrentTrack(source)

Install the library

To install the library, you need to add the jitpack repository to your build system's config

repositories {
    maven("https://jitpack.io")
}

const val lyriaVersion: String = "REPLACE-VERSION"
dependencies {
    implementation("com.github.Clueeng:Lyria:$lyriaVersion")
}

About

A java library to get playing media on Linux (systemd)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages