Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHadAdd = errors.New("had add") ErrNotAdd = errors.New("not add") ErrNameIncorrect = errors.New("name is incorrect") )
View Source
var (
Tslength = tslen * 2
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { AddStreams(s *Stream) error DelStreams(id string) HandlerStream(w http.ResponseWriter, req *http.Request) HandlerIndex(w http.ResponseWriter, req *http.Request) Stop() }
func NewHlsHandler ¶
type HlsHandler ¶
type HlsHandler struct {
// contains filtered or unexported fields
}
func (*HlsHandler) AddStreams ¶
func (h *HlsHandler) AddStreams(s *Stream) error
func (*HlsHandler) DelStreams ¶
func (h *HlsHandler) DelStreams(id string)
func (*HlsHandler) HandlerIndex ¶
func (h *HlsHandler) HandlerIndex(w http.ResponseWriter, req *http.Request)
handle index html
func (*HlsHandler) HandlerStream ¶
func (h *HlsHandler) HandlerStream(w http.ResponseWriter, req *http.Request)
handle m3u8(m3u),ts request
func (*HlsHandler) Stop ¶
func (h *HlsHandler) Stop()
Click to show internal directories.
Click to hide internal directories.