beautypg.com

Rosyncmanagerevent, Ifsyncmanagerevent – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 243

background image

235

roSyncManagerEvent

These events are generated on slave units in response to

roSyncManager.Synchronize()

calls from the master unit. The

roSyncManager on each slave unit will handle message duplicates, so the script will receive the sync message only once
during normal operations.

If the slave unit is already booted up, then the event will arrive from the first network event generated by
roSyncManager.Synchronzie(). On the other hand, if the slave unit is booted up while the master is in the middle of
playing a video file or displaying an image file, then one of the message resends (generated at one second intervals by
the master unit) will trigger the event. The script passes on the data from the event to the

PlayFile()

command of the

video player or the

DisplayFile()

command of the image player, which will then determine how far forward in the file it

needs to seek.

Interfaces: ifUserData, ifSyncManagerEvent

The ifUserData interface provides the following:

SetUserData(user_data As Object): Sets the user data that will be returned when events are raised.

GetUserData() As Object: Returns the user data that has previously been set via SetUserData(). It will
return Invalid if no data has been set.

The ifSyncManagerEvent interface provides the following:

GetDomain() As String: Returns the domain of the sync group, which is specified during creation of
the

roSyncManager

object on the master unit.

GetId() As String: Returns the identifier of the event.

GetIsoTimestamp() As String: Returns the timestamp of the event in ISO format.