ZegoOrientationMode enum

Orientation mode of the video.

Inheritance
  • Object
  • Enum
  • ZegoOrientationMode

Constructors

ZegoOrientationMode()
const

Values

Custom → const ZegoOrientationMode

Custom mode.Description: The default is the custom mode. In this mode, the user needs to set the orientation through SetAppOrientation, and set the video resolution through SetVideoConfig to control the video ratio. The SDK rotates the video at the stream publishing end.

Adaption → const ZegoOrientationMode

Player self adaption mode.Description: The video orientation of the stream playing end is automatically vertically upward, and the user of the stream publishing end no longer needs to set the orientation through SetAppOrientation, and no longer need to set the video resolution to control the video ratio through SetVideoConfig. Caution: 1. Both the stream publishing end and the stream playing end need to be set to ZegoOrientationModeAdaption mode. 2. Media players, cloud recording, local recording, and publish or play streaming scenarios via CDN are not supported. 3. In this mode, the SDK will automatically swap the width and height of the encoding resolution according to the actual orientation of the device.

Alignment → const ZegoOrientationMode

Player adapt to pulisher mode.Description: Taking the Status Bar as a reference, the video direction of the stream playing end is the same as the preview video direction of the stream publishing end. The SDK will use the Status Bar as a reference to rotate the image on the stream playing end, and the rotation angle is the same as the rotation angle of the preview on the stream publishing end. Stream publishing end users no longer need to set the orientation through SetAppOrientation, and no longer need to set the video resolution to control the video ratio through SetVideoConfig. Caution: 1. Media players, cloud recording, local recording, and publish or play streaming scenarios via CDN are not supported.2. In this mode, the SDK will automatically swap the width and height of the encoding resolution according to the actual position of the Status Bar.

FixedResolutionRatio → const ZegoOrientationMode

Fixed resolution ratio mode.Description: Taking the Status Bar as a reference, the video orientation of the stream playing end is the same as the previewed video direction of the stream publishing end, and the video resolution is the same as the encoding resolution. Users of the streaming end no longer need to set the orientation through SetAppOrientation.

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ZegoOrientationMode>
A constant List of the values in this enum, in order of their declaration.
[Custom, Adaption, Alignment, FixedResolutionRatio]