public static interface BaseVideoCapturer.CaptureSwitch
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.
Modifier and Type | Method and 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. |
void cycleCamera()
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.int getCameraIndex()
Publisher.getCameraId()
method for a
Publisher object that uses the custom video capturer.void swapCamera(int cameraId)
Publisher.swapCamera()
method
for a Publisher object that uses the custom video capturer.