hls

package
v1.22.9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: OSL-3.0 Imports: 6 Imported by: 0

README

March 1 2022


  1. master http.Response
  2. segment EXT-X-KEY http.Response

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block added in v1.22.9

type Block struct {
	cipher.Block
	IV []byte
}

func NewCipher added in v1.22.9

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

func (Block) Decrypt added in v1.22.9

func (b Block) Decrypt(src []byte) []byte

We do not care about the ciphertext, so this works in place.

type Information added in v1.22.9

type Information struct {
	Duration string
	URI      string
}

type Master added in v1.22.9

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

func NewMaster added in v1.22.9

func NewMaster(res *http.Response) (*Master, error)

type Media added in v1.22.9

type Media struct {
	AutoSelect string
	Type       string
}

type Segment

type Segment struct {
	Key struct {
		Method string
		URI    string
	}
	Info []Information
}

func NewSegment added in v1.22.9

func NewSegment(res *http.Response) (*Segment, error)

type Stream added in v1.22.9

type Stream struct {
	Bandwidth string
	URI       string
}

Jump to

Keyboard shortcuts

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