Contents |
Variables are attributes that can be set and unset either from within Dise or by a Remote Control command, coming from outside. They can be investigated by Dise, allowing you to trigger content based on context and/or events. For instance, a certain content will play only if a variable called "MaleAged50" is set. Contrary to network messages, variables are persistent and will remain even after a computer restart.
In the Variables tab in the Dise Replay Preferences, you may set an unlimited number of permanent variables.
When Replay starts it will reset the variables, even if they are previously removed. This allows you to specify, for example, that this player is a conference room by defining a "ConferenceRoom" variable.
You can have a scene set variables when it is visible by selecting Movie > Edit scene preferences... from the system menu or by right-clicking the scene and select Edit scene preferences..., then go to the Advanced tab.
Objects may also set variables when visible, by selecting Edit > Experimental > Object playback commands....
Add these variables when the scene/object is visible
It is possible to set variables by sending a Remote control message to the player, for instance using Dise Parser.
| Command | Parameter(s) | Description | Full command example |
|---|---|---|---|
| AddVariable | Variable name | Set a variable by the specified name (temporary). | 20120315150333|Parser|AddVariable|MaleAged50 |
| RemoveVariable | Variable name | Unset the variable by the specified name (will only remove dynamic variables). | 20120315150335|Parser|RemoveVariable|MaleAged50 |
You can set variables by accessing the player by using its HTTP API.
Variables are scheduled on from the Misc tab in the Edit schedule dialog. Check Variables and add new condition by clicking on the plus button.
Any object, scene, Dise Movie or channel can be scheduled on variables.
You can combine several variables by adding them to the list. For example, a certain "ConferenceLunch" channel might only be triggered on players with the two variables "ConferenceRoom" and "WithRestaurant" set.