JavaScript API - Web Calling
The JavaScript Web Calling API can be used to control video and audio calls within the browser of the customer. Please note that the calling feature is not supported by older browsers. For details see the compatibility table.
Start call
Use the following methods to start a call in the current browser tab. A popup is created and a call connection is started that can be received in the Chatvisor backend.
Audio
CV.calling.startAudio()
Video (webcam)
CV.calling.startVideo()
Screensharing
Screensharing may not available on mobile devices
CV.calling.startScreensharing()
Screensharing with code
Starts a screensharing call and displays a numeric code for a support agent to identify the call in the backend.
CV.calling.startScreensharingWithCode()
Stop call
Stops the call in the same way as a user can hang up
CV.calling.stop()
Check for active call
Can be used to check if there is currently an active call. Returns a boolean value.
CV.calling.active()