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
ConstructorDescriptionFlashlightCameraCapturer
(String cameraName, org.webrtc.CameraVideoCapturer.CameraEventsHandler eventsHandler, boolean captureToTexture) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeCaptureFormat
(int arg0, int arg1, int arg2) 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) void
dispose()
protected String
void
initialize
(org.webrtc.SurfaceTextureHelper arg0, android.content.Context arg1, org.webrtc.CapturerObserver arg2) boolean
boolean
void
void
startCapture
(int arg0, int arg1, int arg2) void
void
switchCamera
(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0) void
switchCamera
(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0, String arg1) boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
createCameraSession
in 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:
initialize
in interfaceorg.webrtc.VideoCapturer
-
startCapture
public void startCapture(int arg0, int arg1, int arg2) - Specified by:
startCapture
in interfaceorg.webrtc.VideoCapturer
-
stopCapture
public void stopCapture()- Specified by:
stopCapture
in interfaceorg.webrtc.VideoCapturer
-
changeCaptureFormat
public void changeCaptureFormat(int arg0, int arg1, int arg2) - Specified by:
changeCaptureFormat
in interfaceorg.webrtc.VideoCapturer
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.webrtc.VideoCapturer
-
switchCamera
public void switchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0) - Specified by:
switchCamera
in interfaceorg.webrtc.CameraVideoCapturer
-
switchCamera
- Specified by:
switchCamera
in interfaceorg.webrtc.CameraVideoCapturer
-
isScreencast
public boolean isScreencast()- Specified by:
isScreencast
in interfaceorg.webrtc.VideoCapturer
-
printStackTrace
public void printStackTrace() -
getCameraName
-