YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.QueueShareBinder Class Reference

Creates the share of one item of a picked queue when a player needs it and releases it again: the placeholder item of the player gets the proxy url and the DIDL item of the registered share (ShareService#prepare, the allowed addresses are those of the receiver this player plays on, resolved once when the queue was confirmed), and releasing removes the share from the registry at once (not after the idle grace), so a finished file is not reachable any more. More...

Inheritance diagram for de.yaacc.share.QueueShareBinder:
Inheritance graph
Collaboration diagram for de.yaacc.share.QueueShareBinder:
Collaboration graph

Classes

interface  Durations
 The duration of a picked file in milliseconds, -1 when unknown (read when the share is created). More...
 
interface  Keys
 The bookkeeping of the registry; the app removes the key from both registries. More...
 
interface  Preparer
 Registers one file; ShareService#prepare in the app. More...
 

Public Member Functions

 QueueShareBinder (List< PickedQueue.Entry > entries, List< PlayableItem > items, Set< String > allowedAddresses, Preparer preparer, Keys keys, Durations durations)
 
QueueShareWindow.Bound bind (int index)
 
- Public Member Functions inherited from de.yaacc.share.QueueShareWindow.Binder

Detailed Description

Creates the share of one item of a picked queue when a player needs it and releases it again: the placeholder item of the player gets the proxy url and the DIDL item of the registered share (ShareService#prepare, the allowed addresses are those of the receiver this player plays on, resolved once when the queue was confirmed), and releasing removes the share from the registry at once (not after the idle grace), so a finished file is not reachable any more.

Never logs a key, url or name.

Constructor & Destructor Documentation

◆ QueueShareBinder()

de.yaacc.share.QueueShareBinder.QueueShareBinder ( List< PickedQueue.Entry > entries,
List< PlayableItem > items,
Set< String > allowedAddresses,
Preparer preparer,
Keys keys,
Durations durations )
Parameters
entriesthe picked files of this queue, in play order
itemsthis player's placeholder items, same order and size as entries
allowedAddressesthe addresses of the receiver this player plays on, fixed at the confirm (the share is allowed for them only)

Member Function Documentation

◆ bind()

QueueShareWindow.Bound de.yaacc.share.QueueShareBinder.bind ( int index)
Returns
the bound share, or null when it could not be bound (registry full, file gone)

Implements de.yaacc.share.QueueShareWindow.Binder.

Here is the call graph for this function:

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