webcam
This commit is contained in:
@@ -48,6 +48,7 @@ type FrameHeader struct {
|
||||
FPS int `msgpack:"fps"`
|
||||
Format string `msgpack:"format"`
|
||||
HVNC bool `msgpack:"hvnc,omitempty"`
|
||||
Webcam bool `msgpack:"webcam,omitempty"`
|
||||
}
|
||||
|
||||
type Frame struct {
|
||||
@@ -185,3 +186,15 @@ type Notification struct {
|
||||
Keyword string `msgpack:"keyword,omitempty"`
|
||||
TS int64 `msgpack:"ts,omitempty"`
|
||||
}
|
||||
|
||||
type WebcamDevice struct {
|
||||
Index int `msgpack:"index"`
|
||||
Name string `msgpack:"name"`
|
||||
MaxFPS int `msgpack:"maxFps,omitempty"`
|
||||
}
|
||||
|
||||
type WebcamDevices struct {
|
||||
Type string `msgpack:"type"`
|
||||
Devices []WebcamDevice `msgpack:"devices"`
|
||||
Selected int `msgpack:"selected"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user