YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.client.TrackPosition Class Reference

The position in the current track from a metadata state and the server clock (spec, "Calculating current track position"), and the handling of scheduled metadata updates: the client keeps the current state and at most one pending update (spec, "Scheduled metadata updates"). More...

Collaboration diagram for de.yaacc.sendspin.client.TrackPosition:
Collaboration graph

Classes

class  Tracker
 The current state and at most one pending update.
 

Static Public Member Functions

static long positionMs (ControllerMessages.Metadata m, long serverNowMicros)
 

Detailed Description

The position in the current track from a metadata state and the server clock (spec, "Calculating current track position"), and the handling of scheduled metadata updates: the client keeps the current state and at most one pending update (spec, "Scheduled metadata updates").

Pure.

Member Function Documentation

◆ positionMs()

static long de.yaacc.sendspin.client.TrackPosition.positionMs ( ControllerMessages.Metadata m,
long serverNowMicros )
static
Parameters
serverNowMicrosthe server clock now (see ServerClock)
Returns
the position in milliseconds, clamped to the track, or -1 if the state has no progress

Referenced by de.yaacc.sendspin.client.ControllerSession.positionMs(), and de.yaacc.sendspin.client.DisplayRoles.positionMs().

Here is the caller graph for this function:

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