From Bright Pattern Documentation
Jump to: navigation, search
(Created page with "<translate> =onCallAudioQualityAlert= Indicates when the server finds some audio quality problems with the call. ==Request== ''Syntax'' {| class="wikitable" |on('ON_CALL_A...")
 
(Updated via BpDeleteTranslateTags script)
 
Line 1: Line 1:
<translate>
+
 
  
 
=onCallAudioQualityAlert=
 
=onCallAudioQualityAlert=
Line 52: Line 52:
  
 
(None)
 
(None)
 
 
 
</translate>
 

Latest revision as of 04:01, 29 May 2024

• 5.19


onCallAudioQualityAlert

Indicates when the server finds some audio quality problems with the call.

Request

Syntax

on('ON_CALL_AUDIO_QUALITY_ALERT', handler: OnCallAudioQualityAlertHandler): void


type OnCallAudioQualityAlertHandler = (callId: string, alert: boolean) => SyncAsyncResult

Parameters

Parameter Parameter Values Data Type Optional/Required Description
callId String Required The ID of the call experiencing quality problems
alert Boolean Required If set to true, the parameter indicates that there is a problem; if set to false, the parameter indicates that there is no problem.

Example Request

function callAudioQualityAlertCallback(callId: string, alert: boolean) {

if (alert) {

console.warn("Warning! Detected voice quality problems!");

}

}

adApi.on("ON_CALL_AUDIO_QUALITY_ALERT", callAudioQualityAlertCallback);

Return Value

(None)

< Previous | Next >