RemoteVideoRenderConfig class

Inheritance
  • Object
  • PackClass
  • RemoteVideoRenderConfig

Constructors

RemoteVideoRenderConfig({required VideoRenderMode renderMode, required int backgroundColor, required VideoRotation renderRotation, bool? $disableInit})
RemoteVideoRenderConfig.fromMap(Map<String, dynamic> map)
factory

Properties

$instance → dynamic
no setterinherited
backgroundColor int
@brief Set the background color of the canvas which is not filled with video frame. The range is [0x00000000, 0xFFFFFFFF]. The default is 0x00000000. The Alpha index is ignored.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
renderMode VideoRenderMode
@brief Rendering mode.
- 1(RENDER_MODE_HIDDEN): Fill and Crop. Default setting. The video frame is scaled with a fixed aspect ratio and completely fills the canvas. The region of the video exceeding the canvas will be cropped. - 2(RENDER_MODE_FIT): Fit. The video frame is scaled with a fixed aspect ratio and is shown completely on the canvas. The region of the canvas not filled with the video frame will be filled with backgroundColor. - 3(RENDER_MODE_FILL): Fill the canvas. The video frame is scaled to fill the canvas. During the process, the aspect ratio may change.
getter/setter pair
renderRotation VideoRotation
@brief Video frame rotation angle. See VideoRotation{@link #VideoRotation}. The default value is 0, which means no rotation is applied.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
findOverrideIndices(List args, List<List<int>> indicesList) List<int>
查找重载参数下标列表 @desc android 构造函数存在重载 此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass(Function callback, dynamic nativeClass(), String methodName) → dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致 将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
transformToPlatformConstructorArgs(List args, List<int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) List
实例化参数处理 将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance(dynamic instance) → void
inherited

Operators

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

Static Methods

deepPackedMapValues(Map<String, dynamic> map) → dynamic
mapMemberToConstructorParams(Map json) Map<String, dynamic>