new StartController()
In the demo application, the StartController is the primary
controller used for the 'start' state. This controller checks that the
Max helper application is responsive, and blocks participants from
continuing in the session if Max is not responsive.
Namespaces
Members
errorTimeout :$q.Promise
When the controller is instantiated, this timeout is set. The timeout waits ten seconds for Max to respond that it is ready. If Max does not respond within this time, an error is shown to the user.
Type:
- $q.Promise
Methods
sendExperimentStartMessage() → {undefined}
Send a message to the server indicating that the client is ready
to start the experiment. This method sets Angular.StartController#$scope.maxReady to false before sending
the message.
Returns:
- Type
- undefined
startMessageListener(msg) → {undefined}
This method is called when the server fires the
OSC service receives a message with the address
/eim/status/startExperiment
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
Object | The data sent with the event |
- Source:
- See:
Returns:
- Type
- undefined