JCSDK-iOS
|
#import <JCMediaDeviceCallback.h>
构造函数 | |
(void) | - onCameraUpdate |
(void) | - onAudioOutputTypeChange: |
(void) | - onRenderReceived: |
(void) | - onRenderStart: |
(void) | - onAudioInerruptAndResume: |
(void) | - onSnapshotComplete:width:height: |
(void) | - onVideoCaptureDidStart: |
(void) | - onRenderCallback:renderId:sourceType:angle:mirror:width:height:buf:timeStamp: |
(void) | - onAudioInputCallback:inputId:sampleRateHz:channels:buf:len:micLevel:playDelayMS:recDelayMS:clockDrift: |
JCMediaDevice回调,用于回调设备相关事件
|
optional |
声音中断恢复回调
音频中断或恢复时会收到此回调
interrupt | 中断或恢复
|
|
optional |
the callback to receive audio input data
[in] | pUser | the user data registered by Zmf_AddAudioInputCallback |
[in] | inputId | unique name of the audio input |
[in] | iSampleRateHz | the sample rating of the pcm data |
[in] | iChannels | the channel number of the pcm data |
[in] | buf | the pcm data |
[in] | len | the pcm data length |
[in,out] | micLevel | |
[in] | playDelayMS | the play delay ms |
[in] | recDelayMS | the record dely ms |
[in] | clockDrift | the clock drift ms |
|
optional |
音频输出类型变化回调
音频输出类型发生变化时会收到此回调,例如从扬声器状态变为耳机状态
audioOutputType | 音频输出类型 |
|
optional |
摄像头变化回调
开启、关闭、切换摄像头时会收到此回调
|
optional |
媒体流上报
|
optional |
|
optional |
画面开始渲染回调
一对一通话或媒体频道通话时,JCMediaDeviceVideoCanvas 渲染对象开始渲染画面,会收到此回调
renderId | 视频流标识 |
|
optional |
截图完成事件
file | 截图路径 |
width | 宽 |
height | 高 |
|
optional |
视频采集开始回调
captureId | 摄像头id |