Add ability to restart broadcast

This commit is contained in:
John Nguyen 2023-05-21 15:43:08 +10:00
parent a5830dc440
commit acc3c286a1
10 changed files with 60 additions and 27 deletions

View file

@ -66,6 +66,7 @@ func New(sessions types.SessionManager, desktop types.DesktopManager, capture ty
conf: conf,
sessions: sessions,
desktop: desktop,
capture: capture,
webrtc: webrtc,
state: state,
upgrader: websocket.Upgrader{
@ -88,6 +89,7 @@ type WebSocketHandler struct {
upgrader websocket.Upgrader
sessions types.SessionManager
desktop types.DesktopManager
capture types.CaptureManager
webrtc types.WebRTCManager
state *state.State
conf *config.WebSocket