Documentation ¶
Index ¶
- func Base64EncodeToString(content string) string
- func CalcPieceSize(size uint64) int
- func GetLoalIPv4() string
- func GetMaxSupportUdpNat(nat int8) int8
- func GetNoFileUrl(url string) string
- func GetNoSuffixUrl(url string) string
- func GetRandAk() string
- func GetSecrect(ak string) string
- func Hash1(content []byte) string
- func MD5(content []byte) string
- func ParseM3u8Ts(ctx context.Context, url string) (tsUrls []string, duration float64, tsDuration []float64, err error)
- func ResolveURL(u *url.URL, p string) string
- type MediaPlaylist
- type MediaSegment
- type MediaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64EncodeToString ¶
func CalcPieceSize ¶
func GetLoalIPv4 ¶
func GetLoalIPv4() string
func GetMaxSupportUdpNat ¶
func GetNoFileUrl ¶
func GetNoSuffixUrl ¶
func GetSecrect ¶
func ParseM3u8Ts ¶
Types ¶
type MediaPlaylist ¶
type MediaPlaylist struct { TargetDuration float64 SeqNo uint64 // EXT-X-MEDIA-SEQUENCE SegmentMap map[int64]*MediaSegment SegmentList []*MediaSegment Ver uint8 Count uint MediaLength uint64 }
type MediaSegment ¶
Click to show internal directories.
Click to hide internal directories.