NERTC iOS SDK V5.9.20
载入中...
搜索中...
未找到
<NERtcEngineVideoFrameObserver>协议 参考

本地视频数据采集回调 如果需要对采集数据做美颜等处理,需要实现这个 protocol。 更多...

#include <NERtcEngineDelegate.h>

类 <NERtcEngineVideoFrameObserver> 继承关系图:
<NERtcEngineDelegateEx>

实例方法

(void) - onNERtcEngineVideoFrameCaptured:rotation:
 设置视频采集数据回调,用于美颜等操作。 同步返回,Engine 将会继续视频处理流程。
 
(void) - onNERtcEngineRemoteVideoFrame:userId:data:format:width:height:planeCount:offset:stride:rotation:
 远端用户发送视频帧回调。
 
(void) - onNERtcEnginePlayStreamingVideoFrame:format:width:height:planeCount:offset:stride:rotation:streamId:
 拉流播放视频帧回调。
 

详细描述

本地视频数据采集回调 如果需要对采集数据做美颜等处理,需要实现这个 protocol。

成员函数文档

◆ onNERtcEnginePlayStreamingVideoFrame:format:width:height:planeCount:offset:stride:rotation:streamId:

- (void) onNERtcEnginePlayStreamingVideoFrame: (void *) data
format: (NERtcVideoFormatType) format
width: (uint32_t) width
height: (uint32_t) height
planeCount: (uint32_t) planeCount
offset: (int64_t *) offset
stride: (uint32_t *) stride
rotation: (NERtcVideoRotationType) rotation
streamId: (NSString *) streamId 
optionalrequired

拉流播放视频帧回调。

注解
纯音频 SDK 禁用该接口,如需使用请前往云信官网下载并替换成视频 SDK。
参数
data视频帧数据。
format视频格式类型,详细信息请参考 NERtcVideoFormatType
width视频帧宽度。
height视频帧高度。
planeCount视频帧平面数。
offset视频帧偏移量。
stride视频帧步长。
rotation视频旋转角度,详细信息请参考 NERtcVideoRotation
streamId直播拉流 ID。

◆ onNERtcEngineRemoteVideoFrame:userId:data:format:width:height:planeCount:offset:stride:rotation:

- (void) onNERtcEngineRemoteVideoFrame: (NERtcStreamChannelType) videoStreamType
userId: (uint64_t) userId
data: (void *) data
format: (NERtcVideoFormatType) format
width: (uint32_t) width
height: (uint32_t) height
planeCount: (uint32_t) planeCount
offset: (int64_t *) offset
stride: (uint32_t *) stride
rotation: (NERtcVideoRotationType) rotation 
optionalrequired

远端用户发送视频帧回调。

注解
纯音频 SDK 禁用该接口,如需使用请前往云信官网下载并替换成视频 SDK。
参数
videoStreamType视频流类型。
userId发送视频帧的用户 ID。
data视频帧数据。
format视频格式类型,详细信息请参考 NERtcVideoFormatType
width视频帧宽度。
height视频帧高度。
planeCount视频帧平面数。
offset视频帧偏移量。
stride视频帧步长。
rotation视频旋转角度,详细信息请参考 NERtcVideoRotation

◆ onNERtcEngineVideoFrameCaptured:rotation:

- (void) onNERtcEngineVideoFrameCaptured: (CVPixelBufferRef) bufferRef
rotation: (NERtcVideoRotationType) rotation 
optional

设置视频采集数据回调,用于美颜等操作。 同步返回,Engine 将会继续视频处理流程。

注解
纯音频 SDK 禁用该接口,如需使用请前往云信官网下载并替换成视频 SDK。
参数
bufferRefCVPixelBufferRef,iOS 原生格式。
rotation视频方向,详细信息请参考 NERtcVideoRotationType

该协议的文档由以下文件生成: