Difference between revisions of "Live Object"
Line 55: | Line 55: | ||
'''Note: The live object is only evaluated if the corresponding content item is visible. If the corresponding content item is visible, the live object is evaluated every second, regardless of the current state. Since version 0.1.74, live objects of type <code>"playback"</code> can also have the state <code>"coming"</code> if the corresponding content item contains the extension property <code>resume:key</code>. Please also note that live objects are evaluated on an overlay/underlay page, even if the overlay/underlay page is hidden.''' | '''Note: The live object is only evaluated if the corresponding content item is visible. If the corresponding content item is visible, the live object is evaluated every second, regardless of the current state. Since version 0.1.74, live objects of type <code>"playback"</code> can also have the state <code>"coming"</code> if the corresponding content item contains the extension property <code>resume:key</code>. Please also note that live objects are evaluated on an overlay/underlay page, even if the overlay/underlay page is hidden.''' | ||
+ | |- | ||
+ | | <code>from</code> || <code>number</code> || <code>0</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The start timestamp of the live object in milliseconds. The value must be greater or equal than <code>0</code>, otherwise it is ignored. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, otherwise this property is ignored.''' | ||
+ | |- | ||
+ | | <code>to</code> || <code>number</code> || <code>0</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The end timestamp of the live object in milliseconds. The value must be greater or equal than <code>0</code> and the start timestamp, otherwise it is ignored. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, otherwise this property is ignored.''' | ||
+ | |- | ||
+ | | <code>duration</code> || <code>number</code> || <code>0</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The duration of the live object in milliseconds. The value must be greater or equal than <code>0</code>, otherwise it is ignored. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"lifetime"</code> or <code>"airtime"</code>, otherwise this property is ignored.''' | ||
+ | |- | ||
+ | | <code>delay</code> || <code>number</code> || <code>0</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The delay of the live object in milliseconds. The value must be greater or equal than <code>0</code>, otherwise it is ignored. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"lifetime"</code>, otherwise this property is ignored.''' | ||
+ | |- | ||
+ | | <code>coming</code> || <code>object</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The state object that contains the live content properties (e.g. <code>title</code>, <code>titleHeader</code>, <code>titleFooter</code>, etc.) and the live action if the live object is in state <code>"coming"</code>. If this object does not contain live content properties, the live content properties from the live object are used. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, otherwise this property is ignored. The live action will only be executed once, if the live object enters the state <code>"coming"</code>. Since version 0.1.74, live objects of type <code>"playback"</code> can also have this property.''' | ||
+ | |- | ||
+ | | <code>running</code> || <code>object</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The state object that contains the live content properties (e.g. <code>title</code>, <code>titleHeader</code>, <code>titleFooter</code>, etc.) and the live action if the live object is in state <code>"running"</code>. If this object does not contain live content properties, the live content properties from the live object are used. | ||
+ | |||
+ | This object can also contain following sub-state objects to use separate live content properties for specific quartiles. | ||
+ | |||
+ | * <code>quartile1</code>: This sub-state object is used if the progress is in range of 0.0 to 0.25. | ||
+ | * <code>quartile2</code>: This sub-state object is used if the progress is in range of 0.25 to 0.5. | ||
+ | * <code>quartile3</code>: This sub-state object is used if the progress is in range of 0.5 to 0.75. | ||
+ | * <code>quartile4</code>: This sub-state object is used if the progress is in range of 0.75 to 1.0. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, <code>"lifetime"</code>, <code>"airtime"</code>, or <code>"playback"</code>, otherwise this property is ignored. The live action will only be executed once, if the live object enters the state <code>"running"</code>. The sub-state objects do not support live actions. Since version 0.1.74, live objects of type <code>"playback"</code> can also contain the sub-state objects inside the <code>coming</code> property.''' | ||
+ | |- | ||
+ | | <code>over</code> || <code>object</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The state object that contains the live content properties (e.g. <code>title</code>, <code>titleHeader</code>, <code>titleFooter</code>, etc.) and the live action if the live object is in state <code>"over"</code>. If this object does not contain live content properties, the live content properties from the live object are used. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, <code>"lifetime"</code>, <code>"airtime"</code>, or <code>"playback"</code>, otherwise this property is ignored. The live action will only be executed once, if the live object enters the state <code>"over"</code>.''' | ||
+ | |- | ||
+ | | <code>execute</code> || <code>object</code> || <code>null</code> || No || data-sort-value=74|'''0.1.74''' || | ||
+ | The execution object that contains the live action that is executed if the corresponding content action is set to <code>"live"</code> and the corresponding content item is executed. | ||
+ | |||
+ | '''Note: To use this property, the <code>type</code> property must be set to <code>"schedule"</code>, <code>"lifetime"</code>, <code>"airtime"</code>, or <code>"setup"</code>, otherwise this property is ignored. If this property is set inside a state object (i.e. <code>coming</code>, <code>running</code>, or <code>over</code>), it is used (instead of this one) if the live object has the corresponding state.''' | ||
+ | |- | ||
+ | | <code>color</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |- | ||
+ | | <code>title</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>title</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>titleHeader</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>titleHeader</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>titleFooter</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>titleFooter</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>label</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>label</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>icon</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |||
+ | '''Note: Only if the <code>icon</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>headline</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>headline</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>text</code> || <code>string</code>{{pipe}}<code>array</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>text</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>tag</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>tag</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>tagColor</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |- | ||
+ | | <code>badge</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | This property supports live inline expressions. For more information, please see [[Live Inline Expressions]]. | ||
+ | |||
+ | '''Note: Only if the <code>badge</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>badgeColor</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |- | ||
+ | | <code>progress</code> || <code>number</code> || <code>-1</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |||
+ | '''Note: Only if the <code>progress</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated. By default, this property is automatically updated if the live object is in state <code>"running"</code>. If this property is set, it will not be updated automatically. Since version 0.1.74, this property is also automatically updated if the <code>type</code> property is set to <code>"playback"</code> and the corresponding content item contains the extension property <code>resume:key</code>.''' | ||
+ | |- | ||
+ | | <code>progressColor</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |- | ||
+ | | <code>wrapperColor</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |- | ||
+ | | <code>image</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |||
+ | '''Note: Only if the <code>image</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>extensionIcon</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |||
+ | '''Note: Only if the <code>extensionIcon</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>extensionLabel</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live content property of the corresponding content item. | ||
+ | |||
+ | '''Note: Only if the <code>extensionLabel</code> property has been set (to a non <code>null</code> value) in the origin data of the corresponding content item, it can be updated.''' | ||
+ | |- | ||
+ | | <code>action</code> || <code>string</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The live action that is executed if the <code>type</code> property is set to <code>"setup"</code> and the corresponding content item becomes visible. The live action will also be executed if the <code>type</code> property is set to <code>"playback"</code>, the live object is in state <code>"running"</code>, and the corresponding content item is executed. | ||
+ | |||
+ | '''Note: If this property is set inside a state object (i.e. <code>coming</code>, <code>running</code>, or <code>over</code>), it is executed if the live object enters the corresponding state.''' | ||
+ | |- | ||
+ | | <code>data</code> || <code>object</code> || <code>null</code> || No || data-sort-value=70|'''0.1.70''' || | ||
+ | The additional data of the live action that is used if the action is executed. | ||
|} | |} | ||
Revision as of 12:56, 14 January 2021
The live object can be used to periodically update content items (e.g. with live data, playback progress, etc.). It can have following states.
"init"
: The initial state. Possible next states:"coming"
,"running"
, or"over"
."coming"
: The object is not live yet or it was live before and can become live again. Possible next states:"running"
or"over"
."running"
: The object is live. Possible next states:"coming"
or"over"
."over"
: The object is not live anymore. Possible next states:"coming"
or"running"
.
{
"type": "schedule",
"from": 0,
"to": 0,
"duration": 0,
"delay": 0,
"coming": null,
"running": null,
"over": null,
"execute": null,
"color": "msx-glass",
"title": "Item Title",
"titleHeader": "Item Title Header",
"titleFooter": "Item Title Footer",
"label": "Item Label",
"icon": "blank",
"headline": "Item Headline",
"text": "Item Text",
"tag": "Item Tag",
"tagColor": "msx-red",
"badge": "Item Badge",
"badgeColor": "msx-green",
"progress": -1,
"progressColor": "msx-yellow",
"wrapperColor": "msx-blue",
"image": "http://link.to.image",
"extensionIcon": "blank",
"extensionLabel": "Item Extension Label",
"action": null,
"data": null
}
Property | Type | Default Value | Mandatory | Since Version | Description |
---|---|---|---|---|---|
type |
string |
null |
No | 0.1.70 |
The type of the live object. If this property is not set, the current live object is removed.
Note: The live object is only evaluated if the corresponding content item is visible. If the corresponding content item is visible, the live object is evaluated every second, regardless of the current state. Since version 0.1.74, live objects of type |
from |
number |
0 |
No | 0.1.70 |
The start timestamp of the live object in milliseconds. The value must be greater or equal than Note: To use this property, the |
to |
number |
0 |
No | 0.1.70 |
The end timestamp of the live object in milliseconds. The value must be greater or equal than Note: To use this property, the |
duration |
number |
0 |
No | 0.1.70 |
The duration of the live object in milliseconds. The value must be greater or equal than Note: To use this property, the |
delay |
number |
0 |
No | 0.1.70 |
The delay of the live object in milliseconds. The value must be greater or equal than Note: To use this property, the |
coming |
object |
null |
No | 0.1.70 |
The state object that contains the live content properties (e.g. Note: To use this property, the |
running |
object |
null |
No | 0.1.70 |
The state object that contains the live content properties (e.g. This object can also contain following sub-state objects to use separate live content properties for specific quartiles.
Note: To use this property, the |
over |
object |
null |
No | 0.1.70 |
The state object that contains the live content properties (e.g. Note: To use this property, the |
execute |
object |
null |
No | 0.1.74 |
The execution object that contains the live action that is executed if the corresponding content action is set to Note: To use this property, the |
color |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. |
title |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
titleHeader |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
titleFooter |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
label |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
icon |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. Note: Only if the |
headline |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
text |
string |array |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
tag |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
tagColor |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. |
badge |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. This property supports live inline expressions. For more information, please see Live Inline Expressions. Note: Only if the |
badgeColor |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. |
progress |
number |
-1 |
No | 0.1.70 |
The live content property of the corresponding content item. Note: Only if the |
progressColor |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. |
wrapperColor |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. |
image |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. Note: Only if the |
extensionIcon |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. Note: Only if the |
extensionLabel |
string |
null |
No | 0.1.70 |
The live content property of the corresponding content item. Note: Only if the |
action |
string |
null |
No | 0.1.70 |
The live action that is executed if the Note: If this property is set inside a state object (i.e. |
data |
object |
null |
No | 0.1.70 |
The additional data of the live action that is used if the action is executed. |