我在一台服务器上托管了 BigBlueButton,我需要组织多个会议,但我需要不同的品牌,如徽标和背景颜色,以便在每次会议时改变,那么有没有办法用 BigBlueButton 来做这件事?
小智 5
您可以通过在加入会议请求 url 中添加查询参数 (userdata-customStyle) 来动态更改背景颜色。您可以在给定的链接userdata 参数中看到更多参数。 我正在使用绿灯,所以我正在共享一段代码,它动态设置背景颜色并将其添加到“加入会议 URL”的查询参数中,我认为这会对您有所帮助。
def join_path(room, name, options = {}, uid = nil)
# Create the meeting, even if it's running
start_session(room, options)
# Determine the password to use when joining.
password = options[:user_is_moderator] ? room.moderator_pw : room.attendee_pw
# Generate the join URL.
join_opts = {}
join_opts[:userID] = uid if uid
join_opts[:join_via_html5] = true
join_opts[:guest] = true if options[:require_moderator_approval] && !options[:user_is_moderator]
print "------------------------- Background color----------------------------- \n"
if room.background_color
bg_color = "body { background-color: "+ room.background_color.to_s
bg_color += "!important;}"
else
"body { background-color: #06172A !important;}"
end
print bg_color
join_opts[:"userdata-customStyle"] = bg_color
bbb_server.join_meeting_url(room.bbb_id, name, password, join_opts)
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
812 次 |
| 最近记录: |