Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncryptMethod_NONE = `NONE` EncryptMethod_AES128 = `AES-128` EncryptMethod_SIMPLE_AES = `SAMPLE-AES` // TODO )
https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.4
Variables ¶
This section is empty.
Functions ¶
Types ¶
type M3U8File ¶
type M3U8File struct { Version int MediaSequence int TargetDuration float64 // 秒 PartList []M3U8Part }
func (*M3U8File) ContainsMediaSegment ¶
func (*M3U8File) IsNestedPlaylists ¶
IsNestedPlaylists 返回是否为 嵌套播放列表
func (*M3U8File) LookupHDPlaylist ¶
func (this *M3U8File) LookupHDPlaylist() (playlist *M3U8Playlist)
LookupHDPlaylist 找个最高清的播放列表
type M3U8Part ¶
type M3U8Part struct { Key *M3U8Key Segment *M3U8Segment Playlist *M3U8Playlist Is_EXT_X_DISCONTINUITY bool //#EXT-X-DISCONTINUITY Is_EXT_X_ENDLIST bool //#EXT-X-ENDLIST }
type M3U8Playlist ¶
type M3U8Playlist struct { URI string Bandwidth int Resolution M3U8Resolution }
type M3U8Resolution ¶
type M3U8Segment ¶
Click to show internal directories.
Click to hide internal directories.