JCSDK-Android
Public 成员函数 | 所有成员列表
com.juphoon.cloud.JCMediaDeviceCallback接口 参考

Public 成员函数

void onCameraUpdate ()
 
void onAudioOutputTypeChange (@JCMediaDevice.AudioRouteType int audioRouteType)
 
void onRenderReceived (String renderId)
 
void onRenderStart (String renderId)
 
void onRenderCallback (String renderId, int sourceType, int angle, int mirror, int width, int height, ByteBuffer buf, int timeStamp)
 
void onSnapshotComplete (String file, int width, int height)
 
void onVideoError (String videoError)
 
void onVideoCaptureDidStart (String capture)
 
void onInputCallback (String inputId, int sampleRateHz, int channels, ByteBuffer byteBuffer, int playDelayMS, int recDelayMS, int clockDrift)
 

详细描述

JCMediaDevice回调,用于回调设备相关事件

作者
juphoon

成员函数说明

◆ onAudioOutputTypeChange()

void com.juphoon.cloud.JCMediaDeviceCallback.onAudioOutputTypeChange ( @JCMediaDevice.AudioRouteType int  audioRouteType)

音频输出变化

参数
audioRouteType音频输出通道

◆ onCameraUpdate()

void com.juphoon.cloud.JCMediaDeviceCallback.onCameraUpdate ( )

摄像头变化

◆ onInputCallback()

void com.juphoon.cloud.JCMediaDeviceCallback.onInputCallback ( String  inputId,
int  sampleRateHz,
int  channels,
ByteBuffer  byteBuffer,
int  playDelayMS,
int  recDelayMS,
int  clockDrift 
)

the callback to receive audio input data 实时音频数据

参数
[in]inputIdunique name of the audio input 设备id
[in]sampleRateHzthe sample rate of the pcm data 采样频率
[in]channelsthe channel number of the pcm data 频道id
[in]byteBufferbuffer 缓冲
[in]datathe pcm data PCM数据
[in]playDelayMSthe play delay ms 播放延迟
[in]recDelayMSthe record dely ms 记录延迟
[in]clockDriftthe clock drift ms 时钟漂移

◆ onRenderCallback()

void com.juphoon.cloud.JCMediaDeviceCallback.onRenderCallback ( String  renderId,
int  sourceType,
int  angle,
int  mirror,
int  width,
int  height,
ByteBuffer  buf,
int  timeStamp 
)

渲染数据上报

◆ onRenderReceived()

void com.juphoon.cloud.JCMediaDeviceCallback.onRenderReceived ( String  renderId)

收到第一帧数据

参数
renderId视频流标识

◆ onRenderStart()

void com.juphoon.cloud.JCMediaDeviceCallback.onRenderStart ( String  renderId)

渲染开始

参数
renderId视频流标识

◆ onSnapshotComplete()

void com.juphoon.cloud.JCMediaDeviceCallback.onSnapshotComplete ( String  file,
int  width,
int  height 
)

截图完成

参数
file截图路径
width截图宽
height截图高

◆ onVideoCaptureDidStart()

void com.juphoon.cloud.JCMediaDeviceCallback.onVideoCaptureDidStart ( String  capture)

视频采集开始回调

参数
capture采集Id

◆ onVideoError()

void com.juphoon.cloud.JCMediaDeviceCallback.onVideoError ( String  videoError)

视频渲染错误,包括摄像头采集错误

参数
videoError报错信息

该接口的文档由以下文件生成: