Class: MediaState

Property Summary

(Object) visitor

An object with the following fields:

  • media - Media used by the Visitor. One of 'text', 'audio', 'phone', 'video'.
  • audioMuted - true if media is 'audio' or 'video' but Visitor has muted audio, otherwise false.
  • videoMuted - true if media is 'video' but Visitor has turned video off, otherwise false.
  • phoneStatus - Shows the status of phone call to Visitor. Is one of MediaState.PHONE_STATUSES:
    • UNUSED when Visitor is not using phone.
    • CONNECTING when a call is being established and Visitor has not yet answered.
    • CONNECTED when Visitor has answered the phone call.

(Object) operator

An object with the following fields:

  • media - Media used by the Operator. One of 'text', 'audio', 'phone', 'video'.
  • audioMuted - true if media is 'audio' or 'video' but Operator has muted audio, otherwise false.
  • videoMuted - true if media is 'video' but Operator has turned video off, otherwise false.

Variables Summary

PHONE_STATUSES =
{
  CONNECTED: 'connected',
  CONNECTING: 'connecting',
  UNUSED: 'unused'
}

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: