Documentation
¶
Overview ¶
Package livepreview keeps the preview image of every livestream up to date.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(daoWrapper dao.DaoWrapper, runners LivePreviewer) func()
Fetch gets a live thumbnail from a runner for every live stream.
Types ¶
type LivePreviewer ¶
type LivePreviewer interface {
RequestLivePreview(ctx context.Context, playlistURL string) ([]byte, error)
}
LivePreviewer produces a JPEG of the most recent state of a livestream. The runner manager is the implementation; it is an interface so this package doesn't depend on it.