edit broadcast.

This commit is contained in:
Miroslav Šedivý 2020-11-01 17:34:47 +01:00
parent 507fce7862
commit 7fb977faa4
4 changed files with 12 additions and 8 deletions

View file

@ -45,7 +45,7 @@ func (h *MessageHandlerCtx) boradcastStatus(session types.Session) error {
if err := session.Send(
message.BroadcastStatus{
Event: event.BORADCAST_STATUS,
IsActive: h.capture.IsBoradcasting(),
IsActive: h.capture.BroadcastEnabled(),
URL: h.capture.BroadcastUrl(),
}); err != nil {
h.logger.Warn().Err(err).Msgf("sending event %s has failed", event.BORADCAST_STATUS)