org.videolan.jvlc
Class VLM

java.lang.Object
  extended by org.videolan.jvlc.VLM
All Implemented Interfaces:
VLMIntf

public class VLM
extends java.lang.Object
implements VLMIntf


Constructor Summary
VLM(long instance)
           
 
Method Summary
 void addBroadcast(java.lang.String name, java.lang.String input, java.lang.String output, java.lang.String[] options, boolean enabled, boolean loop)
          Add a broadcast, with one input
 void changeMedia(java.lang.String name, java.lang.String input, java.lang.String output, java.lang.String[] options, boolean enabled, boolean loop)
          Edit the parameters of a media.
 void deleteMedia(java.lang.String name)
          Delete a media (vod or broadcast)
 long getInstance()
           
 void pauseMedia(java.lang.String name)
          Pauses a media
 void playMedia(java.lang.String name)
          Plays a media
 void setEnabled(java.lang.String name, boolean enabled)
          Enable or disable a media (vod or broadcast)
 void setInput(java.lang.String name, java.lang.String input)
          Set a media's input MRL.
 void setLoop(java.lang.String name, boolean loop)
          Set loop mode for a media
 void setOutput(java.lang.String name, java.lang.String output)
          Set the output for a media
 void stopMedia(java.lang.String name)
          Stops a media
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VLM

public VLM(long instance)
Method Detail

addBroadcast

public void addBroadcast(java.lang.String name,
                         java.lang.String input,
                         java.lang.String output,
                         java.lang.String[] options,
                         boolean enabled,
                         boolean loop)
                  throws VLCException
Description copied from interface: VLMIntf
Add a broadcast, with one input

Specified by:
addBroadcast in interface VLMIntf
Parameters:
name - the name of the new broadcast
input - the input MRL
output - the output MRL (the parameter to the "sout" variable)
options - additional options
enabled - boolean for enabling the new broadcast
loop - Should this broadcast be played in loop ?
Throws:
VLCException

deleteMedia

public void deleteMedia(java.lang.String name)
                 throws VLCException
Description copied from interface: VLMIntf
Delete a media (vod or broadcast)

Specified by:
deleteMedia in interface VLMIntf
Parameters:
name - the media to delete
Throws:
VLCException

setEnabled

public void setEnabled(java.lang.String name,
                       boolean enabled)
                throws VLCException
Description copied from interface: VLMIntf
Enable or disable a media (vod or broadcast)

Specified by:
setEnabled in interface VLMIntf
Parameters:
name - the media to work on
enabled - the new status
Throws:
VLCException

setOutput

public void setOutput(java.lang.String name,
                      java.lang.String output)
               throws VLCException
Description copied from interface: VLMIntf
Set the output for a media

Specified by:
setOutput in interface VLMIntf
Parameters:
name - the media to work on
output - the output MRL (the parameter to the "sout" variable)
Throws:
VLCException

setInput

public void setInput(java.lang.String name,
                     java.lang.String input)
              throws VLCException
Description copied from interface: VLMIntf
Set a media's input MRL. This will delete all existing inputs and add the specified one.

Specified by:
setInput in interface VLMIntf
Parameters:
name - the media to work on
input - the input MRL
Throws:
VLCException

setLoop

public void setLoop(java.lang.String name,
                    boolean loop)
             throws VLCException
Description copied from interface: VLMIntf
Set loop mode for a media

Specified by:
setLoop in interface VLMIntf
Parameters:
name - the media to work on
loop - the new status
Throws:
VLCException

changeMedia

public void changeMedia(java.lang.String name,
                        java.lang.String input,
                        java.lang.String output,
                        java.lang.String[] options,
                        boolean enabled,
                        boolean loop)
                 throws VLCException
Description copied from interface: VLMIntf
Edit the parameters of a media. This will delete all existing inputs and add the specified one.

Specified by:
changeMedia in interface VLMIntf
Parameters:
name - the name of the new broadcast
input - the input MRL
output - the output MRL (the parameter to the "sout" variable)
options - additional options
enabled - boolean for enabling the new broadcast
loop - Should this broadcast be played in loop ?
Throws:
VLCException

playMedia

public void playMedia(java.lang.String name)
               throws VLCException
Description copied from interface: VLMIntf
Plays a media

Specified by:
playMedia in interface VLMIntf
Parameters:
name - of the broadcast to play
Throws:
VLCException

stopMedia

public void stopMedia(java.lang.String name)
               throws VLCException
Description copied from interface: VLMIntf
Stops a media

Specified by:
stopMedia in interface VLMIntf
Parameters:
name - of the broadcast to stop
Throws:
VLCException

pauseMedia

public void pauseMedia(java.lang.String name)
                throws VLCException
Description copied from interface: VLMIntf
Pauses a media

Specified by:
pauseMedia in interface VLMIntf
Parameters:
name - name of the broadcast to pause
Throws:
VLCException

getInstance

public long getInstance()