-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Report current track via MPRIS DBus interface #7493
Comments
Commented by: shwan-ciyako Hi Daniel We would like to knoe at least the comming 10 songs, or minimal the playing and next deck, using 4 decks also is an option . |
Commented by: mikael-holber The list of information we request (also applies to COM-server and applescript/scriptbridge) are: Artist |
Commented by: daschuer Hi Shwan, cool! First you should make sure you environment is prepared. Are you able to build the latest master and are you able to single step though the code? I think the MPRIS clients expect a single player like all other media players. For your requirements it seams to be the best to let the clients believe that Mixxx is such a player. The current playing deck, you will get from the PlayerInfo::getCurrentPlayingTrack a singelton class in src/playerinfo.cpp For the following tracks you may interface somehow with the AutoDJ src/library/autodj/autodjprocessor.cpp I have not much experience with DBus, but this seams to be a good tutorial: Hope that helps. |
Commented by: daschuer This may help as well: mixxx/src/engine/sidechain/enginerecord.cpp Line 124 in a74c65d
Yes, no problem. You can query all that by pTrack->getXXX() functions. |
Commented by: mikael-holber
|
Commented by: daschuer Hi holber, I have got recently a request to interface Mixxx with a beamer. Kind regards, Daniel |
Commented by: mikael-holber Hi Daniel, I tried to mobilize some resources here but with little luck. I do not have We are currently in the process of moving the repository from google-code The obvious information we would need is "Current song" which is playing to The information that our application will access is the following from each Artist We then structure the information as following: Previous song is saved in the application, This is not live-information. Hope this helps you understand our intention. We are absolutely willing to Best Regards
|
Commented by: daschuer Thank you for your fast responds. I will try to give you all the support I can. What could be the mode in which we can work together? |
Commented by: mikael-holber My partner Horia will assist you. Kind regards
|
Commented by: daschuer The MPRIS 2.2 stubs are prepared: |
Commented by: daschuer Status update: The real valid use case that makes me doing this work is the interface to the beam-project. @horia: It is pretty easy to do it on top of my branch. |
Commented by: horia-uifaleanu Hi guys, I have some time these days and I would be happy to start working on Mixxx's DBus interface. Daniel could you give me some directions to setup my devenv?! Horia. |
Commented by: daschuer Hi Horia, Great :-D A good start to read is here: Where is the point you need help? Daniel |
Commented by: horia-uifaleanu Hi, My first question was aiming at this: http://www.mixxx.org/wiki/doku.php/compiling_on_linux . So it is clear now. Yes, I am familiar with git, with DBus and with Qt as well. IDE: I like to use Qt Creator even for non-Qt projects
|
Commented by: daschuer
There is no need to, because we have moved the source entirely to GitHub.
Strange, I assume you are on Ubuntu Trusty, like me I can reproduce the issue by installing libjack0 This solves the issue on my system It looks like there is a kind of package dead lock with jack 1 and 2 |
Commented by: daschuer Bug #1464120 |
Commented by: horia-uifaleanu Hi Daniel, I managed to build Mixxx on my machine. At a certain point it says:" right click on the top-level directory and select “Add existing files”, and then select SConstruct from the list. Do the same for theSConscripts." It is my first time wotking with SCons, I found the SConstruct file but did not found SConscripts. Horia. |
Commented by: horia-uifaleanu Hi Daniel, I managed to build Mixxx on my machine. At a certain point it says:" right click on the top-level directory and It is my first time wotking with SCons, I found the SConstruct file but did Horia.
|
Commented by: daschuer Sorry, I can't help a lot with Qt Creator. IMHO you do not need to deal with SConstruct and SConscripts. |
Commented by: horia-uifaleanu Hi Daniel, One further question: where is the mpris branch you were reffering upper here in the comments? I can't find it on th eremote repository:
Horia. |
Commented by: horia-uifaleanu Tests: Are they any tests written or do you have something in mind for the current MPRIS 2.2 stubs you indicated? |
Commented by: daschuer You can pull it into your repro like that git checkout -b mpris master |
Commented by: daschuer Tests: I have used D-Feet, to check and invoke the DBus functions. Maybe we can finally invoke d-Bus command line calls from a |
Commented by: horia-uifaleanu I will use D-feet for the quick checks. Google Test: MPRIS 2.2 standard: |
Commented by: daschuer
|
Commented by: horia-uifaleanu Ok! Got it working! https://drive.google.com/file/d/0B3hQF_jNtG39dldmU3R0Wnl4VGc/view?usp=sharing |
Commented by: horia-uifaleanu Hi Daniel, I already have something to commit and for the moment my github username ( horiator ) might not have access yet to https://github.com/daschuer/mixxx.git mpris Horia. |
Commented by: horia-uifaleanu Ok. You can ignore my last comment! I have created a fork and I will issue a pull request. Horia. |
Commented by: rryan Due to lack of progress, marking Triaged and clearing assignee. Feel free to revert if it is in fact still in progress :). |
Fixed by #3483 |
Reported by: daschuer
Date: 2014-06-05T06:07:25Z
Status: In Progress
Importance: Wishlist
Launchpad Issue: lp1326653
This is a follow up from this bug: Bug #1326596
It would be nice if we report the current track via MPRIS DBus interface.
See:
Qt's QDBus* classes http://qt-project.org/doc/qt-4.8/qtdbus.html
https://code.google.com/p/qmmp/source/browse/branches/qmmp-0.5/src/plugins/General/mpris/mpris.cpp?r=2132
Related: Bug #918199
The text was updated successfully, but these errors were encountered: