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

@ -121,6 +121,9 @@ func (ws *WebSocketHandler) connectUpstream() {
ws.logger.Debug().Msgf("key up %d", payload.Key)
}
case webrtc.OP_RESTART_BROADCAST:
ws.logger.Info().Msg("Restarting broadcast")
ws.capture.Broadcast().GetRestart() <- true
}
}
}