App — Heartbeat

The LiSA Player regularly sends a Heartbeat to signal its continued availability.

This message is sent by the LiSA Player to the host app / environment.

Properties

Along with all standard Message properties, a Heartbeat message includes the following additional properties:

Name
Type
Description

messageType

Required.

lsc:app:heartbeat

Legacy Properties

Name
Type
Description

action

Required.

heartbeat ⚠️ Please use messageType instead.

playing

Required.

The playing property signifies whether media playback is currently in progress. ⚠️ Please subscribe to Media Progress message instead.

target

Required.

player ⚠️ Please use messageType instead.

time

Optional.

The time property represents the current playback position of the media item, measured in milliseconds from the start.

  • For on-demand content (e.g., replays, stories), this value indicates the exact position the user is watching.

  • For live streams, this value represents the current timestamp relative to the live broadcast

⚠️ Please subscribe to Media Progress message instead.


Type Definition

interface AppHeartbeatMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {
  messageType: 'lsc:app:heartbeat';
  sender: 'LiSA';
}

Examples

Last updated