JCVideoCaptureCallback

public interface JCVideoCaptureCallback

Video capture callback interface. The main purpose is to provide the frame data for the JCVideoCaptureInterface implementation. An implementation is provided in JCVideoCaptureInterface.startCapture.

Methods

capturerStarted

void capturerStarted(boolean started)

Notify the system to when the capture has started or stopped.

Parameters:
  • startedtrue if the capture has started, false otherwise.

provideFrame

void provideFrame(byte[] data, int width, int height, int fourcc)

Send the frame to be encoded to the system.

Parameters:
  • data – Video frame buffer
  • width – Video frame width
  • height – Video frame height
  • fourcc – FourCC value defined in constants in JCClient

provideFrame

void provideFrame(byte[] data, int width, int height, int rotation, long timeStamp, int fourcc)

Send the frame to be encoded to the system.

Parameters:
  • data – Video frame buffer
  • width – Video frame width
  • height – Video frame height
  • rotation – Video frame rotation in degrees. Valid values are 0, 90, 180, or 270.
  • timeStamp – Video frame timet stamp. Monotonically increasing time value in milliseconds.
  • fourcc – FourCC value defined in constants in JCClient