github.com/puellanivis/breton@v0.2.16/lib/net/hls/m3u8/streaminf.go (about)

     1  package m3u8
     2  
     3  // StreamInf implements the STREAM-INF directive of the m3u8 standard.
     4  type StreamInf struct {
     5  	Bandwidth        int        `m3u8:"BANDWIDTH"`
     6  	AverageBandwidth int        `m3u8:"AVERAGE-BANDWIDTH,optional"`
     7  	Codecs           []string   `m3u8:"CODECS,optional" delim:","`
     8  	Resolution       Resolution `m3u8:"RESOLUTION,optional"`
     9  	HDCPLevel        string     `m3u8:"HDCP-LEVEL,optional" enum:"NONE,TYPE-0,TYPE-1"`
    10  	VideoRange       string     `m3u8:"VIDEO-RANGE,optional" enum:"SDR,PQ"`
    11  
    12  	FrameRate float64 `m3u8:"FRAME-RATE,optional"`
    13  
    14  	Audio          string `m3u8:"AUDIO,optional"`
    15  	Subtitles      string `m3u8:"SUBTITLES,optional"`
    16  	ClosedCaptions string `m3u8:"CLOSED-CAPTIONS,optional"`
    17  }
    18  
    19  // IFrameStreamInf implements the I-FRAME-STREAM-INF directive of the m3u8 standard.
    20  type IFrameStreamInf struct {
    21  	Bandwidth        int        `m3u8:"BANDWIDTH"`
    22  	AverageBandwidth int        `m3u8:"AVERAGE-BANDWIDTH,optional"`
    23  	Codecs           []string   `m3u8:"CODECS,optional" delim:","`
    24  	Resolution       Resolution `m3u8:"RESOLUTION,optional"`
    25  	HDCPLevel        string     `m3u8:"HDCP-LEVEL,optional" enum:"NONE,TYPE-0,TYPE-1"`
    26  	VideoRange       string     `m3u8:"VIDEO-RANGE,optional" enum:"SDR,PQ"`
    27  
    28  	URI string `m3u8:"URI"`
    29  }