|
YAACC - UPNP Client and Server
|
A Player is able to play stop a couple of MediaObjects. More...


Public Member Functions | |
| 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 | setItems (PlayableItem... items) |
| Set a List of Items. | |
| void | addItems (List< PlayableItem > items) |
| adds additional item to the end of the playlist | |
| void | clear () |
| Drops all Items. | |
| void | onDestroy () |
| Kill the player. | |
| String | getName () |
| Get the player name. | |
| void | setName (String name) |
| Set the name of the player. | |
| String | getShortName () |
| Get the player short name. | |
| void | setShortName (String name) |
| Set the short name of the player. | |
| 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 | |
| String | getPositionString () |
| returns the current item position in the playlist | |
| String | getCurrentItemTitle () |
| returns the title of the current item | |
| int | getCurrentItemIndex () |
| boolean | isPlaying () |
| String | getNextItemTitle () |
| returns the title of the next item | |
| String | getDuration () |
| returns the duration of the current item | |
| long | getCurrentPosition () |
| returns the current position of the current item in millis | |
| String | getElapsedTime () |
| returns the elapsed time of the current item | |
| URI | getAlbumArt () |
| Bitmap | getIcon () |
| void | setIcon (Bitmap icon) |
| boolean | getMute () |
| void | setMute (boolean mute) |
| int | getVolume () |
| boolean | hasActionGetVolume () |
| boolean | hasActionGetMute () |
| void | setVolume (int volume) |
| int | getIconResourceId () |
| String | getDeviceId () |
| PendingIntent | getNotificationIntent () |
| Returns the intent which is to be started by pushing the notification entry. | |
| void | seekTo (long millisecondsFromStart) |
| List< PlayableItem > | getItems () |
| void | fastForward (int i) |
| fast forward seconds | |
| void | fastRewind (int i) |
| fast rewind seconds | |
A Player is able to play stop a couple of MediaObjects.
| void de.yaacc.player.Player.addItems | ( | List< PlayableItem > | items | ) |
adds additional item to the end of the playlist
| items | the items to be added |
Implemented in de.yaacc.player.LocalImagePlayer, and de.yaacc.player.AbstractPlayer.
| void de.yaacc.player.Player.addPropertyChangeListener | ( | PropertyChangeListener | listener | ) |
add a property change listener
| listener | the listener |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.clear | ( | ) |
Drops all Items.
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.exit | ( | ) |
Exit the player.
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportController, de.yaacc.player.AVTransportPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.fastForward | ( | int | i | ) |
fast forward seconds
| i | seconds |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.fastRewind | ( | int | i | ) |
fast rewind seconds
| i | seconds |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| String de.yaacc.player.Player.getCurrentItemTitle | ( | ) |
returns the title of the current item
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| long de.yaacc.player.Player.getCurrentPosition | ( | ) |
returns the current position of the current item in millis
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, de.yaacc.player.LocalImagePlayer, and de.yaacc.player.MultiContentPlayer.
| String de.yaacc.player.Player.getDuration | ( | ) |
returns the duration of the current item
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.LocalImagePlayer.
| String de.yaacc.player.Player.getElapsedTime | ( | ) |
returns the elapsed time of the current item
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.LocalImagePlayer.
| int de.yaacc.player.Player.getId | ( | ) |
Returns the id of the Player.
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
Referenced by de.yaacc.player.PlayerService.shutdown().

| String de.yaacc.player.Player.getName | ( | ) |
Get the player name.
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| String de.yaacc.player.Player.getNextItemTitle | ( | ) |
returns the title of the next item
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| PendingIntent de.yaacc.player.Player.getNotificationIntent | ( | ) |
Returns the intent which is to be started by pushing the notification entry.
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, de.yaacc.player.LocalImagePlayer, and de.yaacc.player.MultiContentPlayer.
| String de.yaacc.player.Player.getPositionString | ( | ) |
returns the current item position in the playlist
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| String de.yaacc.player.Player.getShortName | ( | ) |
Get the player short name.
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.next | ( | ) |
play the next item
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportController, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.onDestroy | ( | ) |
Kill the player.
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, de.yaacc.player.LocalBackgoundMusicPlayer, and de.yaacc.player.LocalImagePlayer.
Referenced by de.yaacc.player.PlayerService.shutdown().

| void de.yaacc.player.Player.pause | ( | ) |
Pause the current item.
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.play | ( | ) |
start playing the current item
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportController, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.previous | ( | ) |
play the previous item
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportController, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.removePropertyChangeListener | ( | PropertyChangeListener | listener | ) |
remove a property change listener
| listener | the listener |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.setItems | ( | PlayableItem... | items | ) |
Set a List of Items.
| items | the items to be played |
Implemented in de.yaacc.player.LocalImagePlayer, and de.yaacc.player.AbstractPlayer.
Referenced by de.yaacc.player.PlayerService.createPlayer().

| void de.yaacc.player.Player.setName | ( | String | name | ) |
Set the name of the player.
| name | the name |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.setShortName | ( | String | name | ) |
Set the short name of the player.
| name | the name |
Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.
| void de.yaacc.player.Player.stop | ( | ) |
stops playing.
And returns to the beginning of the item list.
Implemented in de.yaacc.player.AbstractPlayer, de.yaacc.player.AVTransportController, and de.yaacc.player.LocalImagePlayer.