Versions in this module Expand all Collapse all v0 v0.2.2 Feb 2, 2025 v0.2.1 Feb 2, 2025 v0.2.0 Jan 15, 2025 Changes in this version + func RegisterTag(name string, value interface{}) type File + Comment string + Extra map[string]interface{} + TimeMap TimeMap + func (f *File) AddExtra(tag string, value interface{}) type Media + func (m Media) Trunc(dur time.Duration) Media + type TimeMap struct + Local time.Time + MPEG int v0.1.1 Jun 4, 2024 Changes in this version type File + func (f File) Init(base *url.URL) *url.URL v0.1.0 Jan 23, 2021 Changes in this version + const Event + const Live + const Vod + var ErrType = errors.New("hls: playlist type mismatch") + func Decode(r io.Reader) (t []m3u.Tag, master bool, err error) type Master + func (m *Master) Decode(r io.Reader) error + func (m *Master) DecodeTag(t ...m3u.Tag) error type Media + func (m *Media) Decode(r io.Reader) error + func (m *Media) DecodeTag(t ...m3u.Tag) error + func (m Media) EncodeTag() (t []m3u.Tag, err error) v0.0.4 Jan 19, 2021 Changes in this version + var ErrEmpty = errors.New("hls: empty playlist") + var ErrHeader = errors.New("hls: no m3u8 tag") type File + func (f File) Duration(target time.Duration) time.Duration type Master + Target time.Duration + func (m *Master) Len() int type Media + func (m *Media) Len() int v0.0.3 Jan 19, 2021 Changes in this version type Media + func (m *Media) Current() (f File) v0.0.2 Jan 19, 2021 Changes in this version + func Runtime(f ...File) (cumulative time.Duration) type Master + M3U bool type MediaHeader + M3U bool + Target time.Duration v0.0.1 Jan 11, 2021 Changes in this version + type File struct + Discontinuous bool + Inf Inf + Key Key + Map Map + Range Range + Time time.Time + func (f File) Location(base *url.URL) *url.URL + type Inf struct + Description string + Duration time.Duration + URL string + type Key struct + type Map struct + URI string + type Master struct + Independent bool + Media []MediaInfo + Stream []StreamInfo + Version int + func (m *Master) DecodeHLS(r io.Reader) error + type Media struct + File []File + func (m *Media) DecodeHLS(r io.Reader) error + func (m Media) MarshalHLS() (t []m3u.Tag, err error) + type MediaHeader struct + Discontinuity int + Duration time.Duration + End bool + Independent bool + Sequence int + Start Start + Type string + Version int + type MediaInfo struct + Autoselect bool + Default bool + Forced bool + Group string + Lang string + Name string + Type string + URI string + type Range struct + V string + func (r Range) Value(n int) (at, size int, err error) + type Start struct + Offset time.Duration + Precise bool + type StreamInfo struct + Audio string + Bandwidth int + BandwidthAvg int + Caption string + Codecs []string + Framerate float64 + HDCP string + Index int + Resolution image.Point + Subtitle string + URL string + Video string + VideoRange string + func (s StreamInfo) Location(base *url.URL) *url.URL