interface ContentLocationChangedEvent {
    reason: ContentLocationChangedReason;
    sourceLocationId: string;
    targetLocationId: string;
    timestamp: number;
    type: PlayerEvent;
}

Hierarchy (view full)

Properties

The reason for the content location change.

sourceLocationId: string

An ID that identifies the previous content location. It can be in the form of:

  • a Pathway ID or ServiceLocation ID if defined in the manifest
  • a URL or BaseURL of the previous CDN (in case of DASH streams)
  • the index of the redundant stream in the manifest that was used prior to the change (in case of HLS streams)
targetLocationId: string

An ID that identifies the new content location. It can be in the form of:

  • a Pathway ID or ServiceLocation ID if defined in the manifest
  • a URL or BaseURL of the new CDN (in case of DASH streams)
  • the index of the redundant stream in the manifest that was selected as target for the change (in case of HLS streams)
timestamp: number

The time at which this event was fired

Event type, e.g. 'play'