2 * Created on 28-feb-2006
6 * This program is free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22 * @author Filippo Carone <filippo@carone.org>
25 package org.videolan.jvlc;
27 public class Playlist implements PlaylistIntf {
30 private long libvlcInstance;
32 public Playlist(long _libvlcInstance) {
33 this.libvlcInstance = _libvlcInstance;
36 native private int _playlist_add(String uri, String name);
37 native private void _play(int _id, String[] options);
38 native private void _pause();
39 native private void _stop();
40 native private void _next();
41 native private void _prev();
42 native private void _clear();
44 native private int _itemsCount();
45 native private int _isPlaying();
47 public void play(int id, String[] options) {
61 public boolean isPlaying() {
62 return (_isPlaying() == 1)? false : true ;
65 public int itemsCount() {
81 public int add(String uri, String name) {
82 return _playlist_add(uri, name);
85 public void addExtended() {
86 // TODO Auto-generated method stub
89 public long getInstance() {
90 return libvlcInstance;