[OSC_dev] Adding OSC support to VLC
Gaspard Bucher
gaspard at teti.ch
Mon Nov 24 13:41:23 PST 2008
On 24 nov. 08, at 22:26, Nicholas J Humfrey wrote:
> Hello,
>
> I am thinking about adding OSC support to VideoLan. I did some work on
> using MPRIS (http://www.mpris.org/), which uses D-Bus to communicate
> with with VLC, but I am missing OSC and could do without the hassle of
> running D-Bus.
>
> I previously wrote MadJACK, an MPEG Audio Deck which sends its output
> to Jack:
> http://www.aelius.com/njh/madjack/
>
>
> I tried to design the protocol to be generic, so that it could be used
> by other media players too. There doesn't seem to be very much
> standardisation of OSC messages in the community (apart from the 'SYN'
> namespace).
>
> What do people think about my message format and namespace?
> Is it useful to standardise the messages for inter-compatibility?
> Would it be helpful to change the protocol to be able to address
> multiple decks?
>
>
> My plan is to initially just support the commands that don't need
> replies:
> /deck/play
> /deck/pause
> /deck/stop
> /deck/cue (f)
> /deck/eject
> /deck/load (s)
> /deck/volume (s)
>
> And if playlists were supported:
> /deck/add_track (s)
> /deck/next
> /deck/previous
> /deck/repeat (T/F)
>
>
>
> nick.
I think you could make some of these commands set/get :
/deck/volume ===> return volume (get only)
/deck/volume 0.5 ==> return volume (0.5) (set and get)
I plan to have all my methods work this way.
Enabling
/deck/ ===> "play!, pause!, stop!, cue, eject!, load!, volume"
would add auto discovery of methods (I do not know if the "!" is
allowed, but it would indicate an "action" opposed to parameter
setting).
Gaspard
More information about the OSC_dev
mailing list