hls

package
v1.38.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 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

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

func NewCipher

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

func (Cipher) Copy

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

type Information

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

type Master

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

func (Master) Audio

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

func (Master) Stream

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

type Media

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

func (Media) Format

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

type Scanner

type Scanner struct {
	scanner.Scanner
}

func NewScanner

func NewScanner(body io.Reader) *Scanner

func (*Scanner) Master

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

func (*Scanner) Segment

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

type Segment

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

type Stream

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

func (Stream) Format

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