SetOnProjectInitialised

You can subscribe to this event and being notified when the connection and initialisation is fully completed. Don’t make any calls to sym3.js functions other than CreateSym3 and the various SetOn* methods (like this one) until you’ve received this callback event.

Event callback

OnProjectInitialised(
    projectName: string, 
    projectGuid: string, 
    protocolVersion: string, 
    stateVersion: string, 
    cameraNames: string array)

Parameters

  • projectName (string): name of project on server side.
  • projectGuid (string): global unique ID of project on server side.
  • protocolVersion (string): protocol version.
  • stateVersion (string): state version.
  • cameraNames (string array): an array that contains all camera names.

Examples

Subscribes to the event, and changes the current camera once the project is loaded.

SYM3.SetOnProjectInitialised(onProjectInitialised);

function onProjectInitialised(projectName, projectGuid, protocolVersion, stateVersion, cameraNames)
{
    SYM3.SetCamera("Camera1");
}