m3u8Parse

package
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyPreg    = regexp.MustCompile(`EXT\-X\-KEY.*?URI="(.+?)"`)             // 识别 m3u8是否有key
	StreamPreg = regexp.MustCompile(`EXT\-X\-STREAM\-INF.+?BANDWIDTH=(\d+)`) // 多码率适配
)

Functions

This section is empty.

Types

type M3u8

type M3u8 struct {
	Ts      []string // ts列表
	M3u8    string   // m3u8 地址
	Key     string   // 如果有,ts内容需要用这个来解密
	Content []byte   // m3u8 文件内容
}

func M3u8Parse

func M3u8Parse(m *bufio.Reader) (M3u8, error)

M3u8Parse 解析m3u8文件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL