Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
Playlist the HLS playlist(m3u8 and ts files).
func (*Playlist) LastAccessTime ¶
LastAccessTime 最后hls访问时间
type SegmentGenerator ¶
type SegmentGenerator struct {
// contains filtered or unexported fields
}
SegmentGenerator generate the HLS ts segment.
func NewSegmentGenerator ¶
func NewSegmentGenerator(playlist *Playlist, path string, hlsFragment int, segmentPath string, audioRate int, logger *xlog.Logger) (*SegmentGenerator, error)
NewSegmentGenerator .
func (*SegmentGenerator) WriteMpegtsFrame ¶
func (sg *SegmentGenerator) WriteMpegtsFrame(frame *mpegts.Frame) (err error)
WriteMpegtsFrame implements mpegts.FrameWriter
Click to show internal directories.
Click to hide internal directories.