fetchMaestroModule()
Creates the modules configured for the current event, such as the What Just Happened pill, for your channel to mount.
Syntax
modules = m.maestro.callFunc("fetchMaestroModule")
Parameters
This function takes no parameters.
Returns
roArray of module nodes; an empty array when no module is configured, before the panels are built, or on a page
with several events.
Example
sub onMaestroPanelsBuilt()
removeMaestroModules() ' each call returns new nodes
for each moduleNode in m.maestro.callFunc("fetchMaestroModule")
for each field in moduleNode.fieldsToObserve
moduleNode.observeFieldScoped(field, "onMaestroModuleEvent")
end for
m.top.appendChild(moduleNode)
m.modules.push(moduleNode)
end for
end sub
Notes
- Call it from your
panelsBuiltobserver, which fires on every panel build. - Each call creates new nodes: remove the ones you mounted before.
- Observe every field in a module's
fieldsToObserve, and position it over your video. - A module's timers start when this function returns it: mounting late delays its first appearance.
- The module fields and how to answer them: Panel Integration.