YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.FCastPlayRequests Class Reference

Builds the Play request of an item (task 4.1, design.md section 5). More...

Collaboration diagram for de.yaacc.fcast.FCastPlayRequests:
Collaboration graph

Classes

enum  Refusal
 Why no request was made. More...
 
class  Result
 The request, or the reason why there is none.
 

Static Public Member Functions

static Result build (String url, String describedType, String extensionType, String title, String artUrl, double startSeconds, double volume)
 
static Result build (String url, String describedType, String extensionType, String title, String artUrl, double startSeconds, double volume, double speed)
 As above; speed 1.0 or NaN is not sent, other values are clamped by the message (the size check counts it).
 

Static Public Attributes

static final String UNKNOWN_TYPE = "application/octet-stream"
 The container of an item whose type is not known.
 

Detailed Description

Builds the Play request of an item (task 4.1, design.md section 5).

Pure.

  • The URL goes out exactly as it is (decision D9): user information, a token in the query, a fragment, nothing is removed or rewritten. The one refusal besides a missing URL is a request that does not fit the packet of protocol v3.
  • The container is the MIME type: the one the item describes, else the one of its file extension, else {@value UNKNOWN_TYPE}; it is never empty (a v3 receiver refuses an empty one).
  • The thumbnail is sent only if it is an http or https address that another device can reach (not localhost, not a loopback address) and short enough; otherwise it is left out and the item still plays.
  • No headers are ever sent: no cookies or credentials leave the app.

Member Function Documentation

◆ build()

static Result de.yaacc.fcast.FCastPlayRequests.build ( String url,
String describedType,
String extensionType,
String title,
String artUrl,
double startSeconds,
double volume )
static
Parameters
urlthe address of the item, as the item has it
describedTypethe MIME type the item describes (DIDL protocolInfo), may be null
extensionTypethe MIME type of the file extension, may be null
titlethe title, shown by the receiver (cleaned and cut by the message)
artUrlthe address of the cover or picture, may be null
startSecondswhere to start; zero, negative or NaN means from the beginning
volume0.0 to 1.0, NaN to leave the receiver's volume alone

Referenced by de.yaacc.fcast.FCastPlayRequests.build().

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: