dependencies

package
v0.0.0-...-d023c42 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetbaseURL

func GetbaseURL(id string, proxyURL *url.URL) (string, error)

Types

type AdaptationSet

type AdaptationSet struct {
	SegmentAlignment string           `xml:"segmentAlignment,attr"`
	Group            string           `xml:"group,attr"`
	MaxWidth         string           `xml:"maxWidth,attr,omitempty"`
	MaxHeight        string           `xml:"maxHeight,attr,omitempty"`
	MaxFrameRate     string           `xml:"maxFrameRate,attr,omitempty"`
	Par              string           `xml:"par,attr,omitempty"`
	Lang             string           `xml:"lang,attr,omitempty"`
	Representations  []Representation `xml:"Representation"`
}

type AudioConfig

type AudioConfig struct {
	SchemeIdUri string `xml:"schemeIdUri,attr"`
	Value       string `xml:"value,attr"`
}

type Data

type Data struct {
	Option Option `json:"options"`
	Sucess bool   `json:"success"`
}

type Initialization

type Initialization struct {
	Range string `xml:"range,attr"`
}

type MPD

type MPD struct {
	XMLName                   xml.Name           `xml:"MPD"`
	MinBufferTime             string             `xml:"minBufferTime,attr"`
	Type                      string             `xml:"type,attr"`
	MediaPresentationDuration string             `xml:"mediaPresentationDuration,attr"`
	MaxSegmentDuration        string             `xml:"maxSegmentDuration,attr"`
	Profiles                  string             `xml:"profiles,attr"`
	ProgramInformation        ProgramInformation `xml:"ProgramInformation"`
	Periods                   []Period           `xml:"Period"`
}

type Option

type Option struct {
	Title string `json:"title"`
	Src   string `json:"src"`
}

type Period

type Period struct {
	Duration       string          `xml:"duration,attr"`
	AdaptationSets []AdaptationSet `xml:"AdaptationSet"`
}

type ProgramInformation

type ProgramInformation struct {
	MoreInformationURL string `xml:"moreInformationURL,attr"`
	Title              string `xml:"Title"`
}

type Representation

type Representation struct {
	ID           string       `xml:"id,attr"`
	MimeType     string       `xml:"mimeType,attr"`
	Codecs       string       `xml:"codecs,attr"`
	Width        string       `xml:"width,attr,omitempty"`
	Height       string       `xml:"height,attr,omitempty"`
	FrameRate    string       `xml:"frameRate,attr,omitempty"`
	Sar          string       `xml:"sar,attr,omitempty"`
	StartWithSAP string       `xml:"startWithSAP,attr,omitempty"`
	Bandwidth    string       `xml:"bandwidth,attr,omitempty"`
	BaseURL      string       `xml:"BaseURL"`
	SegmentList  SegmentList  `xml:"SegmentList"`
	AudioConfig  *AudioConfig `xml:"AudioChannelConfiguration,omitempty"`
}

type SegmentList

type SegmentList struct {
	Timescale      string         `xml:"timescale,attr"`
	Duration       string         `xml:"duration,attr"`
	Initialization Initialization `xml:"Initialization"`
	SegmentURLs    []SegmentURL   `xml:"SegmentURL"`
}

type SegmentURL

type SegmentURL struct {
	MediaRange string `xml:"mediaRange,attr"`
	IndexRange string `xml:"indexRange,attr,omitempty"`
}

Jump to

Keyboard shortcuts

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