Builds the Play request of an item (task 4.1, design.md section 5).
More...
|
| enum | Refusal |
| | Why no request was made. More...
|
| |
| class | Result |
| | The request, or the reason why there is none.
|
| |
|
| 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 final String | UNKNOWN_TYPE = "application/octet-stream" |
| | The container of an item whose type is not known.
|
| |
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.
◆ build()
| static Result de.yaacc.fcast.FCastPlayRequests.build |
( |
String | url, |
|
|
String | describedType, |
|
|
String | extensionType, |
|
|
String | title, |
|
|
String | artUrl, |
|
|
double | startSeconds, |
|
|
double | volume ) |
|
static |
- Parameters
-
| url | the address of the item, as the item has it |
| describedType | the MIME type the item describes (DIDL protocolInfo), may be null |
| extensionType | the MIME type of the file extension, may be null |
| title | the title, shown by the receiver (cleaned and cut by the message) |
| artUrl | the address of the cover or picture, may be null |
| startSeconds | where to start; zero, negative or NaN means from the beginning |
| volume | 0.0 to 1.0, NaN to leave the receiver's volume alone |
Referenced by de.yaacc.fcast.FCastPlayRequests.build().
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/fcast/FCastPlayRequests.java