Skip to content

Commit

Permalink
jibri: expose the call-status-check settings to configuration via env…
Browse files Browse the repository at this point in the history
… vars
  • Loading branch information
benbz committed Aug 4, 2022
1 parent a707a00 commit c02770f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jibri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ services:
cap_add:
- SYS_ADMIN
environment:
- ALL_MUTED_TIMEOUT
- CHROMIUM_FLAGS
- DEFAULT_CALL_EMPTY_TIMEOUT
- DISPLAY=:0
- ENABLE_STATS_D
- ICE_CONNECTION_TIMEOUT
- JIBRI_HTTP_API_EXTERNAL_PORT
- JIBRI_HTTP_API_INTERNAL_PORT
- JIBRI_RECORDING_RESOLUTION
Expand All @@ -25,6 +28,7 @@ services:
- JIBRI_RECORDING_DIR
- JIBRI_FINALIZE_RECORDING_SCRIPT_PATH
- JIBRI_STRIP_DOMAIN_JID
- NO_MEDIA_TIMEOUT
- PUBLIC_URL
- TZ
- XMPP_AUTH_DOMAIN
Expand Down
29 changes: 28 additions & 1 deletion jibri/rootfs/defaults/jibri.conf
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,31 @@ jibri {
enable-stats-d = {{ .Env.ENABLE_STATS_D }}
}
{{ end -}}
}

call-status-checks {
{{ if .Env.NO_MEDIA_TIMEOUT -}}
// If all clients have their audio and video muted and if Jibri does not
// detect any data stream (audio or video) comming in, it will stop
// recording after NO_MEDIA_TIMEOUT expires.
no-media-timeout = {{ .Env.NO_MEDIA_TIMEOUT }}
{{ end -}}

{{ if .Env.ALL_MUTED_TIMEOUT -}}
// If all clients have their audio and video muted, Jibri consideres this
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
all-muted-timeout = {{ .Env.ALL_MUTED_TIMEOUT }}
{{ end -}}

{{ if .Env.DEFAULT_CALL_EMPTY_TIMEOUT -}}
// When detecting if a call is empty, Jibri takes into consideration for how
// long the call has been empty already. If it has been empty for more than
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
default-call-empty-timeout = {{ .Env.DEFAULT_CALL_EMPTY_TIMEOUT }}
{{ end -}}

{{ if .Env.ICE_CONNECTION_TIMEOUT -}}
// If ICE hasn't completed, or stays in a state other than "connected" for this amount of time, Jibri will stop.
ice-connection-timeout = {{ .Env.ICE_CONNECTION_TIMEOUT }}
{{ end -}}
}
}

0 comments on commit c02770f

Please sign in to comment.