mpdqlib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPeriods

func ListPeriods(manifest *mpd.MPD, representation string)

ListPeriods lists the periods for a given representation TODO: I don't think this is terribly interesting or relevant. Probably going to delete this.

func ListSegments

func ListSegments(manifest *mpd.MPD, watch bool, lastTime, mpdURL, representation, mpdBase string)

ListSegments lists the segments for a given representation

func ListVideoRepresentations

func ListVideoRepresentations(manifest *mpd.MPD)

ListVideoRepresentations lists the representations in the manifest

func PrintManifest

func PrintManifest(manifest *mpd.MPD)

PrintManifest pretty prints the manifest with color

func Query

func Query(manifest *mpd.MPD, query string)

Query returns a parsed manifest with elements matching query string

Types

type ListRepresentation

type ListRepresentation struct {
	ID        string
	Bandwidth int
}

ListRepresentation is used to store a list of representation ID's and bandwidth

func GetMaxVideoRepresentation

func GetMaxVideoRepresentation(manifest *mpd.MPD) ListRepresentation

GetMaxVideoRepresentation returns the highest bandwidth representation

func GetVideoRepresentations

func GetVideoRepresentations(manifest *mpd.MPD) []ListRepresentation

GetVideoRepresentations returns an ordered list of representation ID's and bandwidth

Jump to

Keyboard shortcuts

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