forked from henrym/go-vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
208 lines (177 loc) · 3.16 KB
/
const.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
// This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// license. Its contents can be found at:
// http://creativecommons.org/publicdomain/zero/1.0
package vlc
type LogPriority uint8
const (
Info LogPriority = iota
Error
Warning
Debug
)
type EventType int
const (
MediaMetaChanged EventType = iota
MediaSubItemAdded
MediaDurationChanged
MediaParsedChanged
MediaFreed
MediaStateChanged
)
const (
MediaPlayerMediaChanged EventType = 0x100 + iota
MediaPlayerNothingSpecial
MediaPlayerOpening
MediaPlayerBuffering
MediaPlayerPlaying
MediaPlayerPaused
MediaPlayerStopped
MediaPlayerForward
MediaPlayerBackward
MediaPlayerEndReached
MediaPlayerEncounteredError
MediaPlayerTimeChanged
MediaPlayerPositionChanged
MediaPlayerSeekableChanged
MediaPlayerPausableChanged
MediaPlayerTitleChanged
MediaPlayerSnapshotTaken
MediaPlayerLengthChanged
)
const (
MediaListItemAdded EventType = 0x200 + iota
MediaListWillAddItem
MediaListItemDeleted
MediaListWillDeleteItem
)
const (
MediaListViewItemAdded EventType = 0x300 + iota
MediaListViewWillAddItem
MediaListViewItemDeleted
MediaListViewWillDeleteItem
)
const (
MediaListPlayerPlayed EventType = 0x400 + iota
MediaListPlayerNextItemSet
MediaListPlayerStopped
)
const (
MediaDiscovererStarted EventType = 0x500 + iota
MediaDiscovererEnded
)
const (
VlmMediaAdded EventType = 0x600 + iota
VlmMediaRemoved
VlmMediaChanged
VlmMediaInstanceStarted
VlmMediaInstanceStopped
VlmMediaInstanceStatusInit
VlmMediaInstanceStatusOpening
VlmMediaInstanceStatusPlaying
VlmMediaInstanceStatusPause
VlmMediaInstanceStatusEnd
VlmMediaInstanceStatusError
)
type PlaybackMode uint8
const (
PMDefault PlaybackMode = iota
PMLoop
PMRepeat
)
type MarqueeOption uint8
const (
MOEnable MarqueeOption = iota
MOText
MOColor
MOOpacity
MOPosition
MORefresh
MOSize
MOTimeout
MOX
MOY
)
type AdjustOption uint8
const (
AOEnable AdjustOption = iota
AOContrast
AOBrightness
AOHue
AOSaturation
AOGamma
)
type LogoOption uint8
const (
LOEnable LogoOption = iota
LOFile
LOX
LOY
LODelay
LORepeat
LOOpacity
LOPosition
)
type MetaProperty uint8
const (
MPTitle MetaProperty = iota
MPArtist
MPGenre
MPCopyright
MPAlbum
MPTrackNumber
MPDescription
MPRating
MPDate
MPSetting
MPURL
MPLanguage
MPNowPlaying
MPPublisher
MPEncodedBy
MPArtworkURL
MPTrackID
)
type MediaState uint8
const (
MSNothingSpecial MediaState = iota
MSOpening
MSBuffering
MSPlaying
MSPaused
MSStopped
MSEnded
MSError
)
type MediaOption uint16
const (
MOTrusted MediaOption = 0x2
MOUnique MediaOption = 0x100
)
type TrackType int
const (
TTUnknown TrackType = -1
TTAudio TrackType = 0
TTVideo TrackType = 1
TTText TrackType = 2
)
type AudioDevice int8
const (
ADError AudioDevice = -1
ADMono AudioDevice = 1
ADStereo AudioDevice = 2
AD2F2R AudioDevice = 4
AD3F2R AudioDevice = 5
AD5_1 AudioDevice = 6
AD6_1 AudioDevice = 7
AD7_1 AudioDevice = 8
ADSPDIF AudioDevice = 10
)
type AudioChannel int8
const (
ACError AudioChannel = -1
ACStereo AudioChannel = 1
ACRStereo AudioChannel = 2
ACLeft AudioChannel = 3
ACRight AudioChannel = 4
ACDolbys AudioChannel = 5
)