public class Camera2Session
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
tee3.webrtc.CameraSession.CreateSessionCallback |
static interface |
tee3.webrtc.CameraSession.Events |
static class |
tee3.webrtc.CameraSession.FailureType |
限定符和类型 | 方法和说明 |
---|---|
static void |
create(tee3.webrtc.CameraSession.CreateSessionCallback callback,
tee3.webrtc.CameraSession.Events events,
Context applicationContext,
CameraManager cameraManager,
SurfaceTextureHelper surfaceTextureHelper,
java.lang.String cameraId,
int width,
int height,
int framerate) |
static Camera2Session |
getInstance() |
float |
getMaxZoom() |
float |
getZoom() |
java.lang.Boolean |
isFlashAvailable() |
int |
setCameraZoom(float zoom) |
void |
stop()
Stops the capture.
|
int |
turnOffFlash() |
int |
turnOnFlash() |
public static void create(tee3.webrtc.CameraSession.CreateSessionCallback callback, tee3.webrtc.CameraSession.Events events, Context applicationContext, CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, java.lang.String cameraId, int width, int height, int framerate)
public void stop()
public static Camera2Session getInstance()
public float getMaxZoom()
public float getZoom()
public int setCameraZoom(float zoom)
public java.lang.Boolean isFlashAvailable()
public int turnOnFlash()
public int turnOffFlash()