Difference between revisions of "Documentation:Modules/osc"

From VideoLAN Wiki
Jump to navigation Jump to search
m (changed version number in 'screenshot')
m (Added to the Interfaces category)
Line 31: Line 31:
 
[00000001] main libvlc debug: VLC media player - version 1.0.0-git Goldeneye - (c) 1996-2008 the VideoLAN team
 
[00000001] main libvlc debug: VLC media player - version 1.0.0-git Goldeneye - (c) 1996-2008 the VideoLAN team
 
[00000001] main libvlc debug: translation test: code is "C"
 
[00000001] main libvlc debug: translation test: code is "C"
[00000287] osc interface: Listening for OSC messages on: osc.udp://vmware.aelius.co.uk:4444/
+
[00000287] osc interface: Listening for OSC messages on: osc.udp://127.0.0.1:4444/
 
[00000293] dummy interface: using the dummy interface module...
 
[00000293] dummy interface: using the dummy interface module...
 
</pre>
 
</pre>
Line 43: Line 43:
 
Stop the track playing:
 
Stop the track playing:
 
<pre>$ oscsend 127.0.0.1 4444 /deck/stop</pre>
 
<pre>$ oscsend 127.0.0.1 4444 /deck/stop</pre>
 +
 +
 +
[[Category:Interfaces]]

Revision as of 20:40, 14 December 2008

Module: osc
Type Interface
First VLC version -
Last VLC version -
Operating system(s) Any that support the liblo library
Description control VLC using the Open Sound Control protocol
Shortcut(s) -

This module lets you send control messages to VLC using the Open Sound Control protocol.

The following commands are currently supported:

 → /deck/play          - Start playback
 → /deck/pause         - Pause playback
 → /deck/stop          - Stop playback
 → /deck/eject         - Eject (stops and clears the playlist)
 → /deck/load (s)      - Load <mrl> (stops and clears the playlist first)

NOTE: These paths are designed to be compatible with MadJACK and are subject to change. They treat VLC as a single track player and playlist functionality isn't currently supported.


Options

  • osc-port <integer> : Port number to listen on default value: randomly allocated port number


Example

Start VLC with the OSC control interface loaded:

$ vlc -I dummy --control osc --osc-port 4444 
VLC media player 1.0.0-git Goldeneye
[00000001] main libvlc debug: VLC media player - version 1.0.0-git Goldeneye - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: translation test: code is "C"
[00000287] osc interface: Listening for OSC messages on: osc.udp://127.0.0.1:4444/
[00000293] dummy interface: using the dummy interface module...

Load a track:

$ oscsend 127.0.0.1 4444 /deck/load 's' /Users/njh/Music/003820.mp3

Start the track playing:

$ oscsend 127.0.0.1 4444 /deck/play

Stop the track playing:

$ oscsend 127.0.0.1 4444 /deck/stop