uuid string
If a request is made when the call is not terminated, a null value is returned.
Returns an object containing information about the callee.
Returns an object containing information about the caller.
Returns an object containing information about current user.
Returns an object containing information about remote user.
Capture current local video view.
Capture current remote video view.
Delete all custom items associated with the call
- using promise
call.deleteAllCustomItems()
.then(result => {
// Handle added custom items using a returned promise.
// result = { customItems: {}, affectedKeys: ['key1', key2'] }
}, error => {
// Handle error
});
- using callback
call.deleteAllCustomItems(function(result, error){
if(!error){
// Handle added custom items using a returned result.
// result = { customItems: {}, affectedKeys: ['key1', key2'] }
} else {
// Handle error
}
});
Custom items can be added to a call either by a caller or a callee. When dialing, the caller can add a Dictionary of String and String to a DialParams object by using the customItems property. The default value of a call's custom items is an empty Dictionary.
const deleteCustomItemKeys = ["key1", "key2"];
- using promise
call.deleteCustomItems(deleteCustomItemKeys)
.then(result => {
// Handle added custom items using a returned promise.
// result = { customItems: {key1: 'value1', ... }, affectedKeys: ['key1', key2'] }
}, error => {
// Handle error
});
- using callback
call.deleteCustomItems(deleteCustomItemKeys, function(result, error){
if(!error){
// Handle added custom items using a returned result.
// result = { customItems: {key1: 'value1', ... }, affectedKeys: ['key1', key2'] }
} else {
// Handle error
}
});
When the call is not connected, cancel/reject the call. When the call is connected, the call is terminated.
Gets the talk time that has been in progress so far.
call duration time(unit ms)
Hold the current call.
Stop the local audio.
Set view element for display local media stream.
video html element.
Set view element for display remote media stream.
video html element.
Start recording.
Start screen share.
Start the local video.
Stop recording.
Start screen share.
Stop the local video.
Unhold the current call.
Start the local audio.
Custom items can be added to a call either by a caller or a callee. When dialing, the caller can add a Dictionary of String and String to a DialParams object by using the customItems property. The default value of a call's custom items is an empty Dictionary.
const customItems = { key1: 'value1', key2: 'value2' };
- using promise
call.updateCustomItems(customItems)
.then(result => {
// Handle added custom items using a returned promise.
// result = { customItems: {key1: 'value1', ... }, affectedKeys: ['key1', key2'] }
}, error => {
// Handle error
});
- using callback
call.updateCustomItems(customItems, function(result, error){
if(!error){
// Handle added custom items using a returned result.
// result = { customItems: {key1: 'value1', ... }, affectedKeys: ['key1', key2'] }
} else {
// Handle error
}
});
Generated using TypeDoc