Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2018 Changes in this version + const AssocLanguageTag + const AudioTag + const AutoSelectTag + const AverageBandwidthTag + const BandwidthTag + const ByteRangeItemTag + const ByteRangeTag + const CacheTag + const ChannelsTag + const CharacteristicsTag + const ClassTag + const ClosedCaptionsTag + const CodecsTag + const DataIDTag + const DateRangeItemTag + const DefaultTag + const DiscontinuityItemTag + const DiscontinuitySequenceTag + const DurationTag + const EndDateTag + const EndOnNextTag + const FooterTag + const ForcedTag + const FrameRateTag + const GroupIDTag + const HDCPLevelTag + const HeaderTag + const IDTag + const IFramesOnlyTag + const IVTag + const InStreamIDTag + const IndependentSegmentsTag + const KeyFormatTag + const KeyFormatVersionsTag + const KeyItemTag + const LanguageTag + const MapItemTag + const MediaItemTag + const MediaSequenceTag + const MethodTag + const NameTag + const NoValue + const NoneValue + const PlannedDurationTag + const PlaybackStartTag + const PlaylistIframeTag + const PlaylistItemTag + const PlaylistTypeTag + const PreciseTag + const ProgramIDTag + const ResolutionTag + const Scte35CmdTag + const Scte35InTag + const Scte35OutTag + const SegmentItemTag + const SessionDataItemTag + const SessionKeyItemTag + const StartDateTag + const SubtitlesTag + const TargetDurationTag + const TimeItemTag + const TimeOffsetTag + const TypeTag + const URITag + const ValueTag + const VersionTag + const VideoTag + const YesValue + var AudioCodecMap = map[string]string + var BaselineCodecMap = map[string]string + var ErrBandwidthInvalid = errors.New("invalid bandwidth") + var ErrBandwidthMissing = errors.New("missing bandwidth") + var ErrPlaylistInvalid = errors.New("invalid playlist, must start with #EXTM3U") + var ErrPlaylistInvalidType = errors.New("invalid playlist, mixed master and media") + var ErrPlaylistItemInvalid = errors.New("invalid playlist item") + var ErrResolutionInvalid = errors.New("invalid resolution") + var ErrSegmentItemInvalid = errors.New("invalid segment item") + var HighCodecMap = map[string]string + var MainCodecMap = map[string]string + func FormatTime(time time.Time) string + func ParseAttributes(text string) map[string]string + func ParseTime(value string) (time.Time, error) + func Write(pl *Playlist) (string, error) + type ByteRange struct + Length *int + Start *int + func NewByteRange(text string) (*ByteRange, error) + func (br *ByteRange) String() string + type DateRangeItem struct + Class *string + ClientAttributes map[string]string + Duration *float64 + EndDate *string + EndOnNext bool + ID string + PlannedDuration *float64 + Scte35Cmd *string + Scte35In *string + Scte35Out *string + StartDate string + func NewDateRangeItem(text string) (*DateRangeItem, error) + func (dri *DateRangeItem) String() string + type DiscontinuityItem struct + func NewDiscontinuityItem() (*DiscontinuityItem, error) + func (di *DiscontinuityItem) String() string + type Encryptable struct + IV *string + KeyFormat *string + KeyFormatVersions *string + Method string + URI *string + func NewEncryptable(attributes map[string]string) *Encryptable + func (e *Encryptable) String() string + type Item interface + String func() string + type KeyItem struct + Encryptable *Encryptable + func NewKeyItem(text string) (*KeyItem, error) + func (ki *KeyItem) String() string + type MapItem struct + ByteRange *ByteRange + URI string + func NewMapItem(text string) (*MapItem, error) + func (mi *MapItem) String() string + type MediaItem struct + AssocLanguage *string + AutoSelect *bool + Channels *string + Characteristics *string + Default *bool + Forced *bool + GroupID string + InStreamID *string + Language *string + Name string + Type string + URI *string + func NewMediaItem(text string) (*MediaItem, error) + func (mi *MediaItem) String() string + type PlaybackStart struct + Precise *bool + TimeOffset float64 + func NewPlaybackStart(text string) (*PlaybackStart, error) + func (ps *PlaybackStart) String() string + type Playlist struct + Cache *bool + DiscontinuitySequence *int + IFramesOnly bool + IndependentSegments bool + Items []Item + Live bool + Master *bool + Sequence int + Target int + Type *string + Version *int + func NewPlaylist() *Playlist + func NewPlaylistWithItems(items []Item) *Playlist + func Read(reader io.Reader) (*Playlist, error) + func ReadFile(path string) (*Playlist, error) + func ReadString(text string) (*Playlist, error) + func (pl *Playlist) AppendItem(item Item) + func (pl *Playlist) Duration() float64 + func (pl *Playlist) IsLive() bool + func (pl *Playlist) IsMaster() bool + func (pl *Playlist) IsValid() bool + func (pl *Playlist) ItemSize() int + func (pl *Playlist) PlaylistSize() int + func (pl *Playlist) SegmentSize() int + func (pl *Playlist) String() string + type PlaylistItem struct + Audio *string + AudioCodec *string + AverageBandwidth *int + Bandwidth int + ClosedCaptions *string + Codecs *string + FrameRate *float64 + HDCPLevel *string + Height *int + IFrame bool + Level *string + Name *string + Profile *string + ProgramID *string + Resolution *Resolution + Subtitles *string + URI string + Video *string + Width *int + func NewPlaylistItem(text string) (*PlaylistItem, error) + func (pi *PlaylistItem) CodecsString() string + func (pi *PlaylistItem) String() string + type Resolution struct + Height int + Width int + func NewResolution(text string) (*Resolution, error) + func (r *Resolution) String() string + type SegmentItem struct + ByteRange *ByteRange + Comment *string + Duration float64 + ProgramDateTime *TimeItem + Segment string + func NewSegmentItem(text string) (*SegmentItem, error) + func (si *SegmentItem) String() string + type SessionDataItem struct + DataID string + Language *string + URI *string + Value *string + func NewSessionDataItem(text string) (*SessionDataItem, error) + func (sdi *SessionDataItem) String() string + type SessionKeyItem struct + Encryptable *Encryptable + func NewSessionKeyItem(text string) (*SessionKeyItem, error) + func (ski *SessionKeyItem) String() string + type TimeItem struct + Time time.Time + func NewTimeItem(text string) (*TimeItem, error) + func (ti *TimeItem) String() string