Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentProtection ¶ added in v1.15.2
type ContentProtection struct { SchemeIdUri string `xml:"schemeIdUri,attr"` // this might not exist Default_KID Default_KID `xml:"default_KID,attr"` // this might not exist PSSH PSSH `xml:"pssh"` }
type Default_KID ¶ added in v1.18.6
type Default_KID string
func (Default_KID) Decode ¶ added in v1.18.6
func (d Default_KID) Decode() ([]byte, error)
type Representation ¶ added in v1.12.4
type Representation struct { Bandwidth int64 `xml:"bandwidth,attr"` ID string `xml:"id,attr"` // this might not exist BaseURL string // this might not exist, or might be under AdaptationSet Codecs string `xml:"codecs,attr"` // this might be under AdaptationSet ContentProtection []ContentProtection // this might not exist Height int64 `xml:"height,attr"` // this might be under AdaptationSet MimeType string `xml:"mimeType,attr"` // this might not exist SegmentBase *struct { Initialization struct { Range RawRange `xml:"range,attr"` } IndexRange RawRange `xml:"indexRange,attr"` } // this might not exist, or might be under AdaptationSet SegmentTemplate *SegmentTemplate // this might not exist Width int64 `xml:"width,attr"` // contains filtered or unexported fields }
func Unmarshal ¶ added in v1.18.4
func Unmarshal(b []byte) ([]Representation, error)
func (Representation) Default_KID ¶ added in v1.15.2
func (r Representation) Default_KID() (Default_KID, bool)
func (Representation) Ext ¶ added in v1.12.4
func (r Representation) Ext() (string, bool)
func (Representation) Initialization ¶ added in v1.12.4
func (r Representation) Initialization() (string, bool)
func (Representation) Media ¶ added in v1.12.4
func (r Representation) Media() []string
func (Representation) PSSH ¶ added in v1.15.2
func (r Representation) PSSH() (PSSH, bool)
func (Representation) String ¶ added in v1.12.4
func (r Representation) String() string
type SegmentTemplate ¶ added in v1.15.2
type SegmentTemplate struct { Media string `xml:"media,attr"` SegmentTimeline struct { S []struct { // duration D int `xml:"d,attr"` // repeat. this may not exist R int `xml:"r,attr"` } } StartNumber int `xml:"startNumber,attr"` // this may not exist Initialization string `xml:"initialization,attr"` }
Click to show internal directories.
Click to hide internal directories.