|
YAACC - UPNP Client and Server
|
The decision of the server-side time range management ("enable server-side time range management in proxy mode"): some renderers cannot seek, they re-request the file with a range that is wrong for the position they should be at. More...

Static Public Member Functions | |
| static long | plan (RendererStateMap states, String deviceId, LongSupplier storedPosition, long totalSize) |
Called for a request that carries a Range header. | |
The decision of the server-side time range management ("enable server-side time range management in proxy mode"): some renderers cannot seek, they re-request the file with a range that is wrong for the position they should be at.
For an http(s) share and a renderer that has the per-device setting on, the server replaces the requested start by the byte position it estimates for the renderer's playback time. Plain Java; the caller owns the network (the file size) and the preferences (the stored position).
|
static |
Called for a request that carries a Range header.
| states | the share's renderer states |
| deviceId | the renderer's id from the URL (validated here; an invalid id changes nothing) |
| storedPosition | supplies the position stored after the last seek, in milliseconds; called only when the renderer has no state yet |
| totalSize | size of the file, <= 0 if unknown |
