public interface IAudioFrameObserver
| Modifier and Type | Method and Description |
|---|---|
default int |
getObservedAudioFramePosition() |
default int |
onEarMonitoringAudioFrame(AgoraLocalUser agoraLocalUser,
AudioFrame frame)
Note: To improve data transmission efficiency, the buffer of the frame object
is a DirectByteBuffer.
|
default 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.
|
default 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.
|
default 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.
|
default 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.
|
default int onRecordAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio framedefault int onPlaybackAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio framedefault int onMixedAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userchannelId - the channel idframe - the audio framedefault int onEarMonitoringAudioFrame(AgoraLocalUser agoraLocalUser, AudioFrame frame)
Utils.getBytes(ByteBuffer).agoraLocalUser - the local userframe - the audio framedefault int 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 resultdefault int getObservedAudioFramePosition()