hls

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: OSL-3.0 Imports: 10 Imported by: 0

README

HLS

CBC

Why does this:

#EXT-X-KEY:METHOD=AES-128,URI="https://cbsios-vh.akamaihd.net/i/temp_hd_galle...

mean CBC?

An encryption method of AES-128 signals that Media Segments are completely encrypted using the Advanced Encryption Standard (AES) [AES_128] with a 128-bit key, Cipher Block Chaining (CBC)

https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.4

EXT-X-KEY

If IV is missing, then use KEY for both.

Documentation

Index

Constants

View Source
const (
	AAC = ".aac"
	TS  = ".ts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher added in v1.29.3

type Cipher struct {
	cipher.Block
	// contains filtered or unexported fields
}

func NewCipher

func NewCipher(src io.Reader) (*Cipher, error)

func (Cipher) Copy added in v1.29.3

func (c Cipher) Copy(w io.Writer, r io.Reader, iv []byte) (int, error)

type Information added in v1.23.0

type Information struct {
	IV  []byte
	URI *url.URL
}

type Master added in v1.23.0

type Master struct {
	Streams []Stream
	Media   []Media
}

func (Master) Audio added in v1.31.7

func (m Master) Audio(name string) *Media

func (Master) Stream added in v1.23.0

func (m Master) Stream(bandwidth int64) *Stream

type Media added in v1.23.0

type Media struct {
	Name string
	Type string
	URI  *url.URL
}

func (Media) Format added in v1.32.0

func (m Media) Format(f fmt.State, verb rune)

type Scanner added in v1.29.8

type Scanner struct {
	scanner.Scanner
}

func NewScanner added in v1.29.8

func NewScanner(body io.Reader) *Scanner

func (*Scanner) Master added in v1.29.8

func (s *Scanner) Master(addr *url.URL) (*Master, error)

func (*Scanner) Segment added in v1.29.8

func (s *Scanner) Segment(addr *url.URL) (*Segment, error)

type Segment added in v1.23.0

type Segment struct {
	Key  *url.URL
	Info []Information
}

type Stream added in v1.23.0

type Stream struct {
	Resolution string
	Bandwidth  int64  // handle duplicate resolution
	Codecs     string // handle missing resolution
	URI        *url.URL
}

func (Stream) Format added in v1.25.7

func (s Stream) Format(f fmt.State, verb rune)

Jump to

Keyboard shortcuts

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