Skip to main content

Module session

Module session 

Source
Expand description

Per-session ad-break state.

Issue #929’s design decision: the per-session record is session id -> ad-break decision -> timeline offsets, and it is deliberately not a media cursor. Every viewer in a break watches one of a small set of ad assets, and outside a break every viewer sees byte-identical primary content; what differs per session is which URIs appear in that session’s rendered playlist. media-plane’s “writer cost is O(N) in cursor count” rule is about the shared media rings — a SessionStore holds no cursor into any of them, just this one small BreakState record per session.

Structs§

BreakState
One session’s ad break: the decision being rendered, plus the conditioned splice points it entered (and, once known, resumed) at.
SessionStore
Per-session ad-break records.