Models
This page describes the JSON structure for each of the components in the Erizos Studio Enviroment.
Shows
A Show is an object in Erizos Studio that represents a collection of playlists and templates.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the show |
| name | String | The name of the show |
| path | String | The folder the show lives in, in Show Manager. Defaults to / |
| settings | Object | Show settings: playlists (byDate, switchTime, autoDelete), macros (a list of {shortcut, title, command}) and owner (set when the show is managed by MOS or Branding) |
| createdAt | Date | Date and time the show was created |
| updatedAt | Date | Date and time the show was last updated |
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Playlists
A Playlist is an object that represents a collection of pages.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the playlist |
| show | Uuid | The id of the show the playlist belongs to |
| name | String | The name of the playlist |
| items | Array | A list of playlist items |
| source | Object | Set when the playlist is fed by an external system, such as MOS or Branding |
| lastPageId | Integer | The page number of the last page added to the playlist. The next automatically allocated page number continues from here |
| createdAt | Date | Date and time the playlist was created |
| updatedAt | Date | Date and time the playlist was last updated |
Example Model
1 2 3 4 5 6 7 8 | |
Playlist Items
A playlist holds a tree of items. An item is either a PAGE, which points at a page, or a GROUP, which holds nested items of its own.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the item inside the playlist |
| type | PAGE/GROUP | PAGE: an item pointing at a page GROUP: a folder holding nested items |
| name | String | The name of the item. Used for groups |
| page | Uuid | The id of the page, for PAGE items |
| items | Array | Nested items, for GROUP items |
| ref | String | External reference, used by MOS and Branding |
| color | String | The colour of the item in the playlist |
| startTime | Date | Scheduled start time |
| offset | Integer | Offset from the start time |
| duration | Integer | Duration of the item |
| storyNum | String | Story number, used by MOS |
| played | Boolean | Whether the item has been played |
| meta | Object | Additional metadata |
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Templates
A Template is an object that represents a graphic scene, it describes the model of the scene and additional data.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the template |
| aspect | Float | The aspect ratio of the scene, default 16/9 |
| system | System | The system the template was created on |
| path | String | The path to the template on the storage system |
| mode | Template Type | The kind of template |
| model | Object | A description of the template model: system (system-specific data), fields (a list of fields), and optionally group, snapshots, hidden and thumbnail |
| name | String | The name of the template |
| show | Uuid | The id of the Show the template belongs to |
| channel | String | The channel this template is played out on, when it overrides the profile's channel |
| color | String | The colour of the template in the Template list |
| layer | String | The layer the template is played on |
| hidden | Boolean | Whether the template is hidden in Studio |
| id | String | Only set for the templates inside a COMBO template, to identify each part |
| createdAt | Date | Date and time the template was created |
| updatedAt | Date | Date and time the template was last updated |
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Fields
A Field describes one editable property of a template. Fields nest: a field with children is a container for the fields under it.
| Parameter | Value | Description |
|---|---|---|
| id | String | The id of the field. A page refers to a field by this id |
| title | String | The label shown in Studio |
| type | Field Type | The kind of value the field holds |
| value | Any | The default value |
| meta | Object | Type-specific configuration, for example the options of an OPTIONS field |
| fields | Array | Nested fields |
| channel | String | For a layer field: the channel the layer is played out on |
| color | String | For a layer field: the colour shown in Studio |
| hidden | Boolean | For a layer field: whether the layer is hidden |
| layer | String | For a layer field: the layer name |
Pages
A Page represents an instance of a template, it stores the payload used to populate the template.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The Uuid of the page |
| show | Uuid | The Uuid of the show the page belongs to |
| playlists | Array | The Uuids of the playlists the page belongs to. Empty when the page is not in a playlist. 3.7 and later: up to 3.6 a page has playlist instead, a single Uuid |
| name | String | The name of the page |
| num | String | The page number inside the playlist |
| description | String | A free-text description of the page |
| summary | String | A short summary of the page |
| fields | Array | A list of field values, each {id, value, binding, fields}, where id matches a field of the template |
| template | Uuid | The Uuid of the template the page was created from |
| channel | String | Overrides the channel the page is taken on |
| layer | String | Overrides the layer the page is played on |
| source | Object | Set when the page comes from an external system, such as MOS or a data feed. Also carries favorite |
| externalData | Object | Free-form data attached to the page by an external system |
| createdAt | Date | Date and time the page was created |
| updatedAt | Date | Date and time the page was last updated |
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Engines
An Engine represents a render engine, it stores the connection details and additional data to allowing sending graphic commands for output control.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the engine |
| type | OutputType | The type of the engine |
| name | String | The name of the engine |
| system | System | The system of the render engine |
| address | String | The IP address or hostname to connect to the render engine |
| port | Integer | The port number used to connect to the render engine |
| path | String | The folder the engine lives in. Defaults to / |
| disabled | Boolean | When set, the engine is not used for output |
| data | Object | Additional metadata used to connect to the engine |
| createdAt | Date | Date and time the engine was created |
| updatedAt | Date | Date and time the engine was last updated |
| connected | Boolean | If Erizos Studio can currently connect to the render engine |
Note
connected, together with agent, cache and pages, is runtime state. It is added to the response by the server and is not stored in the database, so it cannot be set when creating or updating an engine.
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Profiles
A Profile is a collection of channels that contain the output engines.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the profile |
| name | String | The name of the profile |
| channels | Array | An array of channels of the profile |
| path | String | The folder the profile lives in. Defaults to / |
| createdAt | Date | Date and time the profile was created |
| updatedAt | Date | Date and time the profile was last updated |
Example Model
1 2 3 4 5 6 7 8 | |
Channels
A Channel is a collection of output engines. A channel is a member of a profile.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the channel |
| name | String | The name of the channel |
| engines | Array | An array of Engine ids |
| type | ChannelType | Defines if the channel is a program or preview channel |
Example Model
1 2 3 4 5 6 7 8 9 | |
Users
A User is an account that can sign in to Studio. See Users.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the user |
| username | String | The login name. Stored lower-case and unique. It cannot be changed once the user is created |
| name | String | The display name of the user |
| roles | Array | A list of user role names |
| permissions | Array | Permissions granted to this user directly, on top of the roles. Each entry is {folders: [], permissions: []} |
| avatarConfig | Object | Configuration of the generated avatar |
| settings | Object | The user's Studio settings: the last used profile, show, playlist, together with ui, layout, layouts, playlistColumns, studio, browse, shortcuts, macros, previews and branding |
| createdAt | Date | Date and time the user was created |
| updatedAt | Date | Date and time the user was last updated |
password and salt are stored on the user but are always removed from the response. The response adds permissionSet, a map of folder to the permissions the user has there, resolved from the user's roles and own permissions.
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
User Role
A User Role is a named set of permissions. Roles are documents of their own, managed through User Roles, and a user refers to them by name.
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the role |
| name | String | The name of the role. Stored lower-case and unique |
| permissions | Array | A list of {folders: [], permissions: []}. An entry with an empty folders list grants its permissions everywhere; otherwise it grants them only under the listed folder paths |
| builtIn | Boolean | Set on the roles Studio creates itself. |
| createdAt | Date | Date and time the role was created |
| updatedAt | Date | Date and time the role was last updated |
Studio creates three built-in roles on startup:
| Name | Description |
|---|---|
administrator |
Full access, including the Admin pages and every route marked as requiring Admin rights |
studio |
Every Studio permission |
nrcs |
Read profiles, read and change shows, and full access to pages. Used by the newsroom integration |
Example Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Primitive Types
Uuid
A unique system identifier, Uuid is a string made of 24 hexadecimal characters
ID
Either a uuid or the path and name of the object.
A name lookup is only available on the collections whose routes support it: shows, profiles, engines, users, global variables, data sources and branding channels. Pages, playlists and templates can only be addressed by uuid.
When specifying a name, Studio splits the value on /: the last segment is matched against the object's name case-insensitively, and everything before it against the object's path. A bare name therefore only matches objects that live in the root folder. To address a show called News in the folder /NY, use NY/News (URL-encoded as NY%2FNews).
Date
All dates are in the format of YYYY-MM-DDTHH:MM:SS.sssZ
_type
Every document returned by the API carries a _type property holding the name of its collection in upper case, for example SHOW, PAGE or USER. Documents read straight from the database also carry Mongo's __v version key.
Enumerations
System
| Value | Description |
|---|---|
| NONE | No system |
| MIXED | A template made of parts belonging to more than one system |
| COMPOSER | Erizos Composer |
| UE | Unreal Engine |
| PIXOTOPE | Pixotope |
| VIZRT | Viz Engine |
| SINGULAR | Singular.live |
| CASPAR_CG | CasparCG |
| OSC | OSC |
| GENERIC | Generic system |
Template Type
The kind of template
| Value | Description |
|---|---|
| TEMPLATE | A stand alone template |
| LAYERS | A template that has child layers |
| COMBO | A template combining several other templates |
| COMMAND | A template that sends a command rather than graphics |
| MEDIA | A media clip |
| NONE | No type |
Field Type
The kind of value a field holds
| Value | Value | Value | Value |
|---|---|---|---|
| NONE | BOOLEAN | INTEGER | DOUBLE |
| STRING | TEXT | COLOR | IMAGE |
| VIDEO | AUDIO | MEDIA | CLOCK |
| VERTEX2D | VERTEX3D | DATETIME | ACTION |
| OPTIONS | LAYER | TABLE |
Output Type
The type of a render engine
| Value | Description |
|---|---|
| OUTPUT | Regular engine (default) |
| SNAPSHOT | Provides preview snapshots |
Channel Type
| Value | Description |
|---|---|
| NONE | No type. The channel is only used when addressed by name |
| PREVIEW | Preview Channel |
| PROGRAM | Program Channel |
| LOCAL_PREVIEW | The local preview engine running on the operator's own machine |
| ALL | Not a channel type a channel is stored with. [ALL] may be used as the channel segment of an on-air action to address every channel of the profile at once |
Note
A profile has at most one PROGRAM channel and one PREVIEW channel. Setting one of those types on a channel clears it from the channel that had it.