JCVideoCaptureInterface¶
- public interface JCVideoCaptureInterface¶
Video capture interface. Implement these methods to create a custom video capturer. In the JCClient.Callback implementation, return a string with the fully qualitied package name. For example: at.jumpch.sdk.example.CustomVideoCapture.
Methods¶
enableHD¶
- boolean enableHD(boolean enable)¶
Enable HD or SD when capturing the video
Parameters: - enable – boolean to determine HD(ex. 1280x720) or SD(ex. 640x480) quality.
Returns: true if successfully enabled HD, false otherwise
resumeCapture¶
- boolean resumeCapture()¶
Resume video capture. Generally restart the capture thread if stopped.
Returns: true if success, false otherwise
selectCamera¶
- boolean selectCamera(int cameraId)¶
Select the camera id. For example front or back camera. This can be an empty method in a custom stream.
Parameters: - cameraId – Integer to determine if front or back camera should be used. See android.hardware.Camera.open
Returns: true if camera selection was successful, false otherwise
startCapture¶
- boolean startCapture(int width, int height, int framerate, Context applicationContext, JCVideoCaptureCallback cb)¶
Start a thread to provide video frames to the system. Parameters are suggestions and can be safely ignored when implementing the method.
Parameters: - width – Video frame width
- height – Video frame height
- framerate – Frames per second
- applicationContext – Application context provided in JCClient
- cb – Callback object used to provide video frame to the system
Returns: true if successful, false otherwise