Package com.opentok.android
Interface BaseVideoCapturer.CaptureSwitch
- Enclosing class:
 BaseVideoCapturer
public static interface BaseVideoCapturer.CaptureSwitch
An interface for defining how the 
cycleCamera()
 method of a Publisher object that implements a custom video capturer.
 
 If you are using a custom video capturer, implement the CaptureSwitch
 interface in the object that extends BaseVideoCapturer. Then implement the
 cycleCamera() method to define the behavior of the Publisher.cycleCamera()
 method for the Publisher object that uses the video capturer.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidDefines the behavior of thePublisher.cycleCamera()method for a Publisher object that uses the custom video capturer.intDefines 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 Details
- 
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. 
 -