|
YAACC - UPNP Client and Server
|


Public Member Functions | |
| 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 | 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. | |
| PendingIntent | getNotificationIntent () |
| Returns the intent which is to be started by pushing the notification entry. | |
| void | onDestroy () |
| Kill 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 | |
| abstract long | getCurrentPosition () |
| returns the current position of the current item in millis | |
| String | getDuration () |
| returns the duration of the current item | |
| String | getElapsedTime () |
| returns the elapsed time of the current item | |
| URI | getAlbumArt () |
| boolean | getMute () |
| void | setMute (boolean mute) |
| int | getVolume () |
| void | setVolume (int volume) |
| int | getIconResourceId () |
| String | getDeviceId () |
| abstract void | seekTo (long millisecondsFromStart) |
| String | getShortName () |
| Get the player short name. | |
| void | setShortName (String name) |
| Set the short name of the player. | |
| boolean | hasActionGetVolume () |
| boolean | hasActionGetMute () |
| void | fastForward (int i) |
| fast forward seconds | |
| void | fastRewind (int i) |
| fast rewind seconds | |
Static Public Attributes | |
| static final String | PLAYER_ID = "PlayerId" |
| static final String | PROPERTY_ITEM = "item" |
Protected Member Functions | |
| 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) |
| abstract int | getNotificationId () |
| Returns the notification id of the player. | |
| abstract void | stopItem (PlayableItem playableItem) |
| abstract Object | loadItem (PlayableItem playableItem) |
| abstract void | startItem (PlayableItem playableItem, Object loadedItem) |
| void | firePropertyChange (String property, Object oldValue, Object newValue) |
| void | executeCommand (TimerTask command, Date executionTime) |
| de.yaacc.player.AbstractPlayer.AbstractPlayer | ( | UpnpClient | upnpClient | ) |
| upnpClient | the upnpclient |
| void de.yaacc.player.AbstractPlayer.addItems | ( | List< PlayableItem > | items | ) |
adds additional item to the end of the playlist
| items | the items to be added |
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.addPropertyChangeListener | ( | PropertyChangeListener | listener | ) |
| void de.yaacc.player.AbstractPlayer.clear | ( | ) |
Drops all Items.
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.exit | ( | ) |
Exit the player.
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportController, and de.yaacc.player.AVTransportPlayer.

| void de.yaacc.player.AbstractPlayer.fastForward | ( | int | i | ) |
fast forward seconds
| i | seconds |
Implements de.yaacc.player.Player.

| void de.yaacc.player.AbstractPlayer.fastRewind | ( | int | i | ) |
fast rewind seconds
| i | seconds |
Implements de.yaacc.player.Player.

| URI de.yaacc.player.AbstractPlayer.getAlbumArt | ( | ) |
Implements de.yaacc.player.Player.
| Context de.yaacc.player.AbstractPlayer.getContext | ( | ) |
Referenced by de.yaacc.player.AVTransportPlayer.getNotificationIntent(), de.yaacc.player.LocalBackgoundMusicPlayer.getNotificationIntent(), de.yaacc.player.MultiContentPlayer.getNotificationIntent(), de.yaacc.player.LocalBackgoundMusicPlayer.isShufflePlay(), de.yaacc.player.AbstractPlayer.next(), de.yaacc.player.AbstractPlayer.pause(), de.yaacc.player.AbstractPlayer.play(), de.yaacc.player.AbstractPlayer.previous(), de.yaacc.player.AbstractPlayer.startTimer(), and de.yaacc.player.AbstractPlayer.stop().

| int de.yaacc.player.AbstractPlayer.getCurrentItemIndex | ( | ) |
Implements de.yaacc.player.Player.
| String de.yaacc.player.AbstractPlayer.getCurrentItemTitle | ( | ) |
|
abstract |
returns the current position of the current item in millis
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.MultiContentPlayer.
Referenced by de.yaacc.player.AbstractPlayer.fastForward(), and de.yaacc.player.AbstractPlayer.fastRewind().

| String de.yaacc.player.AbstractPlayer.getDeviceId | ( | ) |
Implements de.yaacc.player.Player.
| String de.yaacc.player.AbstractPlayer.getDuration | ( | ) |
returns the duration of the current item
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer, and de.yaacc.player.LocalBackgoundMusicPlayer.
| String de.yaacc.player.AbstractPlayer.getElapsedTime | ( | ) |
returns the elapsed time of the current item
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer, and de.yaacc.player.LocalBackgoundMusicPlayer.
| Bitmap de.yaacc.player.AbstractPlayer.getIcon | ( | ) |
Implements de.yaacc.player.Player.
| int de.yaacc.player.AbstractPlayer.getIconResourceId | ( | ) |
Implements de.yaacc.player.Player.
| int de.yaacc.player.AbstractPlayer.getId | ( | ) |
Returns the id of the Player.
Implements de.yaacc.player.Player.
Referenced by de.yaacc.player.AVTransportPlayer.getNotificationIntent(), de.yaacc.player.LocalBackgoundMusicPlayer.getNotificationIntent(), and de.yaacc.player.AbstractPlayer.startTimer().


| List< PlayableItem > de.yaacc.player.AbstractPlayer.getItems | ( | ) |
Implements de.yaacc.player.Player.
| boolean de.yaacc.player.AbstractPlayer.getMute | ( | ) |
Implements de.yaacc.player.Player.
| String de.yaacc.player.AbstractPlayer.getName | ( | ) |
Get the player name.
Implements de.yaacc.player.Player.
Referenced by de.yaacc.player.AVTransportPlayer.getCurrentPosition(), de.yaacc.player.MultiContentPlayer.getCurrentPosition(), de.yaacc.player.AVTransportPlayer.getNotificationIntent(), de.yaacc.player.AVTransportController.next(), de.yaacc.player.AbstractPlayer.onDestroy(), de.yaacc.player.LocalBackgoundMusicPlayer.onDestroy(), de.yaacc.player.AVTransportPlayer.pause(), de.yaacc.player.AVTransportController.play(), de.yaacc.player.AVTransportController.previous(), and de.yaacc.player.AbstractPlayer.startTimer().

