From 8f38fe60f76669315feb50fdc06381013a54d0ee Mon Sep 17 00:00:00 2001 From: Daniel McAssey Date: Fri, 17 Jun 2022 18:35:17 +0100 Subject: [PATCH] web,jvb: add option to enable multi-stream --- docker-compose.yml | 2 ++ jvb/rootfs/defaults/jvb.conf | 4 ++++ web/rootfs/defaults/settings-config.js | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cc526b4..22f2c26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -79,6 +79,7 @@ services: - ENABLE_TRANSCRIPTIONS - ENABLE_XMPP_WEBSOCKET - ENABLE_JAAS_COMPONENTS + - ENABLE_MULTI_STREAM - ETHERPAD_PUBLIC_URL - ETHERPAD_URL_BASE - E2EPING_NUM_REQUESTS @@ -288,6 +289,7 @@ services: - DOCKER_HOST_ADDRESS - ENABLE_COLIBRI_WEBSOCKET - ENABLE_OCTO + - ENABLE_MULTI_STREAM - JVB_AUTH_USER - JVB_AUTH_PASSWORD - JVB_BREWERY_MUC diff --git a/jvb/rootfs/defaults/jvb.conf b/jvb/rootfs/defaults/jvb.conf index 7f80974..33df9aa 100644 --- a/jvb/rootfs/defaults/jvb.conf +++ b/jvb/rootfs/defaults/jvb.conf @@ -1,6 +1,7 @@ {{ $COLIBRI_REST_ENABLED := .Env.COLIBRI_REST_ENABLED | default "false" | toBool }} {{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }} {{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }} +{{ $ENABLE_MULTI_STREAM := .Env.ENABLE_MULTI_STREAM | default "0" | toBool }} {{ $JVB_DISABLE_STUN := .Env.JVB_DISABLE_STUN- | default "0" | toBool }} {{ $JVB_STUN_SERVERS := .Env.JVB_STUN_SERVERS | default "meet-jit-si-turnrelay.jitsi.net:443" -}} {{ $JVB_AUTH_USER := .Env.JVB_AUTH_USER | default "jvb" -}} @@ -60,6 +61,9 @@ videobridge { tls = true server-id = "{{ $WS_SERVER_ID }}" } + multi-stream { + enabled = {{ $ENABLE_MULTI_STREAM }} + } http-servers { private { host = 0.0.0.0 diff --git a/web/rootfs/defaults/settings-config.js b/web/rootfs/defaults/settings-config.js index b22de70..3890d65 100644 --- a/web/rootfs/defaults/settings-config.js +++ b/web/rootfs/defaults/settings-config.js @@ -22,6 +22,7 @@ {{ $ENABLE_TCC := .Env.ENABLE_TCC | default "true" | toBool -}} {{ $ENABLE_TRANSCRIPTIONS := .Env.ENABLE_TRANSCRIPTIONS | default "false" | toBool -}} {{ $ENABLE_JAAS_COMPONENTS := .Env.ENABLE_JAAS_COMPONENTS | default "0" | toBool }} +{{ $ENABLE_MULTI_STREAM := .Env.ENABLE_MULTI_STREAM | default "0" | toBool }} {{ $HIDE_PREJOIN_DISPLAY_NAME := .Env.HIDE_PREJOIN_DISPLAY_NAME | default "false" | toBool -}} {{ $PUBLIC_URL := .Env.PUBLIC_URL | default "https://localhost:8443" -}} {{ $RESOLUTION := .Env.RESOLUTION | default "720" -}} @@ -70,6 +71,11 @@ config.startWithVideoMuted = {{ $START_WITH_VIDEO_MUTED }}; config.startBitrate = '{{ .Env.START_BITRATE }}'; {{ end -}} +if (!config.hasOwnProperty('flags')) config.flags = {}; +config.flags.sourceNameSignaling = {{ $ENABLE_MULTI_STREAM }}; +config.flags.sendMultipleVideoStreams = {{ $ENABLE_MULTI_STREAM }}; + + // ScreenShare Configuration. // config.desktopSharingFrameRate = { min: {{ $DESKTOP_SHARING_FRAMERATE_MIN }}, max: {{ $DESKTOP_SHARING_FRAMERATE_MAX }} };