YAACC - UPNP Client and Server
|
A Player for playing on a remote avtransport device. More...
Public Member Functions | |
AVTransportPlayer (UpnpClient upnpClient, Device<?, ?, ?> receiverDevice, String name, String shortName, String contentType) | |
AVTransportPlayer (UpnpClient upnpClient) | |
String | getDeviceId () |
String | getContentType () |
PendingIntent | getNotificationIntent () |
Returns the intent which is to be started by pushing the notification entry. | |
void | pause () |
Pause the current item. | |
URI | getAlbumArt () |
boolean | getMute () |
void | setMute (boolean mute) |
int | getVolume () |
void | setVolume (int volume) |
int | getIconResourceId () |
void | seekTo (long millisecondsFromStart) |
long | getRemainingTime () |
String | getDuration () |
returns the duration of the current item | |
String | getElapsedTime () |
returns the elapsed time of the current item | |
void | startTimer (final long duration) |
Start a timer for the next item change. | |
void | onDestroy () |
Kill the player. | |
void | exit () |
Exit the player. | |
boolean | hasActionGetVolume () |
boolean | hasActionGetMute () |
Public Member Functions inherited from de.yaacc.player.AbstractPlayer | |
AbstractPlayer (UpnpClient upnpClient) | |
void | onServiceConnected (ComponentName className, IBinder binder) |
void | onServiceDisconnected (ComponentName className) |
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 | 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 | |
String | getName () |
Get the player name. | |
void | setName (String name) |
Set the name of the player. | |
boolean | isProcessingCommand () |
void | setProcessingCommand (boolean isProcessingCommand) |
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. | |
String | getShortName () |
Get the player short name. | |
void | setShortName (String name) |
Set the short name of the player. | |
Protected Member Functions | |
Device<?, ?, ?> | getDevice () |
void | stopItem (PlayableItem playableItem) |
Object | loadItem (PlayableItem playableItem) |
void | startItem (PlayableItem playableItem, Object loadedItem) |
int | getNotificationId () |
Returns the notification id of the player. | |
void | getPositionInfo () |
Protected Member Functions inherited from de.yaacc.player.AbstractPlayer | |
boolean | isShufflePlay () |
is shuffle play enabled. | |
void | cancelTimer () |
Object | loadItem (int toLoadIndex) |
void | loadItem (int previousIndex, int nextIndex) |
void | doPostLoadItem (PlayableItem playableItem) |
void | doPause () |
void | doResume () |
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 playing on a remote avtransport device.
de.yaacc.player.AVTransportPlayer.AVTransportPlayer | ( | UpnpClient | upnpClient, |
Device<?, ?, ?> | receiverDevice, | ||
String | name, | ||
String | shortName, | ||
String | contentType | ||
) |
upnpClient | the client |
name | playerName |
de.yaacc.player.AVTransportPlayer.AVTransportPlayer | ( | UpnpClient | upnpClient | ) |
upnpClient | the client |
void de.yaacc.player.AVTransportPlayer.exit | ( | ) |
Exit the player.
Reimplemented from de.yaacc.player.AbstractPlayer.
Reimplemented in de.yaacc.player.AVTransportController.
URI de.yaacc.player.AVTransportPlayer.getAlbumArt | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
String de.yaacc.player.AVTransportPlayer.getDeviceId | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
String de.yaacc.player.AVTransportPlayer.getDuration | ( | ) |
returns the duration of the current item
Reimplemented from de.yaacc.player.AbstractPlayer.
String de.yaacc.player.AVTransportPlayer.getElapsedTime | ( | ) |
returns the elapsed time of the current item
Reimplemented from de.yaacc.player.AbstractPlayer.
int de.yaacc.player.AVTransportPlayer.getIconResourceId | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
boolean de.yaacc.player.AVTransportPlayer.getMute | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Returns the notification id of the player.
Reimplemented from de.yaacc.player.AbstractPlayer.
PendingIntent de.yaacc.player.AVTransportPlayer.getNotificationIntent | ( | ) |
Returns the intent which is to be started by pushing the notification entry.
Reimplemented from de.yaacc.player.AbstractPlayer.
long de.yaacc.player.AVTransportPlayer.getRemainingTime | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
int de.yaacc.player.AVTransportPlayer.getVolume | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
boolean de.yaacc.player.AVTransportPlayer.hasActionGetMute | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
boolean de.yaacc.player.AVTransportPlayer.hasActionGetVolume | ( | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.onDestroy | ( | ) |
Kill the player.
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.pause | ( | ) |
Pause the current item.
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.seekTo | ( | long | millisecondsFromStart | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.setMute | ( | boolean | mute | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.setVolume | ( | int | volume | ) |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.
void de.yaacc.player.AVTransportPlayer.startTimer | ( | final long | duration | ) |
Start a timer for the next item change.
duration | in millis |
Reimplemented from de.yaacc.player.AbstractPlayer.
|
protected |
Reimplemented from de.yaacc.player.AbstractPlayer.