Hi Bermhard,

Since https://bugs.launchpad.net/mixxx/+bug/918199 focuses on play lists,
we need a new bug.

Just read a little bit in the MPRIS Spec and I found out this:

I think we need a separate interface for each deck like
org.mpris.MediaPlayer2.mixxx_Cannel1

org.mpris.MediaPlayer2.Player.OpenUri
plays mediately

You might looking for
org.mpris.MediaPlayer2.TrackList.AddTrack (s: Uri, o: AfterTrack, b:
SetAsCurrent)


An other option would be to open Mixxx's controls to dBus
See:
http://www.mixxx.org/wiki/doku.php/mixxxcontrols
We are working on a typed control system that can handle URIs as well.

I hope that helps!

Kind regards,

Daniel




2013/5/17 Bernhard Übelacker <bernha...@vr-web.de>

>  Hello Daniel,
> thanks for the quick response.
>
> I tested it on the command line with the qdbus tool:
>
> bernhard@debian:~$ qdbus org.mixxx /PlayerManager
> org.mixxx.Mixxx.PlayerManager.slotIsDeckPlaying 1
> false
> --> returns false when the first deck is currently not playing, else true.
>
> bernhard@debian:~$ qdbus org.mixxx /PlayerManager
> org.mixxx.Mixxx.PlayerManager.slotLoadToDeck /path/to/filename.mp3 1
> --> loads /path/to/filename.mp3 to the first deck.
>
> I had a short look at the MPRIS spec.
> Unfortunately this is a litte bit more complex than my "some lines" patch.
>
> The nearest in my patch to slotLoadToDeck would be from the spec 
> OpenUri<http://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Method:OpenUri>,
> but that one has to start playing immediately and there is no way to
> specify to load it to a specific deck.
>
> The nearest to slotIsDeckPlaying would probably be the 
> PlaybackStatus<http://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:PlaybackStatus>property
>  - but this also lacks the 2 (or some) decks concept of mixxx.
>
> Probably one solution could be when every deck has its own dbus interface
> (or at least the MediaPlayer2 interface).
> And because the client can not immediately assume that the uri is really
> playing immediately we could define for mixxx that the user has to
> "start" this deck.
>
> Let me have a second look tomorrow...
> (Should I open a new ticket or add this to 
> 918199<https://bugs.launchpad.net/mixxx/+bug/918199>which you mentioned?)
>
> Kind regards,
> Bernhard
>
>
>
> Am 17.05.2013 00:00, schrieb Daniel Schürmann:
>
>   Hi Bernhard,
>
>  Thank you very much for contribute to Mixxx!
>
>  It was a long last wish from me to have a D-Bus interface for Mixxx.
>
>  We use Launchpad bugs to discuss patches. So please file a new bug and
> attach you patch there.
>
>  I have not actually test it, but is it much effort to implement your
> feature as a part of an MPRIS D-Bus interface?
>
> http://specifications.freedesktop.org/mpris-spec/latest/
> https://bugs.launchpad.net/mixxx/+bug/918199
>
>  How did you test the patch? Can you provide a test script or something
> like that?
>
>  Kind regards,
>
>  Daniel
>
>
>
>
>
>
>
>
> 2013/5/16 Bernhard Übelacker <bernha...@vr-web.de>
>
>> Hello list,
>> I was searching for a way to load files from extern (e.g. from command
>> line or by DBus) into one deck of Mixxx.
>>
>> Thanks to using the Qt library adding this feature needs only a few lines
>> as in the attached patch.
>> It makes two functions callable from extern. One for checking if the deck
>> is currently playing. The other for
>> loading a file into one deck.
>>
>> This patch was generated on top of the 1.11.0 release (from git://
>> github.com/ywwg/mixxx-trunk.git).
>> It was only compiled on linux. This patch is only useful if there is a
>> DBus implementation available and/or
>> has probably to be disabled on Windows and OS X.
>>
>> Is there a chance to get something like this included?
>>
>> Kind regards,
>> Bernhard
>>
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
>> http://mixxx.org
>>
>>
>> Mixxx-devel mailing list
>> Mixxx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>>
>
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to