maya

package module
v1.21.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: OSL-3.0 Imports: 20 Imported by: 0

README

maya

Package maya is a concurrent DASH stream downloader and assembler that handles manifest parsing, accurate bitrate calculation, and content decryption

https://41.neocities.org/maya

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListDash added in v1.20.4

func ListDash(body []byte, baseURL *url.URL) error

ListDash parses a DASH manifest and lists the available streams.

func ListHls added in v1.20.4

func ListHls(body []byte, baseURL *url.URL) error

ListHls parses an HLS playlist and lists the available streams.

func Transport

func Transport(policy func(*http.Request) string)

Transport configures the default HTTP transport for logging and proxy support.

Types

type Job added in v1.20.2

type Job struct {
	Threads int
}

Job holds configuration for an unencrypted download.

func (*Job) DownloadDash added in v1.20.2

func (j *Job) DownloadDash(body []byte, baseURL *url.URL, streamId string) error

DownloadDash parses and downloads a clear DASH stream.

func (*Job) DownloadHls added in v1.20.2

func (j *Job) DownloadHls(body []byte, baseURL *url.URL, streamId string) error

DownloadHls parses and downloads a clear HLS stream.

type PlayReadyJob added in v1.20.2

type PlayReadyJob struct {
	Threads          int
	CertificateChain string
	EncryptSignKey   string
	Send             func([]byte) ([]byte, error)
}

PlayReadyJob holds configuration for a PlayReady encrypted download.

func (*PlayReadyJob) DownloadDash added in v1.20.4

func (j *PlayReadyJob) DownloadDash(body []byte, baseURL *url.URL, streamId string) error

DownloadDash parses and downloads a PlayReady-encrypted DASH stream.

func (*PlayReadyJob) DownloadHls added in v1.20.4

func (j *PlayReadyJob) DownloadHls(body []byte, baseURL *url.URL, streamId string) error

DownloadHls parses and downloads a PlayReady-encrypted HLS stream.

type WidevineJob added in v1.20.2

type WidevineJob struct {
	Threads    int
	ClientId   string
	PrivateKey string
	Send       func([]byte) ([]byte, error)
}

WidevineJob holds configuration for a Widevine encrypted download.

func (*WidevineJob) DownloadDash added in v1.20.4

func (j *WidevineJob) DownloadDash(body []byte, baseURL *url.URL, streamId string) error

DownloadDash parses and downloads a Widevine-encrypted DASH stream.

func (*WidevineJob) DownloadHls added in v1.20.4

func (j *WidevineJob) DownloadHls(body []byte, baseURL *url.URL, streamId string) error

DownloadHls parses and downloads a Widevine-encrypted HLS stream.

Jump to

Keyboard shortcuts

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