Public 成员函数

void onVideoCaptureFrame (String captureId, @JCMediaDevice.CameraType int face, int imageAngle, int captureOrient, int[] widthHeight, ByteBuffer data)
 
void onVideoRenderFrame (String renderId, @JCMediaDevice.VideoSourceType int sourceType, int angle, @JCMediaDevice.MirrorType int mirror, int width, int height, ByteBuffer data, int timeStampMs)
 

详细描述

原始视频数据回调事件

成员函数说明

◆ onVideoCaptureFrame()

void com.juphoon.cloud.JCVideoFrameCallback.onVideoCaptureFrame ( String  captureId,
@JCMediaDevice.CameraType int  face,
int  imageAngle,
int  captureOrient,
int[]  widthHeight,
ByteBuffer  data 
)

获得采集的视频

⼊会前调⽤setVideoFrameCallback 才会收到该回调

参数
captureId采集源id
face镜头朝向
imageAngle图像正立所需角度
captureOrient镜头固定角度
widthHeight图像宽高,widthHeight[0] 为宽, widthHeight[1]为高
data图像数据,格式为I420

◆ onVideoRenderFrame()

void com.juphoon.cloud.JCVideoFrameCallback.onVideoRenderFrame ( String  renderId,
@JCMediaDevice.VideoSourceType int  sourceType,
int  angle,
@JCMediaDevice.MirrorType int  mirror,
int  width,
int  height,
ByteBuffer  data,
int  timeStampMs 
)

获得播放的视频

⼊会前调⽤setVideoFrameCallback 才会收到该回调

参数
renderId渲染id
sourceType视频源类型
angle图像正立所需角度
mirror镜像类型
width图像宽
height图像高
data图像数据,格式为I420
timeStampMs渲染时间戳

该接口的文档由以下文件生成:
  • cloud/src/main/common/com/juphoon/cloud/JCVideoFrameCallback.java
最后更新时间: 2023/11/7 09:38:09