on Codec Changed
Called when the video codec you are sending falls back to VP8 because a remote participant cannot decode it.
Requires codecSwitchEnabled in initMeeting. Fired on the main thread.
Local send-side failures (codec unavailable on the device, encoder error, rejected produce) also fall back to VP8, but are reported via onError with code 3008 (ERROR_VIDEO_PRODUCE_CODEC_NOT_SUPPORTED) instead of this event. The participant that cannot decode receives code 4051 (CODEC_NOT_SUPPORTED) on their own device.
Code Example:
public void onCodecChanged(CodecChangeInfo info) {
Log.d("Meeting", "Codec changed from " + info.getPreviousCodec()
+ " to " + info.getCurrentCodec());
}
Content copied to clipboard
Parameters
info
the codec change details; see CodecChangeInfo