Alejandro Pulver
2012-03-02 21:06:57 UTC
Hello,
I've been recently using cmus, and I like it.
There is a program to display lyrics called osd-lyrics which uses
plugins to integrate with audio players. I want to write one for cmus,
but it requires a way to get currently playing song's information.
It seems to use polling, instead of receiving a notification (but I
could cache the information from status-display-program in the plugin).
The problem is that the information isn't enough: notification of seeks
is required to synchronize the highlighted part of the lyrics with the
song. So there are at least two solutions:
1. Add an option for notifying of seeks in status-display-program.
2. Add a command (so it can be called from cmus-remote) to print the
currently playing song's path, title, artist, album, duration and
position, in an easy to parse way like "path = %s\ntitle = %s\n...".
I would prefer the second one, as a pipe to cmus-remote has to be kept
open anyways (to control cmus from osd-lyrics) and it doesn't require
manual user configuration.
What do you think about this?
Thanks and Regards,
Ale
I've been recently using cmus, and I like it.
There is a program to display lyrics called osd-lyrics which uses
plugins to integrate with audio players. I want to write one for cmus,
but it requires a way to get currently playing song's information.
It seems to use polling, instead of receiving a notification (but I
could cache the information from status-display-program in the plugin).
The problem is that the information isn't enough: notification of seeks
is required to synchronize the highlighted part of the lyrics with the
song. So there are at least two solutions:
1. Add an option for notifying of seeks in status-display-program.
2. Add a command (so it can be called from cmus-remote) to print the
currently playing song's path, title, artist, album, duration and
position, in an easy to parse way like "path = %s\ntitle = %s\n...".
I would prefer the second one, as a pipe to cmus-remote has to be kept
open anyways (to control cmus from osd-lyrics) and it doesn't require
manual user configuration.
What do you think about this?
Thanks and Regards,
Ale