Documentation
¶
Overview ¶
Package livetvtest supplies deterministic runner fakes for protocol adapters.
Index ¶
- type Decoder
- type Encoder
- type Index
- func (i Index) AttachTS(context.Context) (io.ReadCloser, error)
- func (i Index) Format() (string, int, int, int)
- func (i Index) Latest() (transcode.Segment, bool)
- func (i Index) ServeFMP4(w http.ResponseWriter, _ *http.Request, seq int64)
- func (i Index) ServeInit(w http.ResponseWriter, _ *http.Request)
- func (i Index) ServeTS(w http.ResponseWriter, _ *http.Request, seq int64)
- func (i Index) Since(seq int64, max int) []transcode.Segment
- func (i Index) Wait(ctx context.Context, after int64) (transcode.Segment, error)
- func (i Index) Window(from, until time.Time) []transcode.Segment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
Decoder yields black frames in Format, paced at about 100 fps, so the broadcast airs (and tags) programme output. A zero Format never yields.
type Encoder ¶
type Encoder struct {
Index transcode.SegmentIndex
// contains filtered or unexported fields
}
Encoder stamps the planner's latest policy identities on every segment, as the real continuous index does, so adapters exercise tag authorization.
func (*Encoder) Segments ¶
func (e *Encoder) Segments() transcode.SegmentIndex
Click to show internal directories.
Click to hide internal directories.