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

A Player for playing on a remote avtransport device which supports syncplay. More...

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

Public Member Functions

 SyncAVTransportPlayer (UpnpClient upnpClient, Device<?, ?, ?> receiverDevice, String name, String shortName, String contentType)
 
 SyncAVTransportPlayer (UpnpClient upnpClient)
 
String getDeviceId ()
 
String getContentType ()
 
PendingIntent getNotificationIntent ()
 Returns the intent which is to be started by pushing the notification entry.
 
void callPause ()
 
URI getAlbumArt ()
 
void getSyncOffset ()
 
void setSyncOffset (SyncOffset offset)
 
void adjustSyncOffset (SyncOffset offset)
 
void pause ()
 Pause the current item.
 
void play ()
 start playing the current item
 
void stop ()
 stops playing.
 
boolean getMute ()
 
void setMute (boolean mute)
 
int getVolume ()
 
void setVolume (int volume)
 
void seekTo (long millisecondsFromStart)
 
String getDuration ()
 returns the duration of the current item
 
String getElapsedTime ()
 returns the elapsed time of the current item
 
long getRemainingTime ()
 
boolean hasActionGetVolume ()
 
boolean hasActionGetMute ()
 
- 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 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
 
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
 
SynchronizationInfo getSyncInfo ()
 Get the synchronization information.
 
void setSyncInfo (SynchronizationInfo syncInfo)
 Set the synchronization information.
 
int getIconResourceId ()
 
String getShortName ()
 Get the player short name.
 
void setShortName (String name)
 Set the short name of the player.
 

Static Public Attributes

static final String PLAYER_ID = "PlayerId"
 
- Static Public Attributes inherited from de.yaacc.player.AbstractPlayer
static final String PLAYER_ID = "PlayerId"
 
static final String PROPERTY_ITEM = "item"
 

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.
 
void getPositionInfo ()
 
- 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)
 

Detailed Description

A Player for playing on a remote avtransport device which supports syncplay.

Author
Tobias Schoene (openbit)

Constructor & Destructor Documentation

◆ SyncAVTransportPlayer() [1/2]

de.yaacc.player.SyncAVTransportPlayer.SyncAVTransportPlayer ( UpnpClient  upnpClient,
Device<?, ?, ?>  receiverDevice,
String  name,
String  shortName,
String  contentType 
)
Parameters
receiverDevicethe receiver device
upnpClientthe client
nameplayerName
Here is the call graph for this function:

◆ SyncAVTransportPlayer() [2/2]

de.yaacc.player.SyncAVTransportPlayer.SyncAVTransportPlayer ( UpnpClient  upnpClient)
Parameters
upnpClientthe client

Member Function Documentation

◆ getAlbumArt()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getDeviceId()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getDuration()

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

returns the duration of the current item

Returns
the duration

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getElapsedTime()

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

returns the elapsed time of the current item

Returns
the elapsed time

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationId()

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

Returns the notification id of the player.

Returns
the notification id

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationIntent()

PendingIntent de.yaacc.player.SyncAVTransportPlayer.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:

◆ getRemainingTime()

long de.yaacc.player.SyncAVTransportPlayer.getRemainingTime ( )

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ hasActionGetMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ hasActionGetVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ loadItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ pause()

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

Pause the current item.

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ play()

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

start playing the current item

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ seekTo()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ setMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ setVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ startItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ stop()

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

stops playing.

And returns to the beginning of the item list.

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ stopItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.


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