TRTCVideoFillMode enum
Video image fill mode
If the aspect ratio of the video display area is not equal to that of the video image, you need to specify the fill mode
Values
- fill → const TRTCVideoFillMode
-
- Fill mode
- The video image will be centered and scaled to fill the entire display area, where parts that exceed the area will be cropped.
- The displayed image may be incomplete in this mode.
- fit → const TRTCVideoFillMode
-
- Fit mode
- The video image will be scaled based on its long side to fit the display area,
- where the short side will be filled with black bars. The displayed image is complete in this mode, but there may be black bars.
- scaleFill → const TRTCVideoFillMode
-
- Scale to fill mode
- Regardless of the aspect ratio of the image, it will be stretched or compressed to completely fill the display area.
- In this mode, the aspect ratio of the image may be changed, resulting in distortion of the rendered image.
Properties
- 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<
TRTCVideoFillMode> - A constant List of the values in this enum, in order of their declaration.