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

A Player for playing on a remote avtransport device. More...

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

Public Member Functions

 AVTransportPlayer (UpnpClient upnpClient, Device<?, ?, ?> receiverDevice, String name, String shortName, String contentType)
 
 AVTransportPlayer (UpnpClient upnpClient)
 
String getDeviceId ()
 
String getContentType ()
 
PendingIntent getNotificationIntent ()
 Returns the intent which is to be started by pushing the notification entry.
 
void pause ()
 Pause the current item.
 
URI getAlbumArt ()
 
boolean getMute ()
 
void setMute (boolean mute)
 
int getVolume ()
 
void setVolume (int volume)
 
int getIconResourceId ()
 
void seekTo (long millisecondsFromStart)
 
long getRemainingTime ()
 
String getDuration ()
 returns the duration of the current item
 
String getElapsedTime ()
 returns the elapsed time of the current item
 
void startTimer (final long duration)
 Start a timer for the next item change.
 
void onDestroy ()
 Kill the player.
 
void exit ()
 Exit the player.
 
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 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
 
String getName ()
 Get the player name.
 
void setName (String name)
 Set the name of the player.
 
boolean isProcessingCommand ()
 
void setProcessingCommand (boolean isProcessingCommand)
 
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.
 
String getShortName ()
 Get the player short name.
 
void setShortName (String name)
 Set the short name of the player.
 

Protected Member Functions

Device<?, ?, ?> getDevice ()
 
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)
 

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

A Player for playing on a remote avtransport device.

Author
Tobias Schoene (openbit)

Constructor & Destructor Documentation

◆ AVTransportPlayer() [1/2]

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

◆ AVTransportPlayer() [2/2]

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

Member Function Documentation

◆ exit()

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

Exit the player.

Reimplemented from de.yaacc.player.AbstractPlayer.

Reimplemented in de.yaacc.player.AVTransportController.

◆ getAlbumArt()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getDeviceId()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getDuration()

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

returns the duration of the current item

Returns
the duration

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getElapsedTime()

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

returns the elapsed time of the current item

Returns
the elapsed time

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getIconResourceId()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationId()

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

Returns the notification id of the player.

Returns
the notification id

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getNotificationIntent()

PendingIntent de.yaacc.player.AVTransportPlayer.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.AVTransportPlayer.getRemainingTime ( )

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ getVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ hasActionGetMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ hasActionGetVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ loadItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ onDestroy()

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

Kill the player.

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ pause()

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

Pause the current item.

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ seekTo()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ setMute()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ setVolume()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ startItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.

◆ startTimer()

void de.yaacc.player.AVTransportPlayer.startTimer ( final long  duration)

Start a timer for the next item change.

Parameters
durationin millis

Reimplemented from de.yaacc.player.AbstractPlayer.

Here is the call graph for this function:

◆ stopItem()

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

Reimplemented from de.yaacc.player.AbstractPlayer.


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