我将BigBlueButton托管在一台服务器上,我需要组织多个会议,但是我需要在每次会议中更改徽标和背景色等不同的商标,那么有什么方法可以对BigBlueButton做到这一点?
您可以通过在加入会议请求URL中添加查询参数(userdata-customStyle)动态更改背景颜色。您可以在给定的链接userdata参数中看到更多参数。我正在使用greenlight,所以我共享一个代码块,该代码块可以动态设置背景色并将其添加到“加入会议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
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句