Skip to main content

Content model

Every screen shows the result of a chain of resources. Knowing the chain makes it easy to predict what a change will affect.

Media and feedsRaw materialWidgetsHow to show itPlaylists and layoutsIn what order and whereChannelsWhenDevicesOn which screen

Resources​

ResourceWhat it isContains or refers to
MediaAn uploaded image or video, with generated thumbnails and transcodes—
FeedA list of JSON entries, or one JSON document, written by an external system—
WidgetA template that turns options and data into something on screen, such as an image, a video, a weather forecast or a news tickerMedia, feeds or external data, depending on the widget
PlaylistAn ordered list of items. Each item is a configured widget with a duration and an optional transition.Widgets, and through them media and feeds
LayoutA screen divided into zones—
Layout widgetA playlist item that shows a layout and plays one playlist in each zoneA layout and one playlist per zone
ChannelA weekly calendar of playlists in one timezone, with a default playlist for unscheduled timePlaylists
AutomationA rule that interrupts normal playback with a playlist at set timesPlaylists, devices and channels
DeviceA registered playerOne or more channels
TagA label for finding and filtering resourcesAny resource
TeamA group of users and resourcesUsers and resources

Reuse and change propagation​

Resources are linked by reference, not copied. Change a playlist and every channel that schedules it, every layout zone that plays it and every device that shows those channels gets the change. Players are notified over their WebSocket connection and download the update, usually within seconds.

Because of these references, Castmill stops you from deleting things that are still in use. For example, a playlist that an automation plays cannot be deleted until the automation no longer uses it, and a channel that is the only channel of a device cannot be removed from it.

What a device plays at a given moment​

  1. If an automation for the device or one of its channels is due, its playlist interrupts playback, then normal playback resumes.
  2. Otherwise the player looks at its channels. For each channel, the calendar entry for the current time in the channel's timezone wins; if there is none, the channel's default playlist plays.
  3. If a device has several channels, it plays them in turn: the current playlist of the first channel, then the second channel, and so on. A channel with nothing to play at that moment is skipped.
  4. Each playlist plays its items in order and starts over at the end.

Aspect ratio and orientation​

Playlists and layouts have an aspect ratio, such as 16:9 or 9:16, which the editors use for previews and zone sizes. The device's orientation (0, 90, 180 or 270 degrees) decides how the player rotates its output to match a physically rotated screen. Design portrait content with a portrait aspect ratio and set the device orientation to match how the screen is mounted. See Devices.

Organization boundaries​

All resources belong to one organization. Playlists can only use media, widgets and feeds from the same organization, plus the system widgets that the network makes available. To show the same content in two organizations, upload it to both.