m3u8

package
v1.0.113 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(List []string, File *File)

func DownloadByte

func DownloadByte(List []string) ([]byte, error)

func GetFile

func GetFile(url, fileName string) error

func GetFileByte

func GetFileByte(url string, old []byte, headers map[string]string) ([]byte, error)

func SaveByteToFile

func SaveByteToFile(fileName string, data []byte) error

Types

type Attribute

type Attribute struct {
	Resolution
	Uri string
}

func NewAttribute

func NewAttribute(value string) (*Attribute, error)

type File

type File struct {
	Kind string
	Name string
}

type M3u8

type M3u8 struct {
	// contains filtered or unexported fields
}

func NewM3u8

func NewM3u8() *M3u8

func (*M3u8) GetVideoByte

func (m3 *M3u8) GetVideoByte(url string) ([]byte, error)

func (*M3u8) SaveByteToFile

func (m3 *M3u8) SaveByteToFile(name string) error

type Resolution

type Resolution struct {
	Width  int
	Height int
}

Jump to

Keyboard shortcuts

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