github.com/puellanivis/breton@v0.2.16/lib/net/hls/m3u8/media.go (about) 1 package m3u8 2 3 // Media implements the MEDIA directive of the m3u8 standard. 4 type Media struct { 5 Type string `m3u8:"TYPE" enum:"AUDIO,VIDEO,SUBTITLES,CLOSED-CAPTIONS"` 6 GroupID string `m3u8:"GROUP-ID"` 7 Name string `m3u8:"NAME"` 8 9 Default bool `m3u8:"DEFAULT,optional" enum:"NO,YES"` 10 Autoselect bool `m3u8:"AUTOSELECT,optional" enum:"NO,YES"` 11 Forced bool `m3u8:"FORCED,optional" enum:"NO,YES"` 12 13 Language string `m3u8:"LANGUAGE,optional"` 14 AssocLanguage string `m3u8:"ASSOC-LANGUAGE,optional"` 15 16 InstreamID string `m3u8:"INSTREAM-ID,optional"` 17 Characteristics string `m3u8:"CHARACTERISTICS,optional"` 18 19 // Standard does not technically require that all parameters be decimal-integers. 20 Channels []int `m3u8:"CHANNELS,optional" delim:"/"` 21 22 URI string `m3u8:"URI,optional"` 23 }