internal

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MPDListFile = "mpdlist.json"
)

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(printVersion bool)

CheckVersion

func GetVersion

func GetVersion() string

GetVersion - get version, commitHash and commitDate depending on what is inserted

func PrintVersion

func PrintVersion()

PrintVersion prints the version to stdout.

func WriteMPDData

func WriteMPDData(dirPath string, name, uri string) error

WriteMPDData to file on disk.

Types

type MPDData

type MPDData struct {
	Name    string `json:"name"`
	OrigURI string `json:"originURI"`
	Title   string `json:"-"`
	// Dur is MediaPresentationDuration
	Dur    string `json:"-"`
	MPDStr string `json:"-"`
}

MPDData stores mpd name to original URI relation.

func ReadMPDData

func ReadMPDData(vodFS fs.FS, mpdPath string) MPDData

ReadMPDData for MPD from file on disk.

Jump to

Keyboard shortcuts

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