Liking cljdoc? Tell your friends :D

dk.simongray.play-nice.page.tabs.playback

The playbacks that an app sends to its other tabs itself, e.g. over a BroadcastChannel: newest picks the newest of those that a tab received, and position moves one on to where it is by now.

The playbacks that an app sends to its other tabs itself, e.g. over a
BroadcastChannel: newest picks the newest of those that a tab received,
and position moves one on to where it is by now.
raw docstring

heartbeat-msclj/s

How many milliseconds may pass between two playbacks that a tab sends while its element plays. newest counts the tab as gone after three.

How many milliseconds may pass between two playbacks that a tab sends
while its element plays. newest counts the tab as gone after three.
raw docstring

newestclj/s

(newest states now)

The newest of the playback states of the tabs at now, in milliseconds since the epoch: one that plays, and else the one that changed last. A playing one that hasn't told where it is for three heartbeats counts as paused, and :gone.

Each state is a map of keys from media/state, with :at, the time in milliseconds at which its :current-time was taken, and :changed, when it last changed.

The newest of the playback `states` of the tabs at `now`, in
milliseconds since the epoch: one that plays, and else the one that
changed last. A playing one that hasn't told where it is for three
heartbeats counts as paused, and :gone.

Each state is a map of keys from media/state, with :at, the time in
milliseconds at which its :current-time was taken, and :changed, when
it last changed.
raw docstring

positionclj/s

(position {:keys [current-time at paused status playback-rate duration]
           :as state}
          now)

Where the playback state is at now, in milliseconds since the epoch: its :current-time, moved on by the time since its :at at its rate while it plays, and no further than its duration.

Where the playback `state` is at `now`, in milliseconds since the epoch:
its :current-time, moved on by the time since its :at at its rate while
it plays, and no further than its duration.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close