Skip to content

API Reference

EaseLive

Configurable props

easeLiveConfig

Sets the program to load in the EaseLive overlay

AttributeDescriptionTypeRequired
accountIdAccount IDStringRequired
projectIdProject IDStringOptional. If not set, it will load the project the program belongs to
programIdProgram IDStringRequired
envWhich environment to load. "prod", "staging" or "dev". Defaults to "prod"StringOptional
paramsParameters to the Ease Live web appObjectOptional

playerControlsVisible

Sends a message to EaseLive when the visibility of player controls changed. value: true if visible, false if hidden

playerTime

Sends a message to EaseLive with the timecode of the current playback position when it is read from the player.

This event should be set when the player reads the timecode of the current playback position. The timecode should be milliseconds since 1970-01-01T00:00:00Z.

value: The current timecode as UTC milliseconds

playerState

Sends a message to EaseLive with the current player state when the state changes in player value: The new player state: 'playing', 'paused', 'stopped', 'seeking', 'buffering'

playerSpeed

Sends a message to EaseLive with the current playback speed value: Speed at which the media is playing, 0 stopped, 1.0 normal speed, other values slowed down or sped up

playerVolume

Sends a message to EaseLive with the current audio volume value: The current audio volume. 0 - 100

playerVideoScale

Sends a message to EaseLive with the current size of the video relative to its original size

ValueDescriptionTypeRequired
scaleXHorizontal scale factor, between 0 and 1.FloatRequired
scaleYVertical scale factor, between 0 and 1.FloatRequired
pivotXHorizontal anchor for the scaling animation, between 0 and 1.FloatRequired
pivotYVertical anchor of the scaling animation, between 0 and 1.FloatRequired
durationDuration of the scale animation in milliseconds.IntegerRequired

Events

onEaseLiveReady

Overlay loaded successfully

onEaseLiveError

Error when loading overlay Payload:

ValueDescriptionTypeRequired
level'fatal' or 'warning'StringRequired
descriptionError messageStringRequired
codeError codeIntegerRequired
componentStringOptional
programIdStringOptional

onEaseLiveStatus

Called when the producer has changed status of the overlay. If the status is disabled the EaseLive instance can be removed.

ValueDescriptionTypeRequired
status'disabled', 'hidden' or 'enabled'StringRequired

onEaseLiveMessage

Received custom message

ValueDescriptionTypeRequired
jsonJSON formatted stringStringRequired

onPlayerControls

Called when the overlay UI sends an event to change the player controls visibility.

ValueDescriptionTypeRequired
visibleVisible or hiddenBooleanRequired

onPlayerTime

Called when the overlay UI sends an event to seek to a player position. The timecode is milliseconds since 1970-01-01T00:00:00Z.

ValueDescriptionTypeRequired
timecodeUTC timecode for the wanted seek positionIntegerRequired

onPlayerState

Called when the overlay UI sends an event to set the player state. "state" is one of "playing", "paused", "stopped", "seeking" and "buffering".

ValueDescriptionTypeRequired
stateThe new player stateStringRequired

onPlayerSpeed

Called when the overlay UI sends an event to set the playback speed.

ValueDescriptionTypeRequired
speedA playback speed factor greater than 0FloatRequired

onPlayerVolume

Called when the overlay UI sends an event to set the audio volume.

ValueDescriptionTypeRequired
volumeThe volume to set between 0 and 100IntegerRequired

onPlayerMute

Called when the overlay UI sends an event to set the audio mute status.

ValueDescriptionTypeRequired
muteThe mute status, true or falseBooleanRequired

onPlayerVideoScale

Called when the overlay UI sends an event to change the video scale and position.

ValueDescriptionTypeRequired
scaleXHorizontal scale factor, between 0 and 1.FloatRequired
scaleYVertical scale factor, between 0 and 1.FloatRequired
pivotXHorizontal anchor for the scaling animation, between 0 and 1.FloatRequired
pivotYVertical anchor of the scaling animation, between 0 and 1.FloatRequired
durationDuration of the scale animation in milliseconds.IntegerRequired

Methods

sendEaseLiveMessage(event, metadata)

Send a custom message to EaseLive overlay.

ValueDescriptionTypeRequired
eventEvent nameStringRequired
metadataMetadata about the eventObjectRequired