load

package
v0.0.0-...-2456457 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaseLoader

type ChaseLoader struct {
	DefaultLoader
	MasterPlaylist          parse.MasterPlaylist
	StartedAt               time.Time
	InitialWindowDurationMs float64
}

func NewChaseLoader

func NewChaseLoader(original parse.MasterPlaylist) ChaseLoader

func (*ChaseLoader) LoadMediaPlaylist

func (v *ChaseLoader) LoadMediaPlaylist(index int) ([]byte, error)

type DefaultLoader

type DefaultLoader struct {
	MasterPlaylist parse.MasterPlaylist
}

func NewDefaultLoader

func NewDefaultLoader(original parse.MasterPlaylist) DefaultLoader

func (*DefaultLoader) LoadMasterPlaylist

func (v *DefaultLoader) LoadMasterPlaylist() ([]byte, error)

func (*DefaultLoader) LoadSegment

func (v *DefaultLoader) LoadSegment(mediaPlaylistIndex, segmentIndex int) ([]byte, error)

type LiveLoader

type LiveLoader struct {
	DefaultLoader
	MasterPlaylist   parse.MasterPlaylist
	StartedAt        time.Time
	WindowDurationMs float64
}

func NewLiveLoader

func NewLiveLoader(original parse.MasterPlaylist) LiveLoader

func (*LiveLoader) LoadMediaPlaylist

func (v *LiveLoader) LoadMediaPlaylist(index int) ([]byte, error)

type Loader

type Loader interface {
	LoadMasterPlaylist() ([]byte, error)
	LoadMediaPlaylist(index int) ([]byte, error)
	LoadSegment(mediaPlaylistIndex, segmentIndex int) ([]byte, error)
}

type VodLoader

type VodLoader struct {
	DefaultLoader
	MasterPlaylist parse.MasterPlaylist
}

func NewVodLoader

func NewVodLoader(original parse.MasterPlaylist) VodLoader

func (*VodLoader) LoadMediaPlaylist

func (v *VodLoader) LoadMediaPlaylist(index int) ([]byte, error)

Jump to

Keyboard shortcuts

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