public interface IAVChatRemoteAudioCallBack
Modifier and Type | Method and Description |
---|---|
void |
onAudioFrame(java.lang.String account,
AudioFrame audioFrame)
Callback for remote user PCM
Note: this is a synchronous callback.
|
void onAudioFrame(java.lang.String account, AudioFrame audioFrame)
{@code int len = audioFrame.getChannels() * audioFrame.getSamplesPerChannel() * audioFrame.getBytesPerSample(); byte[] bytes = new byte[len]; audioFrame.getData().get(bytes, 0, len); backgroundHandler.post(new Runnable() {
account
- user accountaudioFrame
- Audio frames