hls

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: OSL-3.0 Imports: 8 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.

Padding

Public-Key Cryptography Standards #7 (PKCS7) padding [RFC5652]

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

func NewBlock added in v1.37.8

func NewBlock(key []byte) (*Block, error)

func (Block) Mode added in v1.37.8

func (b Block) Mode(r io.Reader, iv []byte) *BlockMode

func (Block) ModeKey added in v1.37.8

func (b Block) ModeKey(r io.Reader) *BlockMode

type BlockMode added in v1.37.8

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

func (*BlockMode) Read added in v1.37.8

func (b *BlockMode) Read(p []byte) (int, error)

type Master added in v1.23.0

type Master struct {
	Media   Media
	Streams Streams
}

type Media added in v1.23.0

type Media []Medium

func (Media) GetGroupID added in v1.36.2

func (m Media) GetGroupID(val string) *Medium

func (Media) GetName added in v1.36.5

func (m Media) GetName(val string) *Medium

English

func (Media) GroupID added in v1.23.7

func (m Media) GroupID(val string) Media

stereo

func (Media) Name added in v1.32.0

func (m Media) Name(val string) Media

English

func (Media) Type added in v1.23.0

func (m Media) Type(val string) Media

AUDIO

func (Media) URI added in v1.23.7

func (m Media) URI(val string) Media

cdn

type Medium added in v1.36.2

type Medium struct {
	Type    string
	Name    string
	GroupID string
	RawURI  string
}

func (Medium) String added in v1.36.2

func (m Medium) String() string

type Scanner added in v1.29.8

type Scanner struct {
	scanner.Scanner
	// contains filtered or unexported fields
}

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() (*Master, error)

func (Scanner) Segment added in v1.29.8

func (s Scanner) Segment() (*Segment, error)

type Segment added in v1.23.0

type Segment struct {
	Clear     []string
	Protected []string
	RawIV     string
	RawKey    string
}

func (Segment) IV added in v1.36.7

func (s Segment) IV() ([]byte, error)

type Stream added in v1.23.0

type Stream struct {
	Resolution string
	Bandwidth  int64  // handle duplicate resolution
	VideoRange string // handle duplicate bandwidth
	RawCodecs  string // handle missing resolution
	RawURI     string
}

func (Stream) Codecs added in v1.23.5

func (s Stream) Codecs() string

func (Stream) String added in v1.23.5

func (s Stream) String() string

type Streams added in v1.36.2

type Streams []Stream

func (Streams) Codecs added in v1.36.2

func (s Streams) Codecs(val string) Streams

hvc1 mp4a

func (Streams) GetBandwidth added in v1.36.2

func (s Streams) GetBandwidth(val int64) *Stream

func (Streams) URI added in v1.36.4

func (s Streams) URI(val string) Streams

cdn=vod-ak-aoc.tv.apple.com

func (Streams) VideoRange added in v1.36.2

func (s Streams) VideoRange(val string) Streams

PQ

Jump to

Keyboard shortcuts

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