ByteRTCVideoStreamScaleMode enum

Inheritance
Available extensions

Values

ByteRTCVideoStreamScaleModeAuto → const ByteRTCVideoStreamScaleMode

@brief Auto mode, default to ByteRTCVideoStreamScaleModeFitWithCropping.

ByteRTCVideoStreamScaleModeStretch → const ByteRTCVideoStreamScaleMode

@brief Stretch the video frame until the video frame and the window have the same resolution. The video frame's aspect ratio can be changed as it is automatically stretched to fill the window, but the whole image is visible.

ByteRTCVideoStreamScaleModeFitWithCropping → const ByteRTCVideoStreamScaleMode

@brief Fit the window with cropping
Scale the video frame uniformly until the window is filled. If the video frame's aspect ratio is different from that of the window, the extra part of the video frame will be cropped.
After the scaling process is completed, the width or height of the video frame will be consistent with that of the window, and the other dimension will be greater than or equal to that of the window.

ByteRTCVideoStreamScaleModeFitWithFilling → const ByteRTCVideoStreamScaleMode

@brief Fit the window with filling
Scale the video frame uniformly until its width or height reaches the boundary of the window. If the video frame's aspect ratio is different from that of the window, the area that is not filled will be black.
After the scaling process is completed, the width or height of the video frame will be consistent with that of the window, and the other dimension will be less than or equal to that of the window.

Properties

$value → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<ByteRTCVideoStreamScaleMode>
A constant List of the values in this enum, in order of their declaration.