While running, Cenario content detects if it is iframed within another project, for example in a Lectora, Captivate, or Storyline course, and posts messages to its parent detailing what is happening in the content. All messages are posted as JSON, and are indexed by the “type” data member. The following messages are passed:
ATTEMPTED
Sent once at the start of a session
- type - cenariovr:attempted
- scenario - (name of scenario)
EXPERIENCED
Sent for each time a scene is visited
- type - cenariovr:experienced
- scenario - (name of scenario)
- scene - (name of scene)
- duration - (# of seconds in scene)
CLICKED
Sent each time an object is clicked on in a scene
- type - cenariovr:clicked
- scenario - (name of scenario)
- scene - (name of scene)
- object - (name of object clicked on)
ANSWERED
Sent each time a question is answered
- type - cenariovr:answered
- scenario - (name of scenario)
- scene - (name of scene)
- questname- (name of question)
- questtext - (text of question)
- choicetext - (text of selected choice)
- iscorrect - (true or false)
- duration - (# of seconds to answer question)
UPDATED
Sent each time a variable is updated
- type - cenariovr:updated
- scenario - (name of scenario)
- scene - (name of scene)
- variable - (name of variable)
- value - (value of variable)
FINISH
Sent once at the completion of a session
- type - cenariovr:finish
- scenario - (name of scenario)
- score - (percentage relative to 100)
- result - (completed,passed,failed)
- duration - (# of seconds to complete scenario)
- variables - (an array of name value pairs)
- ~~name - (name of variable)
- ~~value - (value of variable)