Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAttributeList ¶
DecodeAttributeList turns an attribute list into a key, value map. You should trim any characters not part of the attribute list, such as the tag and ':'.
func Unmarshal ¶
func Unmarshal(data []byte, v Unmarshaler) error
Unmarshal parses the M3U-encoded data and stores the result in the value pointed to by v.
Types ¶
type Playlist ¶
type Playlist struct { Tracks []Track VariantStreams []VariantStream Version int Tags []Tag }
Playlist is a type that represents an m3u playlist containing 0 or more tracks or streams
func NewPlaylist ¶
func NewPlaylist() Playlist
func (*Playlist) MarshalM3U ¶
func (*Playlist) UnmarshalM3U ¶
UnmarshalM3U implements the Unmarshaler interface
type Track ¶
Track represents an m3u track with a Name, Lengh, URI and a set of tags
func (*Track) MarshalM3U ¶
func (*Track) UnmarshalM3U ¶
type Unmarshaler ¶
type VariantStream ¶
type VariantStream struct { Name string URI string Resolution string Bandwidth int AverageBandwith int Codecs string FrameRate float64 HdcpLevel string Video string Audio string Subtitle string ClosedCaptions string Tags []Tag }
VariantStream represents an m3u variant stream with a set of attributes
func (*VariantStream) MarshalM3U ¶
func (s *VariantStream) MarshalM3U() ([]byte, error)
func (*VariantStream) UnmarshalM3U ¶
func (s *VariantStream) UnmarshalM3U(data []byte) error
Click to show internal directories.
Click to hide internal directories.