switchCamera

abstract fun switchCamera(switchEventsHandler: CameraVideoCapturer.CameraSwitchHandler)

Switch camera to the next valid camera id. This can only be called while the camera is running. This function can be called from any thread.


abstract fun switchCamera(switchEventsHandler: CameraVideoCapturer.CameraSwitchHandler, cameraName: String)

Switch camera to the specified camera id. This can only be called while the camera is running. This function can be called from any thread.