...
and custom values from custom-created metadata presets. Samples can be found below.
Internal Metadata Values
Code Example
Below example code for creating an overlay with the currently set Channel Name.
Code Block | ||
---|---|---|
| ||
{ "components": [ { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 260, "h": 50, "font": { "name": ".SFNS-Regular", "size": 40 }, "x": 50, "outline-width": -1, "y": 50, "draws-background": true, "hidden-when-empty": false, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "metadata-value": { "prefix": "", "accepts-number": true, "key": "Just_In_Channel_Name", "type": "datavalue", "accepts-string": true, "retain-previous-on-empty": true, "minimum-integer-digits": 0, "maximum-integer-digits": 42, "minimum-fraction-digits": 0, "maximum-fraction-digits": 1 }, "type": "text", "corner-radius": 0, "alpha": 1, "layer": 1, "hidden": false, "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 }, "alignment": 1 } ], "async-data-updates": false } |
Result
...
Download
The example JSON code can be downloaded here.
View file | ||
---|---|---|
|
Custom Metadata Values
With custom metadata values, overlays can access metadata fields from within custom-created Metadata Presets. In the example below, the overlay field accesses the “Quality” value of the chosen Metadata Preset.
...
Code Example
Code Block | ||
---|---|---|
| ||
{ "components": [ { "insets": { "bottom": 0, "top": 0, "left": 0, "right": 0 }, "w": 175, "h": 50, "font": { "name": ".SFNS-Regular", "size": 40 }, "x": 50, "outline-width": -1, "y": 50, "draws-background": true, "hidden-when-empty": false, "background-colour": { "r": 0, "b": 0, "g": 0, "a": 0.5 }, "metadata-value": { "prefix": "", "accepts-number": true, "key": "quality", "type": "datavalue", "accepts-string": true, "retain-previous-on-empty": true, "minimum-integer-digits": 0, "maximum-integer-digits": 42, "minimum-fraction-digits": 0, "maximum-fraction-digits": 1 }, "type": "text", "corner-radius": 0, "alpha": 1, "layer": 1, "hidden": false, "outline-colour": { "r": 0, "b": 0, "g": 0, "a": 1 }, "text-colour": { "r": 1, "b": 1, "g": 1, "a": 1 }, "alignment": 1 } ], "async-data-updates": false } |
Result
...
Download
The example JSON code can be downloaded here.
...