SDK functions
SingularGraphics(domElement)
const overlay = SingularGraphics("SingularOverlay");Attributes
Type
Required
Description
SDK properties
Name
Type
Example
Description
const compMain = overlay.getMainComposition();
console.log("compMain =", compMain);Return
> addListener: ƒ (event, callback)
> getAdaptationGlobals: ƒ ()
> getCompositionById: ƒ (compId)
> getCompositionInfo: ƒ ()
> getConfig: ƒ ()
> getMainComposition: ƒ ()
> getSequencer: ƒ ()
> host: "https://app.singular.live"
> id: "SingularOverlay"
> loadComposition: ƒ loadComposition(compositionId, cb)
> noTrack: ƒ ()
> onmessage: ƒ (e)
> removeAllListener: ƒ ()
> removeListener: ƒ (event, callback)
> renderAppOutput: ƒ renderAppOutput(appId, output, cb)
> renderComposition: ƒ renderComposition(compositionObject, cb)
> setAdaptationGlobals: ƒ setAdaptationGlobals(data)
> setConfig: ƒ (_config)
> setFrameNumber: ƒ setFrameNumber(frame)
> videoCommand: ƒ videoCommand(cmd, time)SDK functions
Method
Return type
Description
addListener
Attributes
Description
Type
Required
Values for listener type
typeSetting
Description
payload_changed
Attributes
Type
Description
datanode_payload_changed
Attributes
Type
Description
state_changed
Attributes
Type
Description
message
Attributes
Type
Description
error
Attributes
Type
Description
getAdaptationGlobals
Return
See also
getCompositionById
Parameters
Name
Type
Description
Return
See also
getCompositionInfo
Return
getConfig
Return
getMainComposition
Return
See also
getSequencer
Return
loadComposition
Attributes
Type
Required
Description
noTrack
onmessage
removeAllListener
See also
removeListener
Attributes
Type
Required
Description
Values for listener type
typeSetting
Description
See also:
renderAppOutput
Attributes
Type
Required
Description
Sample
renderComposition
Attributes
Type
Required
Description
Sample
setAdaptationGlobals
See also
setConfig
setFrameNumber
videoCommand
Last updated