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

What the receiver picker ("Play on...") is told about the content that is about to be played, so that it does not offer a receiver that can not play it (11.2). More...

Collaboration diagram for de.yaacc.share.PickContent:
Collaboration graph

Public Member Functions

boolean offersAudioOnlyReceivers ()
 False when the content holds an image or a video: a receiver that plays music only is not offered.
 

Static Public Member Functions

static PickContent offering (boolean audioOnlyReceivers)
 The content as a flag says (a picker that was restored from its arguments).
 
static PickContent ofMimeTypes (Collection< String > mimeTypes)
 The content of these types (null and empty entries are unknown types and change nothing).
 
static PickContent ofKind (String kind)
 The content of a kind as SameMediaKind names it ("audio", "image", "video"); null is unknown.
 
static PickContent of (PickedQueue.Result queue)
 The picked files: video and images make the content not music.
 
static PickContent ofItems (Collection< PlayableItem > items)
 The items of a queue, by their types.
 

Static Public Attributes

static final PickContent UNKNOWN = new PickContent(true)
 Nothing known: every receiver is offered.
 

Detailed Description

What the receiver picker ("Play on...") is told about the content that is about to be played, so that it does not offer a receiver that can not play it (11.2).

Today there is one such receiver kind: a Snapcast group plays music only, so it is not offered when the content holds an image or a video. Content whose type is not known offers everything (the check at the start of the playback stays as the safety net). Pure.


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