Public 成员函数 | |
void | onVideoCaptureFrame (string captureId, JCMediaDeviceFaceType face, int imageAngle, int captureOrient, IntPtr width, IntPtr height, int paddingWidth, int paddingHeight, IntPtr buf, IntPtr encoder) |
void | onVideoRenderFrame (string renderId, JCMediaDeviceVideoSourceType sourceType, int angle, JCMediaDeviceMirrorType mirror, IntPtr width, IntPtr height, IntPtr buf, uint timeStamp) |
详细描述
原始视频数据回调事件
成员函数说明
◆ onVideoCaptureFrame()
void JCSDK.JCMediaDevice.JCVideoFrameCallback.onVideoCaptureFrame | ( | string | captureId, |
JCMediaDeviceFaceType | face, | ||
int | imageAngle, | ||
int | captureOrient, | ||
IntPtr | width, | ||
IntPtr | height, | ||
int | paddingWidth, | ||
int | paddingHeight, | ||
IntPtr | buf, | ||
IntPtr | encoder | ||
) |
获得采集的视频
- 参数
-
captureId 采集源id face 镜头朝向 - FaceUnknown : 未获取到摄像头
- FaceFront : 前置摄像头
- FaceBack : 后置摄像头
imageAngle 图像正立所需角度 captureOrient 镜头固定角度 widthHeight 图像宽高 data 图像数据
◆ onVideoRenderFrame()
void JCSDK.JCMediaDevice.JCVideoFrameCallback.onVideoRenderFrame | ( | string | renderId, |
JCMediaDeviceVideoSourceType | sourceType, | ||
int | angle, | ||
JCMediaDeviceMirrorType | mirror, | ||
IntPtr | width, | ||
IntPtr | height, | ||
IntPtr | buf, | ||
uint | timeStamp | ||
) |
获得播放的视频
- 参数
-
renderId 渲染id sourceType 视频源类型 - VideoSourcePeer : 用户
- VideoSourceCapture : 采集设备
- VideoSourceFile : 文件
angle 图像正立所需角度 mirror 镜像类型 - MirrorAuto : 自动选择
- MirrorHorizontal : 水平方向镜像
- MirrorVertical : 竖直方向镜像
width 图像宽 height 图像高 data 图像数据 timeStampMs 渲染时间戳
该接口的文档由以下文件生成:
- JCSDK/JCSDK/JCMediaDevice/JCMediaDeviceCallback.cs