BigBlueButton在不同的会议上动态更改品牌,而无需每次都更改文件



我在一台服务器上托管了BigBlueButton,我需要组织多个会议,但是我需要不同的品牌,如徽标和背景颜色,以随着每次会议而改变,那么有什么方法可以用BigBlueButton做这件事吗?

您可以通过在加入会议请求 URL 中添加查询参数 (userdata-customStyle( 来动态更改背景颜色。您可以在给定的链接用户数据参数中看到更多参数。 我正在使用绿灯,所以我正在共享一个代码块,该代码块动态设置背景颜色并将其添加到"加入会议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

最新更新