Skip to content

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
{
    "_id": "5d9f3427238f9f0e53b030f1",
    "name": "My Show",
    "path": "/",
    "settings": {
        "playlists": {
            "byDate": false
        },
        "macros": []
    },
    "createdAt": "2019-10-10T13:37:43.176Z",
    "updatedAt": "2020-01-12T10:14:40.278Z"
}

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
{
    "_id": "5d9f3427238f9f0e53b030f4",
    "show": "5d9f3427238f9f0e53b030f1",
    "name": "My Playlist",
    "items": [],
    "createdAt": "2019-10-10T13:37:43.323Z",
    "updatedAt": "2019-10-10T13:37:43.323Z"
}

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
[
    {
        "_id": "6427b9e1f0c33a0012a4b7d0",
        "type": "PAGE",
        "page": "5dfb9c9f9848650d632b024f",
        "color": "#FF8800"
    },
    {
        "_id": "6427b9e1f0c33a0012a4b7d1",
        "type": "GROUP",
        "name": "Openers",
        "items": []
    }
]

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
{
        "_id": "5df89437071dca32b3b533d4",
        "aspect": 1.7777777777777777,
        "system": "VIZRT",
        "path": "Vizrt/myTemplate",
        "mode": "TEMPLATE",
        "model": {
            "system": {
                "container": "$object",
                "layer": "MAIN_LAYER"
            },
            "fields": []
        },
        "name": "MyTemplate",
        "show": "5d9f3427238f9f0e53b030f2",
        "createdAt": "2019-12-17T08:39:19.346Z",
        "updatedAt": "2019-12-17T08:39:19.346Z",
    }

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
{
    "_id": "5dfb9c9f9848650d632b024f",
    "show": "5d9f3427238f9f0e53b030f2",
    "playlists": ["5d9f3427238f9f0e53b030f4"],
    "name": "My Page",
    "num": "1001",
    "fields": [
        {
            "id": "01",
            "value": "Title"
        },
        {
            "id": "03",
            "value": "Title"
        }
    ],
    "template": "5dc3e8bcdd42b5ae0f82b5ea",
    "createdAt": "2019-12-19T15:51:59.210Z",
    "updatedAt": "2019-12-19T15:51:59.210Z"
}

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
{
        "_id": "5df8955a071dca32b3b533e5",
        "type": "SNAPSHOT",
        "name": "My Engine",
        "system": "CASPAR_CG",
        "port": 5250,
        "path": "/",
        "data": {
            "channel": 1
        },
        "address": "127.0.0.0",
        "createdAt": "2019-12-17T08:44:10.981Z",
        "updatedAt": "2019-12-17T08:44:10.981Z",
    }

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
{
    "_id": "5e1b3fe7c6e1457e208d1185",
    "name": "My Profile",
    "channels": [],
    "path": "/",
    "createdAt": "2020-01-12T15:48:55.650Z",
    "updatedAt": "2020-01-12T15:48:55.650Z",
}

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
{
    "engines": [
        "5dc18eefe514176cabab8357",
        "5df75f311c7ef778028f65d2"
    ],
    "_id": "5e1b42a9c6e1457e208d1187",
    "name": "My Channel",
    "type": "PROGRAM"
}

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
{
    "_id": "5e1b3fe7c6e1457e208d1190",
    "username": "jsmith",
    "name": "John Smith",
    "roles": [
        "studio"
    ],
    "permissions": [],
    "settings": {},
    "createdAt": "2020-01-12T15:48:55.650Z",
    "updatedAt": "2020-01-12T15:48:55.650Z",
    "_type": "USER"
}

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
{
    "_id": "5e1b3fe7c6e1457e208d11a2",
    "name": "studio",
    "permissions": [
        {
            "folders": [],
            "permissions": [
                "SHOWS.READ",
                "PAGES.CREATE"
            ]
        }
    ],
    "builtIn": true
}

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.