On Call Media Warning
Fired when audio stops in one direction while a call is connected. The call is not ended.
Event Registration
fun setOnCallMediaWarningListener(
fn: (callId: String, warning: VGError) -> Unit
): Subscription
Usage Example
client.setOnCallMediaWarningListener { callId, warning ->
println("Audio problem ${warning.code} on Call $callId")
}
Event Data
| Parameter | Type | Description |
|---|---|---|
callId | string | Identifier of the affected call |
warning | VonageError / VGError | Where audio stops: the code and a human-readable message |
Warnings
| Code | Where audio stops |
|---|---|
media:warning:no_microphone_audio | This device is not capturing audio from the microphone |
media:warning:audio_not_sent | The microphone captures audio, but this device is not sending it |
media:warning:audio_not_reaching_vonage | This device sends audio, but Vonage is not receiving it |
media:warning:no_audio_from_vonage | No audio is reaching this device from Vonage |
media:warning:remote_audio_silent | Audio reaches this device, but it is silent |
For each code's cause and what to do, see Troubleshooting.
Notes
- Each warning is reported once per episode: it fires again only after audio has recovered and stopped again
- Mute, earmuff and a muted remote party are not reported
- Use it to show an in-call banner or to log the problem; the call keeps running
Related Events
onCallMediaError- Fired when a media operation failsonCallMediaDisconnect- Fired when media disconnects