Skip to content

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 ​

ParameterTypeDescription
callIdstringIdentifier of the affected call
warningVonageError / VGErrorWhere audio stops: the code and a human-readable message

Warnings ​

CodeWhere audio stops
media:warning:no_microphone_audioThis device is not capturing audio from the microphone
media:warning:audio_not_sentThe microphone captures audio, but this device is not sending it
media:warning:audio_not_reaching_vonageThis device sends audio, but Vonage is not receiving it
media:warning:no_audio_from_vonageNo audio is reaching this device from Vonage
media:warning:remote_audio_silentAudio 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

Built with VitePress.