The CTLive Agent SDK allows the user to manage their devices to directly select the camera, microphone, or speaker that want to use. To get notified which devices are available and select a device by name, you can use the following APIs.
Microphone management
The contact.bindVideoMicrophoneEvent
bind a custom javascript function to be notified of all events occurring on the audio capture devices.
Code Block | ||
---|---|---|
| ||
contact.bindVideoMicrophoneEvent(
function (eventObj, eventName, microphoneObj, state) {
// Add your integration code
}
); |