1 /*****************************************************************************
2 * PlaylistIntf.java: The playlist interface
3 *****************************************************************************
5 * Copyright (C) 1998-2006 the VideoLAN team
7 * Author: Filippo Carone <filippo@carone.org>
9 * Created on 28-feb-2006
13 * This program is free software; you can redistribute it
14 * and/or modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
23 * You should have received a copy of the GNU General Public
24 * License along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
30 package org.videolan.jvlc;
32 public interface PlaylistIntf {
34 * @param id The ID to play
35 * @param options Options to play the item withs
37 void play(int id, String[] options) throws VLCException;
40 * Plays the current item
42 void play() throws VLCException;
45 * Toggles pause for the current item.
47 void togglePause() throws VLCException;
52 void stop() throws VLCException;
55 * @return True if playlist is not stopped
57 boolean isRunning() throws VLCException;
60 * @return Current number of items in the playlist
62 int itemsCount() throws VLCException;
67 void next() throws VLCException;
70 * Move to previous item
72 void prev() throws VLCException;
77 void clear() throws VLCException;
80 * Add a new item in the playlist
81 * @param uri Location of the item
82 * @param name Name of the item
85 int add(String uri, String name) throws VLCException;
88 * Currently not implemented