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

    Constructors
    Constructor
    Description
    FlashlightCameraCapturer(String cameraName, org.webrtc.CameraVideoCapturer.CameraEventsHandler eventsHandler, boolean captureToTexture)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    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 class org.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 interface org.webrtc.VideoCapturer
    • startCapture

      public void startCapture(int arg0, int arg1, int arg2)
      Specified by:
      startCapture in interface org.webrtc.VideoCapturer
    • stopCapture

      public void stopCapture()
      Specified by:
      stopCapture in interface org.webrtc.VideoCapturer
    • changeCaptureFormat

      public void changeCaptureFormat(int arg0, int arg1, int arg2)
      Specified by:
      changeCaptureFormat in interface org.webrtc.VideoCapturer
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.webrtc.VideoCapturer
    • switchCamera

      public void switchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0)
      Specified by:
      switchCamera in interface org.webrtc.CameraVideoCapturer
    • switchCamera

      public void switchCamera(org.webrtc.CameraVideoCapturer.CameraSwitchHandler arg0, String arg1)
      Specified by:
      switchCamera in interface org.webrtc.CameraVideoCapturer
    • isScreencast

      public boolean isScreencast()
      Specified by:
      isScreencast in interface org.webrtc.VideoCapturer
    • printStackTrace

      public void printStackTrace()
    • getCameraName

      protected String getCameraName()