Package org.luwrain.player
Class FixedPlaylist
java.lang.Object
org.luwrain.player.FixedPlaylist
- All Implemented Interfaces:
Playlist
,ProgressListener
,VolumeListener
-
Constructor Summary
ConstructorDescriptionFixedPlaylist
(String url) FixedPlaylist
(String[] urls) FixedPlaylist
(String[] urls, ProgressListener progressListener, VolumeListener volumeListener, int volume) FixedPlaylist
(String[] urls, VolumeListener volumeListener, int volume) -
Method Summary
Modifier and TypeMethodDescriptionString[]
int
getTrackUrl
(int index) int
void
onNewVolume
(int newVolumeLevel) void
onProgress
(int trackIndex, long timeMsec)
-
Constructor Details
-
FixedPlaylist
public FixedPlaylist(String[] urls, ProgressListener progressListener, VolumeListener volumeListener, int volume) -
FixedPlaylist
-
FixedPlaylist
-
FixedPlaylist
-
-
Method Details
-
getAllTracks
-
getTrackCount
public int getTrackCount()- Specified by:
getTrackCount
in interfacePlaylist
-
getTrackUrl
- Specified by:
getTrackUrl
in interfacePlaylist
-
getVolume
public int getVolume() -
onNewVolume
public void onNewVolume(int newVolumeLevel) - Specified by:
onNewVolume
in interfaceVolumeListener
-
onProgress
public void onProgress(int trackIndex, long timeMsec) - Specified by:
onProgress
in interfaceProgressListener
-