onVideoCaptureFrame abstract method

void onVideoCaptureFrame(
  1. String captureId,
  2. int face,
  3. int imageAngle,
  4. int captureOrient,
  5. List? widthHeight,
  6. List? data,
)

获得采集的视频

⼊会前调⽤@ref JCMediaDevice#setVideoFrameCallback "setVideoFrameCallback" 才会收到该回调

captureId 采集源id face 镜头朝向

  • @ref JCMediaDevice#CAMERA_FRONT "CAMERA_FRONT" : 前置摄像头
  • @ref JCMediaDevice#CAMERA_BACK "CAMERA_BACK" : 后置摄像头 imageAngle 图像正立所需角度 captureOrient 镜头固定角度 widthHeight 图像宽高,widthHeight0 为宽, widthHeight1为高 data 图像数据,格式为I420

Implementation

void onVideoCaptureFrame(String captureId, int face, int imageAngle,
    int captureOrient, List? widthHeight, List? data);