add screencast enabled bool to system init.

This commit is contained in:
Miroslav Šedivý
2021-07-14 14:23:51 +02:00
parent 257b642b94
commit 3227978725
2 changed files with 11 additions and 9 deletions

View File

@ -43,8 +43,9 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
Height: size.Height,
Rate: size.Rate,
},
Sessions: sessions,
ImplicitHosting: h.sessions.ImplicitHosting(),
Sessions: sessions,
ImplicitHosting: h.sessions.ImplicitHosting(),
ScreencastEnabled: h.capture.Screencast().Enabled(),
WebRTC: message.SystemWebRTC{
Videos: h.capture.VideoIDs(),
},