|
void | addPlayer (Player player) |
|
void | removePlayer (Player player) |
|
void | onDestroy () |
|
IBinder | onBind (Intent intent) |
|
Collection< Player > | getPlayer () |
|
int | onStartCommand (Intent intent, int flags, int startId) |
|
HandlerThread | getPlayerHandlerThread () |
|
Player | getPlayer (int playerId) |
|
List< Player > | createPlayer (UpnpClient upnpClient, SynchronizationInfo syncInfo, List< PlayableItem > items) |
| Creates a player for the given content.
|
|
Collection< Player > | getCurrentPlayers () |
| returns all current players
|
|
List< Player > | getCurrentPlayersOfType (Class typeClazz, SynchronizationInfo syncInfo) |
| returns all current players of the given type.
|
|
List< Player > | getCurrentPlayersOfType (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.
|
|
- Author
- Tobias Schoene (tobexyz)
◆ 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
-
upnpClient | the upnpClient |
items | the items to be played |
- Returns
- the player
Referenced by de.yaacc.player.PlayerService.createPlayer().
◆ getCurrentPlayers()
Collection< Player > de.yaacc.player.PlayerService.getCurrentPlayers |
( |
| ) |
|
◆ getCurrentPlayersOfType() [1/2]
List< Player > de.yaacc.player.PlayerService.getCurrentPlayersOfType |
( |
Class |
typeClazz | ) |
|
returns all current players of the given type.
- Parameters
-
typeClazz | the requested type |
- Returns
- the currentPlayer
◆ getCurrentPlayersOfType() [2/2]
List< Player > de.yaacc.player.PlayerService.getCurrentPlayersOfType |
( |
Class |
typeClazz, |
|
|
SynchronizationInfo |
syncInfo |
|
) |
| |
◆ getFirstCurrentPlayerOfType()
Player de.yaacc.player.PlayerService.getFirstCurrentPlayerOfType |
( |
Class |
typeClazz | ) |
|
returns the first current player of the given type.
- Parameters
-
typeClazz | the requested type |
- Returns
- the currentPlayer
◆ getPlayerClassForMimeType()
Class de.yaacc.player.PlayerService.getPlayerClassForMimeType |
( |
String |
mimeType | ) |
|
Returns the class of a player for the given mime type.
- Parameters
-
- Returns
- the player class
◆ shutdown()
void de.yaacc.player.PlayerService.shutdown |
( |
Player |
player | ) |
|
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/player/PlayerService.java