#include <JCMediaDevice.h>
构造函数 | |
(void) | - onVideoCaptureFrame:face:imageAngle:captureOrient:width:height:buf: |
(void) | - onVideoRenderFrame:sourceType:angle:mirror:width:height:buf:timeStamp: |
详细描述
原始视频数据回调事件
函数文档
◆ onVideoCaptureFrame:face:imageAngle:captureOrient:width:height:buf:
- (void) onVideoCaptureFrame: | (NSString *_Nonnull) | captureId | |
face: | (JCMediaDeviceCameraType) | face | |
imageAngle: | (int) | imageAngle | |
captureOrient: | (int) | captureOrient | |
width: | (int *_Nonnull) | width | |
height: | (int *_Nonnull) | height | |
buf: | (unsigned char *_Nonnull) | buf | |
获得采集的视频
- 参数
-
captureId 采集源id face 镜头朝向 imageAngle 图像正立所需角度 captureOrient 镜头固定角度 width 图像宽 height 图像高 buf 图像数据
◆ onVideoRenderFrame:sourceType:angle:mirror:width:height:buf:timeStamp:
- (void) onVideoRenderFrame: | (NSString *_Nonnull) | renderId | |
sourceType: | (JCMediaDeviceVideoSource) | sourceType | |
angle: | (int) | angle | |
mirror: | (JCMediaDeviceMirror) | mirror | |
width: | (int *_Nonnull) | width | |
height: | (int *_Nonnull) | height | |
buf: | (unsigned char *_Nonnull) | buf | |
timeStamp: | (unsigned long) | timeStamp | |
获得播放的视频
- 参数
-
renderId 渲染id sourceType 视频源类型 angle 图像正立所需角度 mirror 镜像类型 - JCMediaDeviceMirrorNone 不镜像
- JCMediaDeviceMirrorHorizontal 水平方向镜像
- JCMediaDeviceMirrorVertical 竖直方向镜像
- JCMediaDeviceMirrorAuto 自动选择
- JCMediaDeviceMirrorFromLeft 转场动画,从左侧翻转
- JCMediaDeviceMirrorFromTop 转场动画,从上侧翻转
width 图像宽 height 图像高 buf 图像数据 timeStamp 渲染时间戳
该协议的文档由以下文件生成:
- JCSDKOC/JCSDKOC/JCMediaDevice/JCMediaDevice.h