public interface IAudioFrameObserver
| Modifier and Type | Method and Description |
|---|---|
int |
getObservedAudioFramePosition() |
int |
onEarMonitoringAudioFrame(AgoraLocalUser agoraLocalUser,
AudioFrame frame)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
int |
onMixedAudioFrame(AgoraLocalUser agoraLocalUser,
java.lang.String channelId,
AudioFrame frame)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
int |
onPlaybackAudioFrame(AgoraLocalUser agoraLocalUser,
java.lang.String channelId,
AudioFrame frame)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
int |
onPlaybackAudioFrameBeforeMixing(AgoraLocalUser agoraLocalUser,
java.lang.String channelId,
java.lang.String userId,
AudioFrame frame,
VadProcessResult vadResult)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
int |
onRecordAudioFrame(AgoraLocalUser agoraLocalUser,
java.lang.String channelId,
AudioFrame frame)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
int onRecordAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio frameint onPlaybackAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio frameint onMixedAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio frameint onEarMonitoringAudioFrame(AgoraLocalUser agoraLocalUser, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userframe - the audio frameint onPlaybackAudioFrameBeforeMixing(AgoraLocalUser agoraLocalUser, java.lang.String channelId, java.lang.String userId, AudioFrame frame, VadProcessResult vadResult)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel iduserId - the user idframe - the audio framevadResult - the vad resultint getObservedAudioFramePosition()