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
All MethodsInstance MethodsAbstract Methods
Modifier and Type
Method
Description
void
cycleCamera()
Defines the behavior of the Publisher.cycleCamera() method for a Publisher
object that uses the custom video capturer.
int
getCameraIndex()
Defines the behavior of the deprecated Publisher.getCameraId() method for a
Publisher object that uses the custom video capturer.
void
swapCamera(int cameraId)
Defines the behavior of the deprecated Publisher.swapCamera() method
for a Publisher object that uses the custom video capturer.
Method Details
cycleCamera
void cycleCamera()
Defines the behavior of the Publisher.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 deprecated Publisher.getCameraId() method for a
Publisher object that uses the custom video capturer.
swapCamera
void swapCamera(int cameraId)
Defines the behavior of the deprecated Publisher.swapCamera() method
for a Publisher object that uses the custom video capturer.