Versions in this module Expand all Collapse all v4 v4.3.9 Apr 24, 2024 Changes in this version + const HLS_KEY_METHOD_AES_128 + var HLSPlugin = engine.InstallPlugin(hlsConfig, defaultYaml) + type AudioTrackReader struct + type HLSConfig struct + DefaultTS string + DefaultTSDuration time.Duration + Filter config.Regexp + Fragment time.Duration + Path string + Preload bool + RelayMode int + Window int + func (c *HLSConfig) OnEvent(event any) + func (config *HLSConfig) API_List(w http.ResponseWriter, r *http.Request) + func (config *HLSConfig) API_Pull(w http.ResponseWriter, r *http.Request) + func (config *HLSConfig) API_Save(w http.ResponseWriter, r *http.Request) + func (config *HLSConfig) ServeHTTP(w http.ResponseWriter, r *http.Request) + type HLSPuller struct + Audio M3u8Info + SaveContext context.Context + TsHead http.Header + Video M3u8Info + func (p *HLSPuller) Connect() (err error) + func (p *HLSPuller) Disconnect() + func (p *HLSPuller) GetTs(key string) util.Recyclable + func (p *HLSPuller) OnEvent(event any) + func (p *HLSPuller) Pull() error + type HLSWriter struct + func (hls *HLSWriter) GetTs(key string) util.Recyclable + func (hls *HLSWriter) OnEvent(event any) + func (hls *HLSWriter) ReadTrack() + func (hls *HLSWriter) Start(streamPath string) + type M3u8Info struct + LastM3u8 string + M3U8Count int + Req *http.Request + TSCount int + type Playlist struct + Discontinuity int + EndList string + ExtM3U string + Inf PlaylistInf + Key PlaylistKey + PlaylistType int + Sequence int + Targetduration int + Version int + func (pl *Playlist) Init() (err error) + func (pl *Playlist) WriteInf(inf PlaylistInf) (err error) + type PlaylistInf struct + Duration float64 + FilePath string + Title string + type PlaylistKey struct + IV string + Method string + Uri string + type TSDownloader struct + func (p *TSDownloader) Start() + type TrackReader struct + M3u8 util.Buffer + type VideoTrackReader struct