ZegoOrientationMode enum

视频的朝向模式。

Inheritance
  • Object
  • Enum
  • ZegoOrientationMode

Constructors

ZegoOrientationMode()
const

Values

Custom → const ZegoOrientationMode

自定义模式。默认为自定义模式,该模式下,推流端用户需要通过 SetAppOrientation 设置朝向,通过 SetVideoConfig 设置视频分辨率控制视频比例。SDK 在推流端对视频进行旋转,详细的介绍可参考文档 https://doc-zh.zego.im/faq/express_video_capture_rotation

Adaption → const ZegoOrientationMode

自适应模式。拉流端视频方向自动垂直地面向上,推流端用户不再需要通过 SetAppOrientation 设置朝向,不再需要通过 SetVideoConfig 设置视频分辨率控制视频比例。注意事项:1. 推流端和拉流端都需要设置为拉流自适应模式。2. 不支持媒体播放器、云录制、本地录制,不支持通过 CDN 推拉流场景。3. SDK 在该模式下会根据设备实际朝向自动调换编码分辨率的宽高。

Alignment → const ZegoOrientationMode

对齐模式。以 Status Bar 作为参考,拉流端的视频方向与推流端预览的视频方向一致。SDK 在拉流端会以 Status Bar 作为参考对图像进行旋转,旋转角度和推流端预览的旋转角度一致。推流端用户不再需要通过 SetAppOrientation 设置朝向,不再需要通过 SetVideoConfig 设置视频分辨率控制视频比例。注意事项:1. 不支持媒体播放器、云录制、本地录制,不支持通过 CDN 推拉流场景。2. SDK 在该模式下会根据 Status Bar 实际位置自动调换编码分辨率的宽高。

FixedResolutionRatio → const ZegoOrientationMode

固定比例模式。以 Status Bar 作为参考,拉流端的视频方向与推流端预览的视频方向一致,且视频分辨率与编码分辨率保持一致,推流端用户不再需要通过 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]