mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add screencast enabled bool to system init.
This commit is contained in:
parent
257b642b94
commit
3227978725
@ -21,13 +21,14 @@ type SystemWebRTC struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SystemInit struct {
|
type SystemInit struct {
|
||||||
Event string `json:"event,omitempty"`
|
Event string `json:"event,omitempty"`
|
||||||
SessionId string `json:"session_id"`
|
SessionId string `json:"session_id"`
|
||||||
ControlHost ControlHost `json:"control_host"`
|
ControlHost ControlHost `json:"control_host"`
|
||||||
ScreenSize ScreenSize `json:"screen_size"`
|
ScreenSize ScreenSize `json:"screen_size"`
|
||||||
Sessions map[string]SessionData `json:"sessions"`
|
Sessions map[string]SessionData `json:"sessions"`
|
||||||
ImplicitHosting bool `json:"implicit_hosting"`
|
ImplicitHosting bool `json:"implicit_hosting"`
|
||||||
WebRTC SystemWebRTC `json:"webrtc"`
|
ScreencastEnabled bool `json:"screencast_enabled"`
|
||||||
|
WebRTC SystemWebRTC `json:"webrtc"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SystemAdmin struct {
|
type SystemAdmin struct {
|
||||||
|
@ -43,8 +43,9 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
|||||||
Height: size.Height,
|
Height: size.Height,
|
||||||
Rate: size.Rate,
|
Rate: size.Rate,
|
||||||
},
|
},
|
||||||
Sessions: sessions,
|
Sessions: sessions,
|
||||||
ImplicitHosting: h.sessions.ImplicitHosting(),
|
ImplicitHosting: h.sessions.ImplicitHosting(),
|
||||||
|
ScreencastEnabled: h.capture.Screencast().Enabled(),
|
||||||
WebRTC: message.SystemWebRTC{
|
WebRTC: message.SystemWebRTC{
|
||||||
Videos: h.capture.VideoIDs(),
|
Videos: h.capture.VideoIDs(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user