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

BigBlueButton change branding dynamically on different conference without changing files every time

我将 BigBlueButton 托管在一台服务器上,我需要组织多个会议,但我需要不同的品牌,例如徽标和背景颜色,以便在每次会议时进行更改,那么有什么方法可以使用 BigBlueButton 来完成这件事吗?

您可以通过在加入会议请求 url 中添加查询参数 (userdata-customStyle) 来动态更改背景颜色。您可以在给定的 link userdata parameters. 中看到更多参数 我正在使用 greenlight,所以我分享了一段动态设置背景颜色并将其添加到 'join meeting 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