Class

MediaState

MediaState

Classes

MediaState

Members

Object

# operator

Properties:
Name Type Description
media string Media used by the operator. One of 'text', 'audio', 'phone', 'video'.
audioMuted boolean true if media is 'audio' or 'video' but operator has muted audio, otherwise false.
videoMuted boolean true if media is 'video' but operator has turned video off, otherwise false.
object

# PHONE_STATUSES

Properties:
Name Type Description
UNUSED string when visitor is not using phone.
CONNECTING string when a call is being established and visitor has not yet answered.
CONNECTED string when visitor has answered the phone call.
Object

# visitor

Properties:
Name Type Description
media string Media used by the visitor. One of 'text', 'audio', 'phone', 'video'.
audioMuted boolean true if media is 'audio' or 'video' but visitor has muted audio, otherwise false.
videoMuted boolean true if media is 'video' but visitor has turned video off, otherwise false.
phoneStatus string Shows the status of phone call to visitor. Is one of MediaState.PHONE_STATUSES