|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.cpc.impl.XSPFPlaylistImpl
public class XSPFPlaylistImpl
A playlist implementation which tracks through a fixed XSPF. Don't use this
directly; use a CPCPlaylist
instead.
Constructor Summary | |
---|---|
XSPFPlaylistImpl(PluginRuntime runtime,
PluginCallback callback,
VFile initialvf,
boolean isHandleXspf)
A playlist. |
Method Summary | |
---|---|
void |
changeTrack(ccs.audio.TrackChange motion)
Change to a different track (or possibly the same one.) |
ccs.audio.Track |
currentTrack()
The current track. |
void |
load()
Load the playlist. |
ccs.audio.Track |
peekTrack(ccs.audio.TrackChange motion)
The track which would be accessed by the next subsequent changeTrack() with the supplied motion. |
void |
setLoop(boolean isLoop)
Set whether the playlist should loop around at each end, rather than just stopping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSPFPlaylistImpl(PluginRuntime runtime, PluginCallback callback, VFile initialvf, boolean isHandleXspf)
runtime
- The plugin in question.callback
- The callback you were given.initialvf
- The VFile you were launched against.isHandleXspf
- Whether you want the playlist to handle XSPFs
internally. This will allow you to accept XSPFs and have them used as
playlists automatically. If you're the type of plugin for which playlists
make sense in the first place, this is usually a good idea.Method Detail |
---|
public void load() throws java.io.IOException
java.io.IOException
- If initialvf
pointed to an XSPF, and
the XSPF couldn't be loaded.public void setLoop(boolean isLoop)
public void changeTrack(ccs.audio.TrackChange motion)
ccs.audio.Playlist
changeTrack
in interface ccs.audio.Playlist
motion
- The track to change to. If the motion is NEXT and the
current track is the last one, behaviour is implementation-dependent.
Typically this will either change to the first track (loop around)
or to no track (end of the playlist).public ccs.audio.Track currentTrack()
ccs.audio.Playlist
changeTrack
call.
currentTrack
in interface ccs.audio.Playlist
public ccs.audio.Track peekTrack(ccs.audio.TrackChange motion)
ccs.audio.Playlist
peekTrack
in interface ccs.audio.Playlist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |