Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get current song details from other app #488

Open
snippins opened this issue May 11, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@snippins
Copy link

commented May 11, 2018

Versions

tizonia 0.14.

Installation Method Used

Bintray debs

Description

I would love to make a lyrics app for tizonia and need to get the song detail, thus, tizonia need a way to export the current song detail somehow.

What do you think about this?

And thank you for this great great app. 👍

@snippins snippins changed the title Get current song detail from other app Get current song details from other app May 11, 2018

@tizonia

This comment has been minimized.

Copy link
Owner

commented May 12, 2018

Hi!, thanks for getting in touch.

I think this is a great idea. It would be awesome to have a lyrics option that could work with tizonia.

So right now the only RPC option available is MPRIS v2 (https://specifications.freedesktop.org/mpris-spec/latest/), out of which, only the following interfaces are implemented (see #66):

  • org.mpris.MediaPlayer2
  • org.mpris.MediaPlayer2.Player

The Player interface contains a method called 'metadata' that would provide the information that you need. However, there is currently a bug that prevents it from being usable (see #433).

There is a Bash script called 'tizonia-remote' that allows you some basic control of the program, using the D-BUS. This is not distributed in the Bintray debs, but to try it, just download it from there and make it executable:
https://github.com/tizonia/tizonia-openmax-il/blob/master/player/tools/tizonia-remote.in

The D-BUS crash #433 is on my list for v0.15.0, so hopefully, I may have a fix for it soon.

But talking about RPC options, just to let you know, that going forward, I have plans to add a JSON-RPC interface to programmatically control Tizonia and give access to all its features from external programs (e.g. a REPL command-line cli, remote UIs, etc). But at the moment I'm busy with Pandora support, which is my main goal for the next release.

Having said all of that, I am definitely more than happy to discuss interfacing ideas or contributions of any kind in these areas.

@Typositoire

This comment has been minimized.

Copy link

commented Aug 3, 2018

Hey I just found this project and I wanted to have it integrated with Polybar. RPC would be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.