public class DefaultAudioFrameObserver extends java.lang.Object implements IAudioFrameObserver
| Constructor and Description |
|---|
DefaultAudioFrameObserver() |
| 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.
|
public int onRecordAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).onRecordAudioFrame in interface IAudioFrameObserveragoraLocalUser - the local userchannelId - the channel idframe - the audio framepublic int onPlaybackAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).onPlaybackAudioFrame in interface IAudioFrameObserveragoraLocalUser - the local userchannelId - the channel idframe - the audio framepublic int onMixedAudioFrame(AgoraLocalUser agoraLocalUser, java.lang.String channelId, AudioFrame frame)
Utils.getBytes(ByteBuffer).onMixedAudioFrame in interface IAudioFrameObserveragoraLocalUser - the local userchannelId - the channel idframe - the audio framepublic int onEarMonitoringAudioFrame(AgoraLocalUser agoraLocalUser, AudioFrame frame)
Utils.getBytes(ByteBuffer).onEarMonitoringAudioFrame in interface IAudioFrameObserveragoraLocalUser - the local userframe - the audio framepublic int onPlaybackAudioFrameBeforeMixing(AgoraLocalUser agoraLocalUser, java.lang.String channelId, java.lang.String userId, AudioFrame frame, VadProcessResult vadResult)
Utils.getBytes(ByteBuffer).onPlaybackAudioFrameBeforeMixing in interface IAudioFrameObserveragoraLocalUser - the local userchannelId - the channel iduserId - the user idframe - the audio framevadResult - the vad resultpublic int getObservedAudioFramePosition()
getObservedAudioFramePosition in interface IAudioFrameObserver