Package org.webrtc
Class FlashlightCameraCapturer
java.lang.Object
org.webrtc.Camera1Capturer
org.webrtc.FlashlightCameraCapturer
- All Implemented Interfaces:
org.webrtc.CameraVideoCapturer,org.webrtc.VideoCapturer
public class FlashlightCameraCapturer
extends org.webrtc.Camera1Capturer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.webrtc.CameraVideoCapturer
org.webrtc.CameraVideoCapturer.CameraEventsHandler, org.webrtc.CameraVideoCapturer.CameraStatistics, org.webrtc.CameraVideoCapturer.CameraSwitchHandler, org.webrtc.CameraVideoCapturer.MediaRecorderHandler -
Constructor Summary
ConstructorsConstructorDescriptionFlashlightCameraCapturer(String cameraName, org.webrtc.CameraVideoCapturer.CameraEventsHandler eventsHandler, boolean captureToTexture) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeCaptureFormat(int arg0, int arg1, int arg2) protected voidcreateCameraSession(org.webrtc.CameraSession.CreateSessionCallback createSessionCallback, org.webrtc.CameraSession.Events events, android.content.Context applicationContext, org.webrtc.SurfaceTextureHelper surfaceTextureHelper, String cameraName, int width, int height, int framerate) voiddispose()protected Stringvoidinitialize(org.webrtc.SurfaceTextureHelper arg0, android.content.Context arg1, org.webrtc.CapturerObserver arg2) booleanbooleanvoidvoidstartCapture(int arg0, int arg1, int arg2) voidvoidswitchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0) voidswitchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0, String arg1) booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.webrtc.CameraVideoCapturer
addMediaRecorderToCamera, removeMediaRecorderFromCamera
-
Constructor Details
-
FlashlightCameraCapturer
public FlashlightCameraCapturer(String cameraName, org.webrtc.CameraVideoCapturer.CameraEventsHandler eventsHandler, boolean captureToTexture)
-
-
Method Details
-
createCameraSession
protected void createCameraSession(org.webrtc.CameraSession.CreateSessionCallback createSessionCallback, org.webrtc.CameraSession.Events events, android.content.Context applicationContext, org.webrtc.SurfaceTextureHelper surfaceTextureHelper, String cameraName, int width, int height, int framerate) - Overrides:
createCameraSessionin classorg.webrtc.Camera1Capturer
-
turnOnFlashlight
public boolean turnOnFlashlight() -
isFlashlightSupport
public boolean isFlashlightSupport() -
turnOffFlashlight
public boolean turnOffFlashlight() -
initialize
public void initialize(org.webrtc.SurfaceTextureHelper arg0, android.content.Context arg1, org.webrtc.CapturerObserver arg2) - Specified by:
initializein interfaceorg.webrtc.VideoCapturer
-
startCapture
public void startCapture(int arg0, int arg1, int arg2) - Specified by:
startCapturein interfaceorg.webrtc.VideoCapturer
-
stopCapture
public void stopCapture()- Specified by:
stopCapturein interfaceorg.webrtc.VideoCapturer
-
changeCaptureFormat
public void changeCaptureFormat(int arg0, int arg1, int arg2) - Specified by:
changeCaptureFormatin interfaceorg.webrtc.VideoCapturer
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.webrtc.VideoCapturer
-
switchCamera
public void switchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0) - Specified by:
switchCamerain interfaceorg.webrtc.CameraVideoCapturer
-
switchCamera
- Specified by:
switchCamerain interfaceorg.webrtc.CameraVideoCapturer
-
isScreencast
public boolean isScreencast()- Specified by:
isScreencastin interfaceorg.webrtc.VideoCapturer
-
printStackTrace
public void printStackTrace() -
getCameraName
-