Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
24bb0143
Commit
24bb0143
authored
Sep 26, 2009
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: Playlist class removed
parent
89187b02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
126 deletions
+0
-126
bindings/java/core/src/main/java/org/videolan/jvlc/Playlist.java
...s/java/core/src/main/java/org/videolan/jvlc/Playlist.java
+0
-126
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/Playlist.java
deleted
100644 → 0
View file @
89187b02
/*****************************************************************************
* Playlist.java: PlaylistIntf implementation class
*****************************************************************************
*
* Copyright (C) 1998-2008 the VideoLAN team
*
* Author: Filippo Carone <filippo@carone.org>
*
* Created on 28-feb-2006
*
* $Id: Playlist.java 17089 2006-10-15 10:54:15Z littlejohn $
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*
*/
package
org.videolan.jvlc
;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaPlayer
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
/**
* The playlist is deprecated and will be removed. Use MediaList and MediaListPlayer instead.
*/
@Deprecated
public
class
Playlist
{
private
final
LibVlcInstance
libvlcInstance
;
private
final
LibVlc
libvlc
;
private
final
JVLC
jvlc
;
public
Playlist
(
JVLC
jvlc
)
{
this
.
jvlc
=
jvlc
;
this
.
libvlcInstance
=
jvlc
.
getInstance
();
this
.
libvlc
=
jvlc
.
getLibvlc
();
}
public
synchronized
void
play
(
int
id
,
String
[]
options
)
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_play
(
libvlcInstance
,
id
,
options
.
length
,
options
,
exception
);
}
public
synchronized
void
play
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_play
(
libvlcInstance
,
-
1
,
0
,
new
String
[]
{},
exception
);
}
public
synchronized
void
togglePause
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_pause
(
libvlcInstance
,
exception
);
}
public
synchronized
void
stop
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_stop
(
libvlcInstance
,
exception
);
}
public
boolean
isRunning
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
return
libvlc
.
libvlc_playlist_isplaying
(
libvlcInstance
,
exception
)
==
0
?
false
:
true
;
}
public
synchronized
int
itemsCount
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
return
libvlc
.
libvlc_playlist_items_count
(
libvlcInstance
,
exception
);
}
public
synchronized
void
next
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
if
(!
isRunning
())
play
();
libvlc
.
libvlc_playlist_next
(
libvlcInstance
,
exception
);
}
public
synchronized
void
prev
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
if
(!
isRunning
())
play
();
libvlc
.
libvlc_playlist_prev
(
libvlcInstance
,
exception
);
}
public
synchronized
void
clear
()
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_clear
(
libvlcInstance
,
exception
);
}
public
synchronized
int
add
(
String
uri
,
String
name
)
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
return
libvlc
.
libvlc_playlist_add
(
libvlcInstance
,
uri
,
name
,
exception
);
}
public
synchronized
void
deleteItem
(
int
itemID
)
throws
VLCException
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_delete_item
(
libvlcInstance
,
itemID
,
exception
);
}
public
synchronized
void
setLoop
(
boolean
loop
)
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
.
libvlc_playlist_loop
(
libvlcInstance
,
loop
?
1
:
0
,
exception
);
}
public
MediaPlayer
getMediaInstance
()
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaPlayer
mi
=
libvlc
.
libvlc_playlist_get_media_player
(
libvlcInstance
,
exception
);
return
new
MediaPlayer
(
jvlc
,
mi
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment