Hello!
I just made simple MPRIS2 D-Bus control QML extension. Contributions and
pull requests are welcome. Licence is WTFPL as usual for me.
https://github.com/CODeRUS/mpris2control
Simple usage:
import org.coderus.mpris 2.0 as Mpris2
Mpris2.Control {
id: mprisControl
service: "org.mpris.MediaPlayer2.jolla-mediaplayer"
onPlaybackStateChanged: console.log(playbackState)
}
Sorry, no docs, no comments in code. It's just a wrapper class for D-Bus
properties and methods. Read header file and MPRIS2 documentation if you
don't know what MPRIS2 is.
Best regards,
Andrey
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org