Skip to content

Commit

Permalink
Don't crash if RTMP is not passed
Browse files Browse the repository at this point in the history
Because we use it also just for recording and not only streaming.
Right now we pass something like https://fakeurl as workaround but is not so good to get printed this in the BBB chat.
  • Loading branch information
Mte90 authored Jun 24, 2021
1 parent 0f6be59 commit 934ff8e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,17 @@ def bbb_browser():
if element.is_enabled() and chat_send.is_enabled():
tmp_chatMsg = os.environ.get('BBB_CHAT_MESSAGE', "This meeting is streamed to")
if not tmp_chatMsg in [ 'false', 'False', 'FALSE' ]:
tmp_chatUrl = args.target.partition('//')[2].partition('/')[0]
if args.chatUrl:
tmp_chatUrl = args.chatUrl
if args.chatMsg:
tmp_chatMsg = ' '.join(args.chatMsg).strip('"')
element.send_keys("{0}: {1}".format(tmp_chatMsg, tmp_chatUrl))
if args.target is not None:
tmp_chatUrl = args.target.partition('//')[2].partition('/')[0]
if args.chatUrl:
tmp_chatUrl = args.chatUrl
if args.chatMsg:
tmp_chatMsg = ' '.join(args.chatMsg).strip('"')
element.send_keys("{0}: {1}".format(tmp_chatMsg, tmp_chatUrl))
else:
tmp_chatMsg = "Recording in progress!"
element.send_keys(tmp_chatMsg)

chat_send.click()

if args.chat:
Expand Down

0 comments on commit 934ff8e

Please sign in to comment.