diff --git a/README.md b/README.md index e87d5ed..9c9a5c4 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ You need to set some environment variables to run the container. * BBB_USER_NAME - the username to join the meeting. (Default: Live) * BBB_SHOW_CHAT - shows the chat on the left side of the window (Default: false) * BBB_RESOLUTION - the streamed/downloaded resolution (Default: 1920x1080) +* BBB_CHAT_MESSAGE - prefix for the message that would be posted to BBB chat, while joining a conference (Default: "This meeting is streamed to") * TZ - Timezone (Default: Europe/Vienna) #### Chat settings diff --git a/stream.py b/stream.py index 0ea136e..6992e32 100644 --- a/stream.py +++ b/stream.py @@ -149,7 +149,7 @@ def bbb_browser(): tmp_chatUrl = args.target.partition('//')[2].partition('/')[0] if args.chatUrl: tmp_chatUrl = args.chatUrl - tmp_chatMsg = "This meeting is streamed to" + tmp_chatMsg = os.environ.get('BBB_CHAT_MESSAGE', "This meeting is streamed to") if args.chatMsg: tmp_chatMsg = ' '.join(args.chatMsg).strip('"') element.send_keys("{0}: {1}".format(tmp_chatMsg, tmp_chatUrl))