MediaCapture.SetPreviewRotation(VideoRotation) MediaCapture.SetPreviewRotation(VideoRotation) MediaCapture.SetPreviewRotation(VideoRotation) MediaCapture.SetPreviewRotation(VideoRotation) MediaCapture.SetPreviewRotation(VideoRotation) Method

Definition

Rotates the video preview stream.

public : void SetPreviewRotation(VideoRotation value)
void SetPreviewRotation(VideoRotation value) const;
public void SetPreviewRotation(VideoRotation value)
Public Sub SetPreviewRotation(value As VideoRotation)
mediaCapture.setPreviewRotation(value);

Parameters

value
VideoRotation VideoRotation VideoRotation

The amount by which to rotate the video.

Additional features and requirements

Capabilities
webcam backgroundMediaRecording microphone

Remarks

For how-to guidance on handling orientation when using the camera, see Handle device orientation with MediaCapture.