Analytics

Prev Next

This template leverages the Dise Analytics API to monitor and process playout activity in real-time. The template subscribes to the Analytics API and reacts to the different types of playback-related analytics events: start, end, and data. The current status is displayed in a semi-transparent overlay.

The API provides messages in the following format:

interface AnalyticsData {
  type: 'start' | 'end' | 'data';
  contextId: string; // layerId
  contentId: string;
  playoutId: string;
  name: string;
  time: Date;
  relTimeMs: number;
}

Events

  • Start: Triggered when content starts playing.

  • End: Triggered when content has finished playing. Includes playout duration.

  • Data: Content included in a Data Layer. This content is only played once and has no onShift flow-stage. (Not currently supported in CX)