-
Notifications
You must be signed in to change notification settings - Fork 1
data_callback
Su, Jia edited this page Jan 3, 2018
·
3 revisions
连麦的音视频数据,可通过KMCAgoraVRTC的setDataCallback方法进行注册
public void setDataCallback(KMCAgoraVRTCCallback callback)
- 远端视频数据回调
/**
* @buffer 视频数据
* @format 视频参数
* @pts 时间戳
*/
void onReceiveRemoteVideoFrame(int uid, ByteBuffer buffer, VideoFormat format, long pts)
- 本地音频数据回调
/**
* @buffer 音频数据
* @format 音频参数
* @pts 时间戳
*/
void onReceiveLocalAudioFrame(int uid, ByteBuffer buffer, AudioFormat format, long pts)
- 远端音频数据回调
/**
* @buffer 音频数据
* @format 音频参数
* @pts 时间戳
*/
void onReceiveRemoteAudioFrame(ByteBuffer buffer, AudioFormat format, long pts)
- 远端视频数据回调
/**
* @buffer 视频数据
* @format 视频参数
* @pts 时间戳
*/
void onReceiveRemoteVideoFrame(ByteBuffer buffer, VideoFormat format, long pts)
- 本地音频数据回调
/**
* @buffer 音频数据
* @format 音频参数
* @pts 时间戳
*/
void onReceiveLocalAudioFrame(ByteBuffer buffer, AudioFormat format, long pts)
- 远端音频数据回调
/**
* @buffer 音频数据
* @format 音频参数
* @pts 时间戳
*/
void onReceiveRemoteAudioFrame(int uid, ByteBuffer buffer, AudioFormat format, long pts)