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, SynchronizationInfo syncInfo, List< PlayableItem > items)
 Creates a player for the given content.
 
Collection< PlayergetCurrentPlayers ()
 returns all current players
 
List< PlayergetCurrentPlayersOfType (Class typeClazz, SynchronizationInfo syncInfo)
 returns all current players of the given type.
 
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,
SynchronizationInfo  syncInfo,
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() [1/2]

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:

◆ getCurrentPlayersOfType() [2/2]

List< Player > de.yaacc.player.PlayerService.getCurrentPlayersOfType ( Class  typeClazz,
SynchronizationInfo  syncInfo 
)

returns all current players of the given type.

Parameters
typeClazzthe requested type
Returns
the currentPlayer

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

Here is the call graph for this function:
Here is the caller 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: