PrismCore / API reference / Subtitles and captions

Structure

SubtitleCueHistoryStats

struct SubtitleCueHistoryStats

Declared in Sources/PrismCore/Subtitles/TimedTextCue.swift · PrismCore 3.5.4

What the remux cue tap is holding right now, and what it let go of — so a bounded history's truncation is never silent.

Initializers

init(retainedCues: Int, retainedBytes: Int, evictedCues: Int, droppedBeforeOrigin: Int)

No documentation comment in the source.

Instance properties

let retainedCues: Int

Cues a handler registered now would be replayed.

let retainedBytes: Int

UTF-8 bytes of those cues' text plus their dedup keys — the figure SubtitleCueHistory.bounded(maxBytes:) limits.

let evictedCues: Int

Cues that were delivered (or would have been, to a registered handler) but are no longer replayable: evicted to make room, or too large to retain at all. Always 0 under .complete.

let droppedBeforeOrigin: Int

Cues produced before the presentation origin that overflowed the pre-origin queue and were never delivered. Always 0 under .complete.

Generated from the public symbols of PrismCore 3.5.4. All types