Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to know how can I get the current song information (title, artist, album etc) no matter what player is running. I saw some KDE widget can do that.

How can I do that? is there any standard protocol or interface to get song information?

share|improve this question
add comment

2 Answers

A simple method from the command line would be to read the output from pulseaudio to list properties of a sink input by running the following command in a terminal

pacmd list-sink-inputs

By this we can see the application that initiated a stream as well as other song properties from metatags (including artist, title, etc.) if available.

share|improve this answer
add comment

There's no standard protocol to do that, the widget you're talking about are just handling a lot of protocols. For exemple, Amarok has is own way, VLC another etc...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.