Struct VideoOrientation
The orientation of the video. Defaults to LANDSCAPE. This enum is not supported in Gemini API.
[JsonConverter(typeof(VideoOrientationConverter))]
public readonly record struct VideoOrientation : IEquatable<VideoOrientation>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<VideoOrientation> AllValues { get; }
Property Value
Landscape
Landscape orientation (e.g. 16:9, 1280x720).
public static VideoOrientation Landscape { get; }
Property Value
Portrait
Portrait orientation (e.g. 9:16, 720x1280).
public static VideoOrientation Portrait { get; }
Property Value
Value
public string Value { get; }
Property Value
VideoOrientationUnspecified
Unspecified video orientation. Defaults to landscape.
public static VideoOrientation VideoOrientationUnspecified { get; }
Property Value
Methods
Equals(VideoOrientation)
public bool Equals(VideoOrientation other)
Parameters
otherVideoOrientation
Returns
FromString(string)
public static VideoOrientation FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator VideoOrientation(string)
public static implicit operator VideoOrientation(string value)
Parameters
valuestring