org.videolan.jvlc
Class Playlist

java.lang.Object
  extended by org.videolan.jvlc.Playlist
All Implemented Interfaces:
PlaylistIntf

public class Playlist
extends java.lang.Object
implements PlaylistIntf


Constructor Summary
Playlist(long _libvlcInstance)
           
 
Method Summary
 int add(java.lang.String uri, java.lang.String name)
          Add a new item in the playlist
 int add(java.lang.String uri, java.lang.String name, java.lang.String[] options)
           
 void addExtended()
          Currently not implemented
 void clear()
          Clear the playlist
 void deleteItem(int itemID)
           
 long getInstance()
           
 boolean isRunning()
           
 int itemsCount()
           
 void next()
          Move to next item
 void play()
          Plays the current item
 void play(int id, java.lang.String[] options)
           
 void prev()
          Move to previous item
 void stop()
          Stops the playlist.
 void togglePause()
          Toggles pause for the current item.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Playlist

public Playlist(long _libvlcInstance)
Method Detail

play

public void play(int id,
                 java.lang.String[] options)
          throws VLCException
Specified by:
play in interface PlaylistIntf
Parameters:
id - The ID to play
options - Options to play the item withs
Throws:
VLCException

play

public void play()
          throws VLCException
Description copied from interface: PlaylistIntf
Plays the current item

Specified by:
play in interface PlaylistIntf
Throws:
VLCException

togglePause

public void togglePause()
                 throws VLCException
Description copied from interface: PlaylistIntf
Toggles pause for the current item.

Specified by:
togglePause in interface PlaylistIntf
Throws:
VLCException

stop

public void stop()
          throws VLCException
Description copied from interface: PlaylistIntf
Stops the playlist.

Specified by:
stop in interface PlaylistIntf
Throws:
VLCException

isRunning

public boolean isRunning()
                  throws VLCException
Specified by:
isRunning in interface PlaylistIntf
Returns:
True if playlist is not stopped
Throws:
VLCException

itemsCount

public int itemsCount()
               throws VLCException
Specified by:
itemsCount in interface PlaylistIntf
Returns:
Current number of items in the playlist
Throws:
VLCException

next

public void next()
          throws VLCException
Description copied from interface: PlaylistIntf
Move to next item

Specified by:
next in interface PlaylistIntf
Throws:
VLCException

prev

public void prev()
          throws VLCException
Description copied from interface: PlaylistIntf
Move to previous item

Specified by:
prev in interface PlaylistIntf
Throws:
VLCException

clear

public void clear()
           throws VLCException
Description copied from interface: PlaylistIntf
Clear the playlist

Specified by:
clear in interface PlaylistIntf
Throws:
VLCException

add

public int add(java.lang.String uri,
               java.lang.String name,
               java.lang.String[] options)
        throws VLCException
Throws:
VLCException

add

public int add(java.lang.String uri,
               java.lang.String name)
        throws VLCException
Description copied from interface: PlaylistIntf
Add a new item in the playlist

Specified by:
add in interface PlaylistIntf
Parameters:
uri - Location of the item
name - Name of the item
Returns:
The item ID
Throws:
VLCException

addExtended

public void addExtended()
Description copied from interface: PlaylistIntf
Currently not implemented

Specified by:
addExtended in interface PlaylistIntf

deleteItem

public void deleteItem(int itemID)
                throws VLCException
Throws:
VLCException

getInstance

public long getInstance()
                 throws VLCException
Throws:
VLCException