| String de.yaacc.player.AbstractPlayer.getNextItemTitle | ( | ) |
|
abstractprotected |
Returns the notification id of the player.
Reimplemented in de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.MultiContentPlayer.
Referenced by de.yaacc.player.AbstractPlayer.getId().

| PendingIntent de.yaacc.player.AbstractPlayer.getNotificationIntent | ( | ) |
Returns the intent which is to be started by pushing the notification entry.
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.MultiContentPlayer.
| String de.yaacc.player.AbstractPlayer.getPositionString | ( | ) |
returns the current item position in the playlist
Implements de.yaacc.player.Player.
Referenced by de.yaacc.player.AbstractPlayer.next(), de.yaacc.player.AbstractPlayer.pause(), de.yaacc.player.AbstractPlayer.play(), de.yaacc.player.AbstractPlayer.previous(), and de.yaacc.player.AbstractPlayer.stop().

| String de.yaacc.player.AbstractPlayer.getShortName | ( | ) |
|
protected |
returns the duration between two items
| UpnpClient de.yaacc.player.AbstractPlayer.getUpnpClient | ( | ) |
Referenced by de.yaacc.player.AbstractPlayer.next(), de.yaacc.player.AVTransportController.next(), de.yaacc.player.AbstractPlayer.pause(), de.yaacc.player.AVTransportPlayer.pause(), de.yaacc.player.AbstractPlayer.play(), de.yaacc.player.AVTransportController.play(), de.yaacc.player.AbstractPlayer.previous(), de.yaacc.player.AVTransportController.previous(), and de.yaacc.player.AbstractPlayer.stop().

| int de.yaacc.player.AbstractPlayer.getVolume | ( | ) |
Implements de.yaacc.player.Player.
| boolean de.yaacc.player.AbstractPlayer.hasActionGetMute | ( | ) |
Implements de.yaacc.player.Player.
| boolean de.yaacc.player.AbstractPlayer.hasActionGetVolume | ( | ) |
Implements de.yaacc.player.Player.
| boolean de.yaacc.player.AbstractPlayer.isPlaying | ( | ) |
Implements de.yaacc.player.Player.
|
protected |
is shuffle play enabled.
Reimplemented in de.yaacc.player.LocalBackgoundMusicPlayer.
Referenced by de.yaacc.player.AbstractPlayer.setItems().

| void de.yaacc.player.AbstractPlayer.next | ( | ) |
play the next item
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportController.

| void de.yaacc.player.AbstractPlayer.onDestroy | ( | ) |
Kill the player.
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer, and de.yaacc.player.LocalBackgoundMusicPlayer.

| void de.yaacc.player.AbstractPlayer.pause | ( | ) |
Pause the current item.
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportPlayer.

| void de.yaacc.player.AbstractPlayer.play | ( | ) |
start playing the current item
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportController.
Referenced by de.yaacc.player.AbstractPlayer.next(), and de.yaacc.player.AbstractPlayer.previous().


| void de.yaacc.player.AbstractPlayer.previous | ( | ) |
play the previous item
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportController.

| void de.yaacc.player.AbstractPlayer.removePropertyChangeListener | ( | PropertyChangeListener | listener | ) |
remove a property change listener
| listener | the listener |
Implements de.yaacc.player.Player.
|
abstract |
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.setIcon | ( | Bitmap | icon | ) |
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.setItems | ( | PlayableItem... | items | ) |
Set a List of Items.
| items | the items to be played |
Implements de.yaacc.player.Player.

| void de.yaacc.player.AbstractPlayer.setMute | ( | boolean | mute | ) |
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.setName | ( | String | name | ) |
Set the name of the player.
| name | the name |
Implements de.yaacc.player.Player.
Referenced by de.yaacc.player.AVTransportPlayer.AVTransportPlayer(), de.yaacc.player.LocalBackgoundMusicPlayer.LocalBackgoundMusicPlayer(), and de.yaacc.player.MultiContentPlayer.MultiContentPlayer().

| void de.yaacc.player.AbstractPlayer.setShortName | ( | String | name | ) |
Set the short name of the player.
| name | the name |
Implements de.yaacc.player.Player.
Referenced by de.yaacc.player.AVTransportPlayer.AVTransportPlayer(), de.yaacc.player.LocalBackgoundMusicPlayer.LocalBackgoundMusicPlayer(), and de.yaacc.player.MultiContentPlayer.MultiContentPlayer().

| void de.yaacc.player.AbstractPlayer.setVolume | ( | int | volume | ) |
Implements de.yaacc.player.Player.
| void de.yaacc.player.AbstractPlayer.startTimer | ( | final long | duration | ) |
Start a timer for the next item change.
| duration | in millis |
Reimplemented in de.yaacc.player.AVTransportPlayer.

| void de.yaacc.player.AbstractPlayer.stop | ( | ) |
stops playing.
And returns to the beginning of the item list.
Implements de.yaacc.player.Player.
Reimplemented in de.yaacc.player.AVTransportController.
Referenced by de.yaacc.player.AbstractPlayer.exit(), de.yaacc.player.AbstractPlayer.next(), and de.yaacc.player.AbstractPlayer.onDestroy().

