diff --git a/README.md b/README.md index bd90781..41e0054 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ You need to set some environment variables to run the container. * BBB_CHAT_MESSAGE - prefix for the message that would be posted to BBB chat, while joining a conference (Default: "This meeting is streamed to") * BBB_HIDE_MEETING_TITLE - hide the meeting title in the top bar (Default: false) * BBB_HIDE_WHO_TALKS - hide the annotation who is currently talking (Default: false) +* BBB_BACKGROUND_COLOR - override background color by a CSS color, e.g., "black" or "#ffffff" * TZ - Timezone (Default: Europe/Vienna) #### Chat settings diff --git a/stream.py b/stream.py index d700ad5..cbcc1be 100644 --- a/stream.py +++ b/stream.py @@ -85,6 +85,11 @@ help='hide the annotation who is currently talking (can be set using env)', default=bool(strtobool(os.environ.get('BBB_HIDE_WHO_TALKS', '0'))) ) +parser.add_argument( + '--bbb-background-color', + help='override background color by a CSS color, e.g., "black" or "#ffffff" (can be set using env)', + default=os.environ.get('BBB_BACKGROUND_COLOR', '') +) args = parser.parse_args() # some ugly hacks for additional options @@ -240,6 +245,9 @@ def bbb_browser(): except JavascriptException: browser.execute_script("document.getElementById('app').setAttribute('style','margin-bottom:30px');") + if args.bbb_background_color: + browser.execute_script("document.querySelector('body').setAttribute('style','background-color: %s;');" % args.bbb_background_color) + def create_meeting(): create_params = {} if args.moderatorPassword: