Versions in this module Expand all Collapse all v0 v0.1.1 Dec 27, 2018 v0.1.0 Oct 31, 2018 Changes in this version + const DateTime + var ErrPlaylistFull = errors.New("playlist is full") + var TimeParse = FullTimeParse + func Decode(data bytes.Buffer, strict bool) (Playlist, ListType, error) + func DecodeFrom(reader io.Reader, strict bool) (Playlist, ListType, error) + func FullTimeParse(value string) (time.Time, error) + func StrictTimeParse(value string) (time.Time, error) + type Alternative struct + Autoselect string + Characteristics string + Default bool + Forced string + GroupID string + Language string + Name string + Subtitles string + Type string + URI string + type Key struct + IV string + Keyformat string + Keyformatversions string + Method string + URI string + type ListType int + const ListTypeMaster + const ListTypeMedia + type Map struct + Limit int + Offset int + URI string + type MasterPlaylist struct + Args string + CypherVersion string + Variants []*Variant + func NewMasterPlaylist() *MasterPlaylist + func (p *MasterPlaylist) Append(uri string, chunklist *MediaPlaylist, params VariantParams) + func (p *MasterPlaylist) Decode(data bytes.Buffer, strict bool) error + func (p *MasterPlaylist) DecodeFrom(reader io.Reader, strict bool) error + func (p *MasterPlaylist) Encode() *bytes.Buffer + func (p *MasterPlaylist) ResetCache() + func (p *MasterPlaylist) SetVersion(ver int) + func (p *MasterPlaylist) String() string + func (p *MasterPlaylist) Version() int + type MediaPlaylist struct + Args string + Closed bool + Iframe bool + Key *Key + Map *Map + MediaType MediaType + Segments []*MediaSegment + SeqNo int + TargetDuration float64 + W *Widevine + func NewMediaPlaylist(winsize, capacity int) (*MediaPlaylist, error) + func (p *MediaPlaylist) Append(seg *MediaSegment) error + func (p *MediaPlaylist) AppendWithAutoExtend(seg *MediaSegment) error + func (p *MediaPlaylist) Close() + func (p *MediaPlaylist) Count() int + func (p *MediaPlaylist) Decode(data bytes.Buffer, strict bool) error + func (p *MediaPlaylist) DecodeFrom(reader io.Reader, strict bool) error + func (p *MediaPlaylist) DurationAsInt(yes bool) + func (p *MediaPlaylist) Encode() *bytes.Buffer + func (p *MediaPlaylist) ExtendCapacity() (err error) + func (p *MediaPlaylist) Remove() (err error) + func (p *MediaPlaylist) ResetCache() + func (p *MediaPlaylist) SetDefaultKey(method, uri, iv, keyformat, keyformatversions string) error + func (p *MediaPlaylist) SetDefaultMap(uri string, limit, offset int) + func (p *MediaPlaylist) SetDiscontinuity() error + func (p *MediaPlaylist) SetIframeOnly() + func (p *MediaPlaylist) SetKey(method, uri, iv, keyformat, keyformatversions string) error + func (p *MediaPlaylist) SetMap(uri string, limit, offset int) error + func (p *MediaPlaylist) SetProgramDateTime(value time.Time) error + func (p *MediaPlaylist) SetRange(limit, offset int) error + func (p *MediaPlaylist) SetSCTE35(scte35 *SCTE) error + func (p *MediaPlaylist) SetVersion(ver int) + func (p *MediaPlaylist) SetWinSize(winsize int) error + func (p *MediaPlaylist) Slide(seg *MediaSegment) (err error) + func (p *MediaPlaylist) String() string + func (p *MediaPlaylist) Version() int + func (p *MediaPlaylist) WinSize() int + type MediaSegment struct + Discontinuity bool + Duration float64 + Key *Key + Limit int + Map *Map + Offset int + ProgramDateTime time.Time + SCTE *SCTE + SeqID int + Title string + URI string + func QuickSegment(uri, title string, duration float64) *MediaSegment + type MediaType int + const MediaTypeEvent + const MediaTypeVOD + type Playlist interface + Decode func(bytes.Buffer, bool) error + DecodeFrom func(reader io.Reader, strict bool) error + Encode func() *bytes.Buffer + String func() string + type SCTE struct + Cue string + CueType SCTE35CueType + Elapsed float64 + ID string + Syntax SCTE35Syntax + Time float64 + type SCTE35CueType int + const SCTE35CueEnd + const SCTE35CueMid + const SCTE35CueStart + type SCTE35Syntax int + const Syntax672014 + const SyntaxOATCLS + type Variant struct + Chunklist *MediaPlaylist + URI string + type VariantParams struct + Alternatives []*Alternative + Audio string + Bandwidth int + Captions string + Codecs string + Iframe bool + Name string + ProgramID int + Resolution string + Subtitles string + Video string + type Widevine struct + AudioChannels int + AudioFormat int + AudioProfileIDC int + AudioSampleSize int + AudioSamplingFrequency int + CypherVersion string + ECM string + VideoFormat int + VideoFrameRate int + VideoLevelIDC int + VideoProfileIDC int + VideoResolution string + VideoSAR string