setPreviewOrientation

open fun setPreviewOrientation(orientation: Int)

Change preview orientation can be called while stream.

Parameters

orientation

of the camera preview. Could be 90, 180, 270 or 0.