Modifier and Type | Method and Description |
---|---|
static Optional<PlayerUpdate> |
PlayerUpdate.createPlayerUpdate(Identification source,
TrackInfo trackInfo)
Creates a new Event Object
|
static Optional<StartMusicRequest> |
StartMusicRequest.createStartMusicRequest(Identification source,
Identification target,
TrackInfo trackInfo)
creates a new StartRequest
|
static Optional<StartMusicRequest> |
StartMusicRequest.createStartMusicRequest(Identification source,
Identification target,
TrackInfo trackInfo,
boolean isUsingJava)
creates a new StartRequest
|
Modifier and Type | Method and Description |
---|---|
TrackInfo |
Playlist.getCurrent()
returns the current played track or null
|
Modifier and Type | Method and Description |
---|---|
List<TrackInfo> |
Playlist.getQueue()
returns the queue
|
static Optional<TrackInfo> |
TrackInfo.importFromHashMap(HashMap<String,Object> hashMap)
returns the optional TrackInfo if the HashMap contains no malformed data
|
static Optional<TrackInfo> |
TrackInfo.importFromResource(ResourceModel resourceModel)
creates a TrackInfo from the resourceModel
|
Optional<TrackInfo> |
TrackInfo.update(String name,
String artist,
String album,
byte[] albumCover,
String coverFormat,
String data,
String year,
String genre,
String bmp,
long duration)
returns a trackinfo if some information was added and not overwritten (see isNew) AND a change occurred.
|
Optional<TrackInfo> |
TrackInfo.update(TrackInfo trackInfo)
returns a trackinfo if some information was added and not overwritten
|
Modifier and Type | Method and Description |
---|---|
boolean |
TrackInfo.isNew(TrackInfo trackInfo)
retruns true if any of these arguments is already existing and would be overwritten, otherwise retruns false.
|
default void |
MusicHelper.startedSound(Playlist playlist,
Progress progress,
TrackInfo trackInfo,
Volume volume,
boolean isUsingJava)
fires an StartEvent
|
Optional<TrackInfo> |
TrackInfo.update(TrackInfo trackInfo)
returns a trackinfo if some information was added and not overwritten
|
Playlist |
Playlist.update(TrackInfo old,
TrackInfo newTrackInfo)
updates the TrackInfo-Object
|
default void |
MusicHelper.updatePlayInfo(Playlist playlist,
Progress progress,
TrackInfo trackInfo,
Volume volume)
fires an update event which notifies that parameters have changed
|
default void |
MusicHelper.updatePlayInfo(TrackInfo trackInfo)
fires an update event which notifies that parameters have changed
|
Constructor and Description |
---|
Playlist(List<TrackInfo> queue) |
Playlist(List<TrackInfo> queue,
String name,
List<PlaybackMode> playbackModes,
int position) |
Playlist(List<TrackInfo> queue,
String name,
List<PlaybackMode> playbackModes,
int position,
String data) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerController.command(String command,
Playlist playlist,
Progress progress,
TrackInfo trackInfo,
Volume volume)
commands the player to fulfill the command
|
void |
PlayerController.startPlaying(TrackInfo trackInfo)
starts the playing command
|
void |
Player.trackInfoUpdate(Playlist playlist,
TrackInfo info)
call this method if the trackInfo object in the playlist was updated.
|
void |
Player.updateCurrentTrackInfo(TrackInfo trackInfo)
checks if the trackInfo is an update and fires the appropriate Event.
|
void |
Player.updatePlayInfo(Playlist playlist,
Progress progress,
TrackInfo trackInfo,
Volume volume)
fires an update event which notifies that parameters have changed
|
Modifier and Type | Method and Description |
---|---|
void |
CommandHandler.setTrackSelectorController(java.util.function.Consumer<TrackInfo> controller)
adds the ability to select tracks
|
Modifier and Type | Method and Description |
---|---|
static Optional<TrackInfo> |
TrackInfoResource.getTrackInfo(EventModel eventModel)
gets the first TrackInfo if found in the EventModel
|
Constructor and Description |
---|
TrackInfoResource(Identification provider,
TrackInfo trackInfo)
creates a new Resource.
|
TrackInfoResource(Identification provider,
TrackInfo trackInfo,
Identification consumer)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<PlayerRequest> |
PlayerRequest.createPlayerRequest(TrackInfo trackInfo,
boolean permanent,
Identification player,
AddOnModule source)
creates a new PlayerRequest.
|
static Optional<PlayerRequest> |
PlayerRequest.createPlayerRequest(TrackInfo trackInfo,
Identification player,
AddOnModule source)
creates a new PlayerRequest.
|
Constructor and Description |
---|
PlayerRequest(TrackInfo trackInfo,
Playlist playlist,
boolean permanent,
Identification player,
Capabilities capabilities,
Context context,
Identifiable identifiable)
internal Constructor
|
PlayerRequest(TrackInfo trackInfo,
Playlist playlist,
boolean permanent,
Identification player,
Capabilities capabilities,
Context context,
Identifiable identifiable,
Volume volume)
internal Constructor
|
Copyright © 2016. All rights reserved.