Android.Media.MediaMuxer.SetOrientationHint Method
Sets the orientation hint for output video playback.

Syntax

[Android.Runtime.Register("setOrientationHint", "(I)V", "")]
public void SetOrientationHint (int degrees)

Parameters

degrees
the angle to be rotated clockwise in degrees. The supported angles are 0, 90, 180, and 270 degrees.

Remarks

Sets the orientation hint for output video playback.

This method should be called before MediaMuxer.Start. Calling this method will not rotate the video frame when muxer is generating the file, but add a composition matrix containing the rotation angle in the output video if the output format is NoType:android/media/MediaMuxer$OutputFormat;Href=../../../reference/android/media/MediaMuxer.OutputFormat.html#MUXER_OUTPUT_MPEG_4 so that a video player can choose the proper orientation for playback. Note that some video players may choose to ignore the composition matrix in a video during playback. By default, the rotation degree is 0.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18