Class AndroidVideoApi9JniWrapper
java.lang.Object
org.linphone.mediastream.video.capture.AndroidVideoApi9JniWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdetectCameras(int[] indexes, int[] frontFacing, int[] orientation) static intstatic int[]selectNearestResolutionAvailable(int cameraId, int requestedW, int requestedH) Return the hw-available available resolution best matching the requested one.static voidsetPreviewDisplaySurface(Object cam, Object surf) static ObjectstartRecording(int cameraId, int width, int height, int fps, int rotation, long nativePtr) static voidstopRecording(Object cam)
-
Constructor Details
-
AndroidVideoApi9JniWrapper
public AndroidVideoApi9JniWrapper()
-
-
Method Details
-
detectCamerasCount
public static int detectCamerasCount() -
detectCameras
public static int detectCameras(int[] indexes, int[] frontFacing, int[] orientation) -
selectNearestResolutionAvailable
public static int[] selectNearestResolutionAvailable(int cameraId, int requestedW, int requestedH) Return the hw-available available resolution best matching the requested one. Best matching meaning : - try to find the same one - try to find one just a little bigger (ex: CIF when asked QVGA) - as a fallback the nearest smaller one- Parameters:
cameraId- Camera idrequestedW- Requested video size widthrequestedH- Requested video size height- Returns:
- int[width, height] of the chosen resolution, may be null if no resolution can possibly match the requested one
-
startRecording
public static Object startRecording(int cameraId, int width, int height, int fps, int rotation, long nativePtr) -
stopRecording
-
setPreviewDisplaySurface
-