parse

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CryptMethodNONE = "NONE"
	CryptMethodAES  = "AES-128"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Method string
	URI    string
	IV     string
}

type M3u8

type M3u8 struct {
	Version        int
	TargetDuration float64
	MediaSequence  int
	PlaylistType   string
	EndList        bool
	AllowCache     string
	Keys           []Key
	Segments       []*Segment
	MasterPlaylist []MasterEntry
}

type MasterEntry

type MasterEntry struct {
	Bandwidth  int
	Resolution string
	URI        string
	Codecs     string
}

type Result

type Result struct {
	URL  *url.URL
	M3u8 *M3u8
	Keys map[int]string
}

func FromURL

func FromURL(link string) (*Result, error)

type Segment

type Segment struct {
	URI           string
	Duration      float64
	Title         string
	KeyIndex      int
	MapIndex      int
	Discontinuity bool
}

Jump to

Keyboard shortcuts

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