YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.player.PlayerListChangeNotifier Class Reference

Tracks Listeners for the set of active players and notifies them when a player is added to or removed from that set. More...

Collaboration diagram for de.yaacc.player.PlayerListChangeNotifier:
Collaboration graph

Classes

interface  Listener
 Notified when the set of active players changes. More...
 

Detailed Description

Tracks Listeners for the set of active players and notifies them when a player is added to or removed from that set.

Also gives every genuinely added player a creation sequence, so "newest" can be decided without relying on player ids (which are random for AVTransportPlayer and fixed per type for local players).

Plain Java (no Android types) so the bookkeeping can be unit-tested on the JVM. PlayerService passes a main-thread executor; tests pass a synchronous one. Public only so callers outside this package can implement Listener; register through PlayerService#addPlayerListChangeListener.


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