switchCamera

Attempts to switch a camera to the next one in the list of cameras.

Parameters

callback

a callback that will be invoked on either success or failure


abstract fun switchCamera(deviceName: String, callback: CameraVideoTrack.SwitchCameraCallback)

Attempts to switch a camera to the specified one.

Parameters

deviceName

a name of the camera to switch to

callback

a callback that will be invoked on either success or failure