Documentation
¶
Overview ¶
Package hlsplay measures client-observed playback through Plex HTTP handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadReference ¶
LoadReference reads a prior hlsplay report and resolves its artifact paths.
Types ¶
type Buffer ¶
type Buffer struct {
Level, Played float64
Started bool
Stalls []Stall
// contains filtered or unexported fields
}
Buffer is driven by a monotonic clock, including time spent blocked in HTTP. Initial buffering is startup latency. After playback begins, every empty interval is a stall, including a terminal interval with no subsequent fetch.
type Config ¶
type Config struct {
SegmentBarrierDir string
PauseBeforeIndex int
ReencodedAudio bool
DecisionOrigin, StartOrigin, StopOrigin string
ReferenceTimeline []time.Duration
Protocol, Prefix, CredentialsFile, DeviceID string
DirectPlay, DirectStream bool
SkipDecision bool
PrivateHTTP bool
MaxVideoBitrate int
VideoResolution string
ProducerEvidence string
BaseURL, Token, RatingKey, Output, Session, Host string
Window, ForwardBuffer, RequestTimeout, Backoff, SegmentDuration time.Duration
Tries int
FFmpeg, FFprobe string
Reference []splicecheck.Segment
}
type Continuity ¶
type Continuity struct {
Verified bool
Error string
Report splicecheck.Report
}
type Report ¶
type Report struct {
Barrier *SegmentBarrier `json:",omitempty"`
PlaybackStarted bool
ReencodedAudio bool
ControlOriginsPinned bool
InitialTimeline []time.Duration
InitialPlaylistSHA256 string
Protocol string
DecisionSkipped bool
Session string
StartedAt time.Time
StartupSeconds, ElapsedSeconds float64
Outcome, Error string
WindowComplete, IndicesExact, PlaybackPassed bool
Segments []Segment
Attempts []Attempt
Buffer []Sample
Stalls []Stall
Retries int
Continuity Continuity
}
type SegmentBarrier ¶
Click to show internal directories.
Click to hide internal directories.