Documentation ¶ Index ¶ type Center func NewCenter(logger *logrus.Logger) *Center func (c *Center) WritePlaylist(urlTemplate string, videoFileFPath string, w io.Writer) error func (c *Center) WriteSegment(videoFileFPath string, segmentIndex int64, resolution int64, w io.Writer) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Center ¶ type Center struct { // contains filtered or unexported fields } func NewCenter ¶ func NewCenter(logger *logrus.Logger) *Center func (*Center) WritePlaylist ¶ func (c *Center) WritePlaylist(urlTemplate string, videoFileFPath string, w io.Writer) error WritePlaylist 构建 m3u8 文件 func (*Center) WriteSegment ¶ func (c *Center) WriteSegment(videoFileFPath string, segmentIndex int64, resolution int64, w io.Writer) error WriteSegment 构建 ts 文件 Source Files ¶ View all Source files center.go Directories ¶ Show internal Expand all Path Synopsis cache worker Click to show internal directories. Click to hide internal directories.