Skip to main content

config

Description

The primary configuration object that triggers Maestro config fetch. This object is passed directly into each panel.

Type

assocArray

Usage

m.lib.config = {
siteID: "your-site-id",
eventID: "your-event-id",
pageID: "your-page-id",
authToken: "user-auth-token",
swid: "user-id",
useProdEnv: true
}

Config Fields

Config KeyTypeRequiredDescription
siteIDstringYesEnvironment identifier (client-level)
eventIDstringNoLive or VOD event identifier
pageIDstringNoID associated with a Maestro Page
authTokenstringNoUser auth token
swidstringNoUser ID
useProdEnvbooleanyesChoose production or QA API environment
note

The config object can be passed any parameter. This object is passed directly into each panel. Each panel will have different requirements—it's up to you to pass what's needed. siteID is the only required parameter.

danger

Always set all configurable fields BEFORE setting config. The config triggers API requests — any missing fields will not be applied afterward.

Example

sub onLibraryLoadStatusChanged()
if m.componentLibrary.loadStatus = "ready"
m.lib = createObject("roSGNode", "MaestroPanelLib:MaestroPanel")

' Set other configurable fields first
m.lib.width = 1280
m.lib.height = 720
m.lib.displayQRCodes = true

' Set config last to trigger initialization
m.lib.config = {
siteID: "your-site-id",
eventID: "your-event-id",
useProdEnv: true
}

m.top.appendChild(m.lib)
end if
end sub