-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
114 lines (98 loc) · 2.99 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package m3u8
const (
// Playlist
EXTM3U = `#EXTM3U`
ExtENDList = `#EXT-X-ENDLIST`
ExtTargetDutation = `#EXT-X-TARGETDURATION`
ExtAllowCache = `#EXT-X-ALLOW-CACHE`
ExtDiscontinuitySequence = `#EXT-X-DISCONTINUITY-SEQUENCE`
ExtIndependentSegments = `#EXT-X-INDEPENDENT-SEGMENTS`
ExtPlaylistType = `#EXT-X-PLAYLIST-TYPE`
ExtIFramesOnly = `#EXT-X-I-FRAMES-ONLY`
ExtMediaSequence = `#EXT-X-MEDIA-SEQUENCE`
ExtVersion = `#EXT-X-VERSION`
// Variant Playlist
ExtSessionKey = `#EXT-X-SESSION-KEY`
ExtKey = `#EXT-X-KEY`
ExtDiscontinuity = `#EXT-X-DISCONTINUITY`
ExtProgramDateTime = `#EXT-X-PROGRAM-DATE-TIME`
ExtDateRange = `#EXT-X-DATERANGE`
ExtMap = `#EXT-X-MAP`
ExtSessionData = `#EXT-X-SESSION-DATA`
EXTINF = `#EXTINF`
ExtByteRange = `#EXT-X-BYTERANGE`
ExtStart = `#EXT-X-START`
ExtMedia = `#EXT-X-MEDIA`
ExtStreamInf = `#EXT-X-STREAM-INF`
ExtFrameStreamInf = `#EXT-X-I-FRAME-STREAM-INF`
// for low-latency
ExtServerControl = `#EXT-X-SERVER-CONTROL`
ExtPartInf = `#EXT-X-PART-INF`
ExtPart = `#EXT-X-PART`
ExtRenditionReport = `#EXT-X-RENDITION-REPORT`
ExtSkip = `#EXT-X-SKIP`
// rendition report
LASTMSN = "LAST-MSN"
LASTPART = "LAST-PART"
// server control
CANBLOCKRELOAD = "CAN-BLOCK-RELOAD"
HOLDBACK = "HOLD-BACK"
PARTHOLDBACK = "PART-HOLD-BACK"
CANSKIPUNTIL = "CAN-SKIP-UNTIL"
// part
PARTTARGET = "PART-TARGET"
INDEPENDENT = "INDEPENDENT"
GAP = "GAP"
// skip
SKIPPEDSEGMENTS = "SKIPPED-SEGMENTS"
// Utility tag
URI = "URI"
DURATION = "DURATION"
// ByteRange
BYTERANGE = "BYTERANGE"
// Encrypt key
METHOD = "METHOD"
IV = "IV"
KEYFORMAT = "KEYFORMAT"
KEYFORMATVERSIONS = "KEYFORMATVERSIONS"
// DateRange
ID = "ID"
CLASS = "CLASS"
STARTDATE = "START-DATE"
ENDDATE = "END-DATE"
PLANNEDDURATION = "PLANNED-DURATION"
SCTE35CMD = "SCTE35-CMD"
SCTE35OUT = "SCTE35-OUT"
SCTE35IN = "SCTE35-IN"
ENDONNEXT = "END-ON-NEXT"
// Ext-Start
TIMEOFFSET = "TIME-OFFSET"
PRECISE = "PRECISE"
// Session
DATAID = "DATA-ID"
VALUE = "VALUE"
// MediaType
TYPE = "TYPE"
GROUPID = "GROUP-ID"
LANGUAGE = "LANGUAGE"
ASSOCLANGUAGE = "ASSOC-LANGUAGE"
NAME = "NAME"
AUTOSELECT = "AUTOSELECT"
FORCED = "FORCED"
DEFAULT = "DEFAULT"
INSTREAMID = "INSTREAM-ID"
CHARACTERISTICS = "CHARACTERISTICS"
CHANNELS = "CHANNELS"
/// Variant
RESOLUTION = "RESOLUTION"
PROGRAMID = "PROGRAM-ID"
CODECS = "CODECS"
BANDWIDTH = "BANDWIDTH"
AVERAGEBANDWIDTH = "AVERAGE-BANDWIDTH"
FRAMERATE = "FRAME-RATE"
VIDEO = "VIDEO"
AUDIO = "AUDIO"
SUBTITLES = "SUBTITLES"
CLOSEDCAPTIONS = "CLOSED-CAPTIONS"
HDCPLEVEL = "HDCP-LEVEL"
)