Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Register a callback on contact object for the “requestVideoUpgrade” event.

Code Block
languagejs
contact.on("requestVideoUpgrade", 
  function (event) {
    // the Agent can accept/refuse the video media escalation
  }
);

Response API (on agent side)

Code Block
languagejs
LIVECHATSDK.LIVECHAT.responseVideoUpgrade(<chat_id>, <boolean>);
// if true the Agent integration must generate a new token
// and create a new Video Connector Object
// as shown in the previous section

...