100ms Logo

100ms.docs

TECHNOLOGY
HOME
Android API reference
LIB

/lib/live.hms.video.media.tracks/HMSLocalVideoTrack/switchCamera

switchCamera

[androidJvm]\ suspend fun switchCamera()

Method to toggle camera between the front and back

[androidJvm]\ suspend fun switchCamera(face: HMSVideoTrackSettings.CameraFacing)

[androidJvm]\ suspend fun switchCamera(deviceId: String)

Method to switch camera to the given deviceID

Parameters

androidJvm

deviceIdthe device Id of the camera to which the capturer should switch to

Edit this File