YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
de.yaacc.player.MultiContentPlayer Class Reference
Inheritance diagram for de.yaacc.player.MultiContentPlayer:
Inheritance graph
Collaboration diagram for de.yaacc.player.MultiContentPlayer:
Collaboration graph

Public Member Functions

 MultiContentPlayer (UpnpClient upnpClient, String name, String shortName)
 
 MultiContentPlayer (UpnpClient upnpClient)
 
URI getAlbumArt ()
 
PendingIntent getNotificationIntent ()
 Returns the intent which is to be started by pushing the notification entry.
 
void seekTo (long millisecondsFromStart)
 
- 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 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< PlayableItemgetItems ()
 
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.
 
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 getDuration ()
 returns the duration of the current item
 
String getElapsedTime ()
 returns the elapsed time of the current item
 
SynchronizationInfo getSyncInfo ()
 Get the synchronization information.
 
void setSyncInfo (SynchronizationInfo syncInfo)
 Set the synchronization information.
 
boolean getMute ()
 
void setMute (boolean mute)
 
int getVolume ()
 
void setVolume (int volume)
 
int getIconResourceId ()
 
String getDeviceId ()
 
String getShortName ()
 Get the player short name.
 
void setShortName (String name)
 Set the short name of the player.
 
boolean hasActionGetVolume ()
 
boolean hasActionGetMute ()
 

Protected Member Functions

void stopItem (PlayableItem playableItem)
 
Object loadItem (PlayableItem playableItem)
 
void startItem (PlayableItem playableItem, Object loadedItem)
 
int getNotificationId ()
 Returns the notification id of the player.
 
- 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"
 

Detailed Description

Author
Tobias Schoene (openbit)

Constructor & Destructor Documentation

◆ MultiContentPlayer() [1/2]

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

◆ MultiContentPlayer() [2/2]

de.yaacc.player.MultiContentPlayer.MultiContentPlayer ( UpnpClient  upnpClient)
Parameters
upnpClientthe upnpclient

Member Function Documentation

◆ getAlbumArt()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationId()

int de.yaacc.player.MultiContentPlayer.getNotificationId ( )
protected

Returns the notification id of the player.

Returns
the notification id

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationIntent()

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

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

Returns
the peneding intent

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ loadItem()

Object de.yaacc.player.MultiContentPlayer.loadItem ( PlayableItem  playableItem)
protected

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ seekTo()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ startItem()

void de.yaacc.player.MultiContentPlayer.startItem ( PlayableItem  playableItem,
Object  loadedItem 
)
protected

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ stopItem()

void de.yaacc.player.MultiContentPlayer.stopItem ( PlayableItem  playableItem)
protected

Reimplemented from de.yaacc.player.AbstractPlayer.


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