Package com.opentok.android
Interface BaseVideoCapturer.CaptureSwitch
-
- Enclosing class:
- BaseVideoCapturer
public static interface BaseVideoCapturer.CaptureSwitchAn interface for defining how thecycleCamera()method of a Publisher object that implements a custom video capturer.If you are using a custom video capturer, implement the
CaptureSwitchinterface in the object that extends BaseVideoCapturer. Then implement thecycleCamera()method to define the behavior of thePublisher.cycleCamera()method for the Publisher object that uses the video capturer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcycleCamera()Defines the behavior of thePublisher.cycleCamera()method for a Publisher object that uses the custom video capturer.intgetCameraIndex()Defines the behavior of the deprecatedPublisher.getCameraId()method for a Publisher object that uses the custom video capturer.voidswapCamera(int cameraId)Defines the behavior of the deprecatedPublisher.swapCamera()method for a Publisher object that uses the custom video capturer.
-
-
-
Method Detail
-
cycleCamera
void cycleCamera()
Defines the behavior of thePublisher.cycleCamera()method for a Publisher object that uses the custom video capturer. Generally, you will want to shut down the current active camera and start up a new camera.
-
getCameraIndex
int getCameraIndex()
Defines the behavior of the deprecatedPublisher.getCameraId()method for a Publisher object that uses the custom video capturer.
-
swapCamera
void swapCamera(int cameraId)
Defines the behavior of the deprecatedPublisher.swapCamera()method for a Publisher object that uses the custom video capturer.
-
-