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

Classes

class  PlayerServiceBinder
 

Public Member Functions

void addPlayer (Player player)
 
void removePlayer (Player player)
 
void onDestroy ()
 
IBinder onBind (Intent intent)
 
Collection< PlayergetPlayer ()
 
int onStartCommand (Intent intent, int flags, int startId)
 
HandlerThread getPlayerHandlerThread ()
 
Player getPlayer (int playerId)
 
List< PlayercreatePlayer (UpnpClient upnpClient, List< PlayableItem > items)
 Creates a player for the given content.
 
boolean onUnbind (Intent intent)
 
Collection< PlayergetCurrentPlayers ()
 returns all current players
 
Player getCurrentPlayerById (Integer id)
 
List< PlayergetCurrentPlayersOfType (Class<?> typeClazz)
 returns all current players of the given type.
 
Player getFirstCurrentPlayerOfType (Class typeClazz)
 returns the first current player of the given type.
 
Class getPlayerClassForMimeType (String mimeType)
 Returns the class of a player for the given mime type.
 
void shutdown (Player player)
 Kills the given Player.
 
void shutdown ()
 Kill all Players.
 

Detailed Description

Author
Tobias Schoene (tobexyz)

Member Function Documentation

◆ createPlayer()

List< Player > de.yaacc.player.PlayerService.createPlayer ( UpnpClient  upnpClient,
List< PlayableItem items 
)

Creates a player for the given content.

Based on the configuration settings in the upnpClient the player may be a player to play on a remote device.

Parameters
upnpClientthe upnpClient
itemsthe items to be played
Returns
the player

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentPlayers()

Collection< Player > de.yaacc.player.PlayerService.getCurrentPlayers ( )

returns all current players

Returns
the currentPlayer

Referenced by de.yaacc.player.PlayerService.getCurrentPlayersOfType(), de.yaacc.player.PlayerService.getFirstCurrentPlayerOfType(), and de.yaacc.player.PlayerService.shutdown().

Here is the caller graph for this function:

◆ getCurrentPlayersOfType()

List< Player > de.yaacc.player.PlayerService.getCurrentPlayersOfType ( Class<?>  typeClazz)

returns all current players of the given type.

Parameters
typeClazzthe requested type
Returns
the currentPlayer
Here is the call graph for this function:

◆ getFirstCurrentPlayerOfType()

Player de.yaacc.player.PlayerService.getFirstCurrentPlayerOfType ( Class  typeClazz)

returns the first current player of the given type.

Parameters
typeClazzthe requested type
Returns
the currentPlayer
Here is the call graph for this function:

◆ getPlayerClassForMimeType()

Class de.yaacc.player.PlayerService.getPlayerClassForMimeType ( String  mimeType)

Returns the class of a player for the given mime type.

Parameters
mimeTypethe mime type
Returns
the player class

◆ shutdown()

void de.yaacc.player.PlayerService.shutdown ( Player  player)

Kills the given Player.

Parameters
playerthe player to shutdown

Referenced by de.yaacc.player.AbstractPlayer.exit(), and de.yaacc.player.LocalImagePlayer.exit().

Here is the call graph for this function:
Here is the caller graph for this function:

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