JCSDK-Android
|
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回调,用于回调设备相关事件
void com.juphoon.cloud.JCMediaDeviceCallback.onAudioOutputTypeChange | ( | @JCMediaDevice.AudioRouteType int | audioRouteType | ) |
音频输出变化
audioRouteType | 音频输出通道
|
void com.juphoon.cloud.JCMediaDeviceCallback.onCameraUpdate | ( | ) |
摄像头变化
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] | inputId | unique name of the audio input 设备id |
[in] | sampleRateHz | the sample rate of the pcm data 采样频率 |
[in] | channels | the channel number of the pcm data 频道id |
[in] | byteBuffer | buffer 缓冲 |
[in] | data | the pcm data PCM数据 |
[in] | playDelayMS | the play delay ms 播放延迟 |
[in] | recDelayMS | the record dely ms 记录延迟 |
[in] | clockDrift | the clock drift ms 时钟漂移 |
void com.juphoon.cloud.JCMediaDeviceCallback.onRenderCallback | ( | String | renderId, |
int | sourceType, | ||
int | angle, | ||
int | mirror, | ||
int | width, | ||
int | height, | ||
ByteBuffer | buf, | ||
int | timeStamp | ||
) |
渲染数据上报
void com.juphoon.cloud.JCMediaDeviceCallback.onRenderReceived | ( | String | renderId | ) |
收到第一帧数据
renderId | 视频流标识 |
void com.juphoon.cloud.JCMediaDeviceCallback.onRenderStart | ( | String | renderId | ) |
渲染开始
renderId | 视频流标识 |
void com.juphoon.cloud.JCMediaDeviceCallback.onSnapshotComplete | ( | String | file, |
int | width, | ||
int | height | ||
) |
截图完成
file | 截图路径 |
width | 截图宽 |
height | 截图高 |
void com.juphoon.cloud.JCMediaDeviceCallback.onVideoCaptureDidStart | ( | String | capture | ) |
视频采集开始回调
capture | 采集Id |
void com.juphoon.cloud.JCMediaDeviceCallback.onVideoError | ( | String | videoError | ) |
视频渲染错误,包括摄像头采集错误
videoError | 报错信息 |