Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigBlueButton LiveStreaming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sergio Vergata
BigBlueButton LiveStreaming
Commits
94e4540a
Commit
94e4540a
authored
4 years ago
by
Samuel MARTIN MORO
Browse files
Options
Downloads
Patches
Plain Diff
feat(chat-message): chat.py equivalent
parent
29cd9c6c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
chat.py
+9
-2
9 additions, 2 deletions
chat.py
examples/.env.chat_example
+1
-1
1 addition, 1 deletion
examples/.env.chat_example
examples/docker-compose.yml.chat_example
+1
-1
1 addition, 1 deletion
examples/docker-compose.yml.chat_example
with
11 additions
and
4 deletions
chat.py
+
9
−
2
View file @
94e4540a
...
@@ -85,8 +85,15 @@ def bbb_browser():
...
@@ -85,8 +85,15 @@ def bbb_browser():
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
WebDriverWait
(
browser
,
selenium_timeout
).
until
(
element
)
WebDriverWait
(
browser
,
selenium_timeout
).
until
(
element
)
browser
.
find_element_by_id
(
'
message-input
'
).
send_keys
(
"
Viewers of the live stream can now send messages to this meeting
"
)
browser
.
find_elements_by_css_selector
(
'
[aria-label=
"
Send message
"
]
'
)[
0
].
click
()
element
=
browser
.
find_element_by_id
(
'
message-input
'
)
chat_send
=
browser
.
find_elements_by_css_selector
(
'
[aria-label=
"
Send message
"
]
'
)[
0
]
# ensure chat is enabled (might be locked by moderator)
if
element
.
is_enabled
()
and
chat_send
.
is_enabled
():
tmp_chatMsg
=
os
.
environ
.
get
(
'
BBB_CHAT_MESSAGE
'
,
"
Viewers of the live stream can now send messages to this meeting
"
)
if
not
tmp_chatMsg
in
[
'
false
'
,
'
False
'
,
'
FALSE
'
]:
element
.
send_keys
(
tmp_chatMsg
)
chat_send
.
click
()
redis_r
=
redis
.
Redis
(
host
=
args
.
redis
,
charset
=
"
utf-8
"
,
decode_responses
=
True
)
redis_r
=
redis
.
Redis
(
host
=
args
.
redis
,
charset
=
"
utf-8
"
,
decode_responses
=
True
)
redis_s
=
redis_r
.
pubsub
()
redis_s
=
redis_r
.
pubsub
()
...
...
This diff is collapsed.
Click to expand it.
examples/.env.chat_example
+
1
−
1
View file @
94e4540a
...
@@ -17,4 +17,4 @@ BBB_REDIS_CHANNEL=chat
...
@@ -17,4 +17,4 @@ BBB_REDIS_CHANNEL=chat
# Username for the chat (default: 'Chat')
# Username for the chat (default: 'Chat')
BBB_CHAT_NAME=Chat
BBB_CHAT_NAME=Chat
# Message to post in BBB Chat when joining a conference
# Message to post in BBB Chat when joining a conference
BBB_CHAT_MESSAGE=
This meeting is streamed to
BBB_CHAT_MESSAGE=
Viewers of the live stream can now send messages to this meeting
This diff is collapsed.
Click to expand it.
examples/docker-compose.yml.chat_example
+
1
−
1
View file @
94e4540a
...
@@ -21,7 +21,7 @@ services:
...
@@ -21,7 +21,7 @@ services:
# show chat in live stream
# show chat in live stream
- BBB_SHOW_CHAT=false
- BBB_SHOW_CHAT=false
# Message to post in BBB Chat when joining a conference
# Message to post in BBB Chat when joining a conference
- BBB_CHAT_MESSAGE=
This meeting is streamed to
- BBB_CHAT_MESSAGE=
Viewers of the live stream can now send messages to this meeting
# Set REDIS host (default: 'redis')
# Set REDIS host (default: 'redis')
- BBB_REDIS_HOST=redis
- BBB_REDIS_HOST=redis
# Set REDIS channel to subscribe (default: 'chat')
# Set REDIS channel to subscribe (default: 'chat')
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment