...
Register a callback on contact object for the “requestVideoUpgrade” event.
Code Block | ||
---|---|---|
| ||
contact.on("requestVideoUpgrade", function (event) { // the Agent can accept/refuse the video media escalation } ); |
Response API (on agent side)
Code Block | ||
---|---|---|
| ||
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 |
...