YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | List of all members
de.yaacc.player.Player Interface Reference

A Player is able to play stop a couple of MediaObjects. More...

Inheritance diagram for de.yaacc.player.Player:
Inheritance graph
Collaboration diagram for de.yaacc.player.Player:
Collaboration graph

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
 
String getElapsedTime ()
 returns the elapsed time of the current item
 
URI getAlbumArt ()
 
Bitmap getIcon ()
 
void setIcon (Bitmap icon)
 
SynchronizationInfo getSyncInfo ()
 Get the synchronization information.
 
void setSyncInfo (SynchronizationInfo syncInfo)
 Set the synchronization information.
 
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< PlayableItemgetItems ()
 

Detailed Description

A Player is able to play stop a couple of MediaObjects.

Author
Tobias Schoene (openbit)

Member Function Documentation

◆ addItems()

void de.yaacc.player.Player.addItems ( List< PlayableItem items)

adds additional item to the end of the playlist

Parameters
itemsthe items to be added

Implemented in de.yaacc.player.LocalImagePlayer, and de.yaacc.player.AbstractPlayer.

◆ addPropertyChangeListener()

void de.yaacc.player.Player.addPropertyChangeListener ( PropertyChangeListener  listener)

add a property change listener

Parameters
listenerthe listener

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ clear()

void de.yaacc.player.Player.clear ( )

◆ exit()

void de.yaacc.player.Player.exit ( )

◆ getCurrentItemTitle()

String de.yaacc.player.Player.getCurrentItemTitle ( )

returns the title of the current item

Returns
the title

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ getDuration()

String de.yaacc.player.Player.getDuration ( )

◆ getElapsedTime()

String de.yaacc.player.Player.getElapsedTime ( )

◆ getId()

int de.yaacc.player.Player.getId ( )

Returns the id of the Player.

Returns
the id

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

Referenced by de.yaacc.player.PlayerService.shutdown().

Here is the caller graph for this function:

◆ getName()

String de.yaacc.player.Player.getName ( )

Get the player name.

Returns
the name

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ getNextItemTitle()

String de.yaacc.player.Player.getNextItemTitle ( )

returns the title of the next item

Returns
the title

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ getNotificationIntent()

PendingIntent de.yaacc.player.Player.getNotificationIntent ( )

◆ getPositionString()

String de.yaacc.player.Player.getPositionString ( )

returns the current item position in the playlist

Returns
the position string

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ getShortName()

String de.yaacc.player.Player.getShortName ( )

Get the player short name.

Returns
the name

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ getSyncInfo()

SynchronizationInfo de.yaacc.player.Player.getSyncInfo ( )

Get the synchronization information.

Returns
the info object

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ next()

void de.yaacc.player.Player.next ( )

◆ onDestroy()

void de.yaacc.player.Player.onDestroy ( )

◆ pause()

void de.yaacc.player.Player.pause ( )

◆ play()

void de.yaacc.player.Player.play ( )

◆ previous()

void de.yaacc.player.Player.previous ( )

◆ removePropertyChangeListener()

void de.yaacc.player.Player.removePropertyChangeListener ( PropertyChangeListener  listener)

remove a property change listener

Parameters
listenerthe listener

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ setItems()

void de.yaacc.player.Player.setItems ( PlayableItem...  items)

Set a List of Items.

Parameters
itemsthe items to be played

Implemented in de.yaacc.player.LocalImagePlayer, and de.yaacc.player.AbstractPlayer.

Referenced by de.yaacc.player.PlayerService.createPlayer().

Here is the caller graph for this function:

◆ setName()

void de.yaacc.player.Player.setName ( String  name)

Set the name of the player.

Parameters
namethe name

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ setShortName()

void de.yaacc.player.Player.setShortName ( String  name)

Set the short name of the player.

Parameters
namethe name

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ setSyncInfo()

void de.yaacc.player.Player.setSyncInfo ( SynchronizationInfo  syncInfo)

Set the synchronization information.

Parameters
syncInfothe info object

Implemented in de.yaacc.player.AbstractPlayer, and de.yaacc.player.LocalImagePlayer.

◆ stop()

void de.yaacc.player.Player.stop ( )

The documentation for this interface was generated from the following file: