YAACC - UPNP Client and Server
|
A Player for local music playing in background. More...
Public Member Functions | |
LocalBackgoundMusicPlayer (UpnpClient upnpClient, String name, String shortName) | |
LocalBackgoundMusicPlayer (UpnpClient upnpClient) | |
void | onDestroy () |
Kill the player. | |
PendingIntent | getNotificationIntent () |
Returns the intent which is to be started by pushing the notification entry. | |
String | getDuration () |
Returns the duration of the current track. | |
String | getElapsedTime () |
returns the elapsed time of the current item | |
URI | getAlbumArt () |
void | onServiceConnected (ComponentName className, IBinder binder) |
void | onServiceDisconnected (ComponentName className) |
boolean | isMusicServiceBound () |
True if the player is initialized. | |
int | getIconResourceId () |
void | seekTo (long millisecondsFromStart) |
void | onCompletion () |
Public Member Functions inherited from de.yaacc.player.AbstractPlayer | |
AbstractPlayer (UpnpClient upnpClient) | |
Context | getContext () |
Bitmap | getIcon () |
void | setIcon (Bitmap icon) |
UpnpClient | getUpnpClient () |
void | startService () |
void | next () |
play the next item | |
void | previous () |
play the previous item | |
void | pause () |
Pause the current item. | |
void | play () |
start playing the current item | |
void | stop () |
stops playing. | |
void | clear () |
Drops all Items. | |
boolean | isPlaying () |
void | setPlaying (boolean isPlaying) |
int | getCurrentIndex () |
void | setCurrentIndex (int currentIndex) |
List< PlayableItem > | getItems () |
void | setItems (PlayableItem... playableItems) |
Set a List of Items. | |
void | addItems (List< PlayableItem > playableItems) |
adds additional item to the end of the playlist | |
String | getPositionString () |
returns the current item position in the playlist | |
int | getCurrentItemIndex () |
String | getCurrentItemTitle () |
returns the title of the current item | |
String | getNextItemTitle () |
returns the title of the next current item | |
long | getRemainingTime () |
void | startTimer (final long duration) |
Start a timer for the next item change. | |
String | getName () |
Get the player name. | |
void | setName (String name) |
Set the name of the player. | |
boolean | isProcessingCommand () |
void | setProcessingCommand (boolean isProcessingCommand) |
void | exit () |
Exit the player. | |
int | getId () |
Returns the id of the Player. | |
void | addPropertyChangeListener (PropertyChangeListener listener) |
add a property change listener | |
void | removePropertyChangeListener (PropertyChangeListener listener) |
remove a property change listener | |
SynchronizationInfo | getSyncInfo () |
Get the synchronization information. | |
void | setSyncInfo (SynchronizationInfo syncInfo) |
Set the synchronization information. | |
boolean | getMute () |
void | setMute (boolean mute) |
int | getVolume () |
void | setVolume (int volume) |
String | getDeviceId () |
String | getShortName () |
Get the player short name. | |
void | setShortName (String name) |
Set the short name of the player. | |
boolean | hasActionGetVolume () |
boolean | hasActionGetMute () |
Protected Member Functions | |
void | doPause () |
void | doResume () |
void | stopItem (PlayableItem playableItem) |
Object | loadItem (PlayableItem playableItem) |
void | startItem (PlayableItem playableItem, Object loadedItem) |
int | getNotificationId () |
Returns the notification id of the player. | |
boolean | isShufflePlay () |
read the setting for music player shuffle play. | |
void | doPostLoadItem (PlayableItem playableItem) |
Protected Member Functions inherited from de.yaacc.player.AbstractPlayer | |
void | cancelTimer () |
Object | loadItem (int toLoadIndex) |
void | loadItem (int previousIndex, int nextIndex) |
long | getSilenceDuration () |
returns the duration between two items | |
void | updateTimer () |
long | parseTimeStringToMillis (String timeString) |
void | firePropertyChange (String property, Object oldValue, Object newValue) |
Date | getExecutionTime () |
void | executeCommand (TimerTask command, Date executionTime) |
Additional Inherited Members | |
Static Public Attributes inherited from de.yaacc.player.AbstractPlayer | |
static final String | PLAYER_ID = "PlayerId" |
static final String | PROPERTY_ITEM = "item" |
A Player for local music playing in background.
de.yaacc.player.LocalBackgoundMusicPlayer.LocalBackgoundMusicPlayer | ( | UpnpClient | upnpClient, |
String | name, | ||
String | shortName | ||
) |
name | playerName |
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
URI de.yaacc.player.LocalBackgoundMusicPlayer.getAlbumArt | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
String de.yaacc.player.LocalBackgoundMusicPlayer.getDuration | ( | ) |
Returns the duration of the current track.
Reimplemented from de.yaacc.player.AbstractPlayer.
Referenced by de.yaacc.player.LocalBackgoundMusicPlayer.getDuration().
String de.yaacc.player.LocalBackgoundMusicPlayer.getElapsedTime | ( | ) |
returns the elapsed time of the current item
Reimplemented from de.yaacc.player.AbstractPlayer.
int de.yaacc.player.LocalBackgoundMusicPlayer.getIconResourceId | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Returns the notification id of the player.
Reimplemented from de.yaacc.player.AbstractPlayer.
PendingIntent de.yaacc.player.LocalBackgoundMusicPlayer.getNotificationIntent | ( | ) |
Returns the intent which is to be started by pushing the notification entry.
Reimplemented from de.yaacc.player.AbstractPlayer.
boolean de.yaacc.player.LocalBackgoundMusicPlayer.isMusicServiceBound | ( | ) |
True if the player is initialized.
Referenced by de.yaacc.player.LocalBackgoundMusicPlayer.getDuration(), and de.yaacc.player.LocalBackgoundMusicPlayer.getElapsedTime().
|
protected |
read the setting for music player shuffle play.
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.LocalBackgoundMusicPlayer.onDestroy | ( | ) |
Kill the player.
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.LocalBackgoundMusicPlayer.onServiceConnected | ( | ComponentName | className, |
IBinder | binder | ||
) |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.LocalBackgoundMusicPlayer.onServiceDisconnected | ( | ComponentName | className | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.LocalBackgoundMusicPlayer.seekTo | ( | long | millisecondsFromStart | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.