Documentation ¶
Index ¶
- type AdaptationSet
- type ContentProtection
- type Representation
- func (r Representation) Audio() bool
- func (r Representation) Default_KID() ([]byte, error)
- func (r Representation) Ext() (string, bool)
- func (r Representation) Index() (int64, error)
- func (r Representation) Initialization() (string, bool)
- func (r Representation) Lang() string
- func (r Representation) Media() ([]string, bool)
- func (r Representation) PSSH() ([]byte, error)
- func (r Representation) Role() (string, bool)
- func (r Representation) String() string
- func (r Representation) Video() bool
- type SegmentTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptationSet ¶
type AdaptationSet struct { // this might be under Representation Codecs string `xml:"codecs,attr"` // this might be under Representation ContentProtection []ContentProtection // this might not exist Lang string `xml:"lang,attr"` // this might be under Representation MimeType string `xml:"mimeType,attr"` // pointer because we want to edit these Representation []*Representation // this might not exist Role *struct { Value string `xml:"value,attr"` } // this might not exist, or might be under Representation SegmentTemplate *SegmentTemplate }
type ContentProtection ¶
type Representation ¶
type Representation struct { Bandwidth int `xml:"bandwidth,attr"` ID string `xml:"id,attr"` // this might not exist BaseURL string // this might be under AdaptationSet Codecs string `xml:"codecs,attr"` // this might be under AdaptationSet ContentProtection []ContentProtection // this might not exist Height int `xml:"height,attr"` // this might be under AdaptationSet MimeType string `xml:"mimeType,attr"` // this might not exist SegmentBase *struct { IndexRange string `xml:"indexRange,attr"` } // this might not exist, or might be under AdaptationSet SegmentTemplate *SegmentTemplate // this might not exist Width int `xml:"width,attr"` // contains filtered or unexported fields }
func Representations ¶
func Representations(r io.Reader) ([]*Representation, error)
func (Representation) Audio ¶
func (r Representation) Audio() bool
func (Representation) Default_KID ¶
func (r Representation) Default_KID() ([]byte, error)
func (Representation) Ext ¶
func (r Representation) Ext() (string, bool)
func (Representation) Index ¶
func (r Representation) Index() (int64, error)
func (Representation) Initialization ¶
func (r Representation) Initialization() (string, bool)
func (Representation) Lang ¶ added in v1.0.2
func (r Representation) Lang() string
func (Representation) Media ¶
func (r Representation) Media() ([]string, bool)
func (Representation) PSSH ¶
func (r Representation) PSSH() ([]byte, error)
func (Representation) Role ¶ added in v1.0.4
func (r Representation) Role() (string, bool)
func (Representation) String ¶
func (r Representation) String() string
func (Representation) Video ¶
func (r Representation) Video() bool
type SegmentTemplate ¶
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.