Cinema8 creative studio allows you to develop video interactions without writing code with drag-and-drop tools, You can still create variables in the video, fill these variables from integrations or widgets you have developed, and build algorithms over these variables.
There are many points that you can create a new variable or edit an existing one ;
By default, every question widget in the creative studio is a variable with its defined name. The answers of the users are stored within this variable.
Also if a user is authenticated while watching the video, the video runtime has a pre-defined variable with the name "authenticatedUser".
You can access this data within any text property or HTML element.
Access authenticatedUser within HTML elements.
Access authenticatedUser within js code.
1- Within Creative Studio every element triggers onStart , onEnd, and OnClick functions , these functions has a standard action list ,
"Set Variable" action in this action list can create a new variable or edit an existing variable.
Figure-1 triggers two actions on onClick function , first action sets the variable value ;
- score = 10
Second action adds "5" points to score
This syntax works in all text properties of interactive elements (HTML widget , and widget library)