Generic HTTP Interface
Overview
Catch Control offers an HTTP interface that enables third-party media players to interact with features of the Catch platform, including mobile interactivity and real-time audience measurement.
Communication between the third-party media player and Catch Control is performed locally on the same host machine that the 3rd party media player runs on.
Diagram

Terminology
source
A source is an area of the digital screen that displays content. This is typically the entire screen, as shown in the reference diagram, but is frequently a sub-division of a larger screen, as shown in the image above.
In both cases, a source has a single playstate at a given moment in time.
source identifiers are unique strings containing only the characters 0-9, a-z, A-Z, _and -, and represent an integrator-defined identifier for the source (e.g. a Broadsign Frame ID).
The appropriate identifier to use will vary with each player integration. A manually-generated source identifier will be assigned on test players during development, which is then automated for deployment at scale.
playstate
The current state of a source, including its identifier, and its playlist.
One playstate must be sent to Catch Control each time the on-screen content changes.
playlist
The sequence of items associated with a playstate, in playback order, without gaps, and beginning with the content that is currently on-screen.
For correct operation of the Catch system, a playlist must have at least two items.
content
A single piece of media, identified by a unique string containing only the characters 0-9, a-z, A-Z, _ and -.
This identifier can be allocated explicitly by the integrator, or it could be a surrogate pointing to a third-party system.
For example, Broadsign integrations use the Broadsign "copy ID" as the Content identifier, and integrations backed by Hivestack (Perion) may use the content's Hivestack UUID.
playback
Whenever content finishes playing on-screen, a derived playback is created by Catch Control, sharing the UUID of the originating playlist entry. Along with the source/content information.
A playback is enriched with additional metadata from the Catch Platform, such as audience statistics, and a description of the attached Catchable/Catch Campaign.
HTTP Interface
Catch Control's Generic player implementation exposes an HTTP server at address 127.0.0.1:10000
Sending Playstates
Integrating players must submit one JSON playstate to Catch Control via HTTP POST request each time on-screen content changes.
To ensure the best user experience for Catch Interactivity, the playlist of the playstate must contain at least two items - one for the content currently on screen ("Current Content"), and one for the following piece of content ("Next Content").
One playstate must be provided each time the on-screen content changes within a source. The playstate must include a playlist of at least two entries, representing the current ad, and the one immediately following.
Example Request
POST 127.0.0.1:10000/playstate/v1/
Post Body
Example values below refers to the example in the diagram above
source
string
The source ID associated with the playstate; each source represents a single content feed that is displayed on one or more physical screens.
Catch Control maps Source IDs to their corresponding Catch Stream IDs so that live content updates can be broadcast in real-time over Bluetooth.
During development, source IDs are generated or allocated through co-operation between Catch and the integrator during setup and onboarding.
At scale, this process is automated.
playlist
array
The source's current sequence of media playbacks, represented as an array of entries, in playback order, starting the content that is currently on screen. The array must have no gaps.
playback_instance
string
A UUID uniquely identifying the this playlist item; this UUID must be generated per-playback
end_time
string
the time at which this playback ends; only required/used for the first item in the array. Must be encoded in RFC3339 format to millisecond precision.
content
object
An object describing the media related to this playback instance
id
string
content ID associated with this playlist entry; Catch Control will attempt to map this value to interactivity content defined in OOH Studio.
examples:
- Broadsign Copy ID
- Hivestack Content UUID
duration_ms
int
playlist entry duration in milliseconds
media
object
All data in this object is optional, but recommended.
local_path
string
A complete path to the media resource of this content (e.g Image, Video) that will play on-screen,.
metadata
object
metadata associated with the playback; any values can be provided, with some common keys below
width
Width of the content in pixels
height
Height of the content in pixels
filename
File name of the conent, including the extension. If not provided, the filename will be inferred from any provided local_path
Response Codes
Last updated

