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

Player for local image viewing activity. More...

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

Public Member Functions

 LocalImagePlayer (UpnpClient upnpClient, String name, String shortName)
 
 LocalImagePlayer (UpnpClient upnpClient)
 
void startService ()
 
void onServiceConnected (ComponentName className, IBinder binder)
 
void onServiceDisconnected (ComponentName className)
 
boolean isPlaying ()
 
void setPlaying (boolean isPlaying)
 
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.
 
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.
 
void clear ()
 Drops all Items.
 
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
 
String getPositionString ()
 returns the current item position in the playlist
 
String getCurrentItemTitle ()
 returns the title of the current item
 
int getCurrentItemIndex ()
 
String getNextItemTitle ()
 returns the title of the next current 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)
 
void addItems (List< PlayableItem > playableItemList)
 adds additional item to the end of the playlist
 
List< PlayableItemgetItems ()
 

Detailed Description

Player for local image viewing activity.

Author
Tobias Schoene (openbit)

Constructor & Destructor Documentation

◆ LocalImagePlayer()

de.yaacc.player.LocalImagePlayer.LocalImagePlayer ( UpnpClient  upnpClient,
String  name,
String  shortName 
)
Parameters
upnpClientupnpClient
nameplayerName
Here is the call graph for this function:

Member Function Documentation

◆ addItems()

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

adds additional item to the end of the playlist

Parameters
itemsthe items to be added

Implements de.yaacc.player.Player.

◆ addPropertyChangeListener()

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

add a property change listener

Parameters
listenerthe listener

Implements de.yaacc.player.Player.

◆ clear()

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

Drops all Items.

Implements de.yaacc.player.Player.

◆ exit()

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

Exit the player.

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ getAlbumArt()

URI de.yaacc.player.LocalImagePlayer.getAlbumArt ( )

◆ getCurrentItemIndex()

int de.yaacc.player.LocalImagePlayer.getCurrentItemIndex ( )

◆ getCurrentItemTitle()

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

returns the title of the current item

Returns
the title

Implements de.yaacc.player.Player.

◆ getDeviceId()

String de.yaacc.player.LocalImagePlayer.getDeviceId ( )

◆ getDuration()

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

returns the duration of the current item

Returns
the duration

Implements de.yaacc.player.Player.

◆ getElapsedTime()

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

returns the elapsed time of the current item

Returns
the elapsed time

Implements de.yaacc.player.Player.

◆ getIcon()

Bitmap de.yaacc.player.LocalImagePlayer.getIcon ( )

◆ getIconResourceId()

int de.yaacc.player.LocalImagePlayer.getIconResourceId ( )

◆ getId()

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

Returns the id of the Player.

Returns
the id

Implements de.yaacc.player.Player.

◆ getItems()

List< PlayableItem > de.yaacc.player.LocalImagePlayer.getItems ( )

◆ getMute()

boolean de.yaacc.player.LocalImagePlayer.getMute ( )

◆ getName()

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

Get the player name.

Returns
the name

Implements de.yaacc.player.Player.

Referenced by de.yaacc.player.LocalImagePlayer.play().

Here is the caller graph for this function:

◆ getNextItemTitle()

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

returns the title of the next current item

Returns
the title

Implements de.yaacc.player.Player.

◆ getNotificationIntent()

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

Returns the intent which is to be started by pushing the notification entry.

Returns
the peneding intent

Implements de.yaacc.player.Player.

◆ getPositionString()

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

returns the current item position in the playlist

Returns
the position string

Implements de.yaacc.player.Player.

◆ getShortName()

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

Get the player short name.

Returns
the name

Implements de.yaacc.player.Player.

◆ getSyncInfo()

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

Get the synchronization information.

Returns
the info object

Implements de.yaacc.player.Player.

◆ getVolume()

int de.yaacc.player.LocalImagePlayer.getVolume ( )

◆ hasActionGetMute()

boolean de.yaacc.player.LocalImagePlayer.hasActionGetMute ( )

◆ hasActionGetVolume()

boolean de.yaacc.player.LocalImagePlayer.hasActionGetVolume ( )

◆ isPlaying()

boolean de.yaacc.player.LocalImagePlayer.isPlaying ( )

◆ next()

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

play the next item

Implements de.yaacc.player.Player.

◆ onDestroy()

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

Kill the player.

Implements de.yaacc.player.Player.

◆ pause()

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

Pause the current item.

Implements de.yaacc.player.Player.

◆ play()

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

start playing the current item

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ previous()

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

play the previous item

Implements de.yaacc.player.Player.

◆ removePropertyChangeListener()

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

remove a property change listener

Parameters
listenerthe listener

Implements de.yaacc.player.Player.

◆ seekTo()

void de.yaacc.player.LocalImagePlayer.seekTo ( long  millisecondsFromStart)

◆ setIcon()

void de.yaacc.player.LocalImagePlayer.setIcon ( Bitmap  icon)

◆ setItems()

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

Set a List of Items.

Parameters
itemsthe items to be played

Implements de.yaacc.player.Player.

◆ setMute()

void de.yaacc.player.LocalImagePlayer.setMute ( boolean  mute)

◆ setName()

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

Set the name of the player.

Parameters
namethe name

Implements de.yaacc.player.Player.

Referenced by de.yaacc.player.LocalImagePlayer.LocalImagePlayer().

Here is the caller graph for this function:

◆ setShortName()

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

Set the short name of the player.

Parameters
namethe name

Implements de.yaacc.player.Player.

Referenced by de.yaacc.player.LocalImagePlayer.LocalImagePlayer().

Here is the caller graph for this function:

◆ setSyncInfo()

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

Set the synchronization information.

Parameters
syncInfothe info object

Implements de.yaacc.player.Player.

◆ setVolume()

void de.yaacc.player.LocalImagePlayer.setVolume ( int  volume)

◆ stop()

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

stops playing.

And returns to the beginning of the item list.

Implements de.yaacc.player.Player.

Referenced by de.yaacc.player.LocalImagePlayer.exit().

Here is the caller graph for this function:

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