- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Sending Events
You can generate and send your own events from your custom nodes.
For sending an event just call raiseEvent()
with an event you have prepared.
var eventInformation = new EventInformation(
channelIndex,
"accuweather",
"weather",
outData,
eventInformation.StartSampleIndex,
eventInformation.EndSampleIndex,
""
)
raiseEvent(eventInformation);
EventInformation
var EventInformation = function (
ChannelIndex,
ServiceName,
EventName,
Data,
StartSampleIndex,
EndSampleIndex,
GroupId)
Properties:
name | explanation |
---|---|
ChannelIndex | the channel number for this event. |
ServiceName | the name of the service. You can use your node name as the service name. |
EventName | the name of this event |
Data | any additional data in json format |
StartSampleIndex | start sample index of the audio this event corresponds to. This index is relative to the beginning of the session |
EndSampleIndex | start sample index of the audio this event corresponds to. This index is relative to the beginning of the session |
GroupId | groupId for this event |
See here for more info about Data Flow events.
Was this article helpful?