public abstract class PlayerController extends Activator
Constructor and Description |
---|
PlayerController(Context context,
String ID) |
PlayerController(Context context,
String ID,
Player player) |
Modifier and Type | Method and Description |
---|---|
void |
command(String command,
Playlist playlist,
Progress progress,
TrackInfo trackInfo,
Volume volume)
commands the player to fulfill the command
|
Player |
getPlayer() |
void |
setPlayer(Player player) |
void |
startPlaying()
starts the playing command
|
void |
startPlaying(Playlist playlist)
starts the playing command
|
void |
startPlaying(TrackInfo trackInfo)
starts the playing command
|
void |
stopPlaying()
stops the playing of the music
|
activatorStarts, call, stop
getContext, getID
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fire, fire, fire, fire, fire
debug, debug, error, error, getContext
getID, isOwner
debug, debug, error, error, fatal, fatal, warn, warn
exceptionThrown
public PlayerController(Context context, String ID, Player player)
public PlayerController(Context context, String ID)
public void startPlaying()
public void startPlaying(TrackInfo trackInfo)
trackInfo
- the track to playpublic void startPlaying(Playlist playlist)
playlist
- the playlist to playpublic void stopPlaying()
public void command(String command, Playlist playlist, Progress progress, TrackInfo trackInfo, Volume volume)
command
- the commandplaylist
- the playlist, or null if not neededprogress
- the progress, or null if not neededtrackInfo
- the trackInfo, or null if not neededvolume
- the volume, or null if not neededCopyright © 2016. All rights reserved.