mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-17 02:57:04 +02:00
decouple BroadcastManager from CaptureManager.
This commit is contained in:
parent
afd3dd2f56
commit
407853eeb1
5 changed files with 82 additions and 53 deletions
|
@ -75,13 +75,14 @@ func (h *MessageHandlerCtx) systemAdmin(session types.Session) error {
|
|||
}
|
||||
}
|
||||
|
||||
broadcast := h.capture.Broadcast()
|
||||
return session.Send(
|
||||
message.SystemAdmin{
|
||||
Event: event.SYSTEM_ADMIN,
|
||||
ScreenSizesList: screenSizesList,
|
||||
BroadcastStatus: message.BroadcastStatus{
|
||||
IsActive: h.capture.BroadcastEnabled(),
|
||||
URL: h.capture.BroadcastUrl(),
|
||||
IsActive: broadcast.Enabled(),
|
||||
URL: broadcast.Url(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue