MixedStreamLayoutRegionConfig class
- Inheritance
-
- Object
- PackClass
- MixedStreamLayoutRegionConfig
Constructors
-
MixedStreamLayoutRegionConfig({required String userId, required String roomId, required int locationX, required int locationY, required int width, required int height, required int zOrder, required double alpha, required double cornerRadius, required MixedStreamMediaType mediaType, required MixedStreamRenderMode renderMode, required bool isLocalUser, required MixedStreamVideoType streamType, required MixedStreamLayoutRegionType regionContentType, required ArrayBuffer imageWaterMark, required MixedStreamLayoutRegionImageWaterMarkConfig imageWaterMarkConfig, required MixedStreamAlternateImageFillMode alternateImageFillMode, required String alternateImageUrl, required Position spatialPosition, required bool applySpatialAudio, required SourceCrop sourceCrop, bool? $disableInit})
-
-
MixedStreamLayoutRegionConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
$instance
→ dynamic
-
no setterinherited
-
alpha
↔ double
-
@detail api
@brief Sets the transparency.
@param alpha (Only server-side stream mixing can set this parameter.) The opacity in range of (0.0, 1.0]. The lower value, the more transparent. The default value is 1.0.
getter/setter pair
-
alternateImageFillMode
↔ MixedStreamAlternateImageFillMode
-
@valid since 3.57
@detail api
@brief Sets the fill mode of the placeholder image.
This method is used to control the fill mode of the placeholder image after the user stops publishing video streams and the screen reverts to the placeholder image.
@param alternateImageFillMode See MixedStreamAlternateImageFillMode{@link #MixedStreamAlternateImageFillMode}.
getter/setter pair
-
alternateImageUrl
↔ String
-
@valid since 3.57
@detail api
@brief Sets the URL of the placeholder image
@param alternateImageUrl Limited to a maximum of 1024 characters
getter/setter pair
-
applySpatialAudio
↔ bool
-
@detail api
@brief Sets whether a user applies spatial audio effects.
@param applySpatialAudio Whether the user applies spatial audio effects:
- true: Yes (default setting)
- false: No
getter/setter pair
-
cornerRadius
↔ double
-
@detail api
@brief Sets the corner radius.
@param cornerRadius (Only server-side stream mixing can set this parameter.) The proportion of the radius to the width of the canvas. The default value is 0.0.
@note After you set the value,
width_px, height_px, and radius_px are calculated based on width, height, radius, and the width of the canvas. If radius_px < min(width_px/2, height_px/2) is met, the value of radius is set valid; if not, radius_px is set to min(width_px/2, height_px/2), and radius is set to the proportion of radius_px to the width of the canvas.
This parameter is not supported for WTN stream tasks.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ int
-
@valid since 3.57
@detail api
@brief Sets the height of the user's frame in pixels.
@param height The height of the user's frame. The value range is
0, the height of the canvas. The default value is 640.
getter/setter pair
-
imageWaterMark
↔ ArrayBuffer
-
@detail api
@brief The RGBA data of the watermark.
@param imageWaterMark The RGBA data of the mixing image. Put in null when mixing video streams. It is required when the regionContentType is set to
MIXED_STREAM_LAYOUT_REGION_TYPE_IMAGE(1).
Put in null when you choose MIXED_STREAM_LAYOUT_REGION_TYPE_VIDEO_STREAM(0) as regionContentType.
This parameter is not supported for WTN stream tasks.
getter/setter pair
-
imageWaterMarkConfig
↔ MixedStreamLayoutRegionImageWaterMarkConfig
-
@detail api
@brief Sets the resolution of the watermark.
@param imageWaterMarkConfig The resolution of the watermark.
It is required when the
regionContentType is set to MIXED_STREAM_LAYOUT_REGION_TYPE_IMAGE(1). See MixedStreamLayoutRegionImageWaterMarkConfig{@link #MixedStreamLayoutRegionConfig-MixedStreamLayoutRegionImageWaterMarkConfig}.
Put in null when you choose MIXED_STREAM_LAYOUT_REGION_TYPE_VIDEO_STREAM(0) as regionContentType.
This parameter is not supported for WTN stream tasks.
getter/setter pair
-
isLocalUser
↔ bool
-
@detail api
@brief Sets whether the source user of the stream is a local user.
@param islocalUser
- true: Yes
- false: No
getter/setter pair
-
locationX
↔ int
-
@valid since 3.57
@detail api
@brief Sets the X-coordinate in pixels of the upper-left corner of the user's frame in the entire canvas coordinate system, where the origin is at the upper-left corner of the canvas. It represents the horizontal displacement of the upper-left corner of the user's frame relative to the origin.
@param locationX The X-coordinate of the upper-left corner of the user's frame. The value range is [0, the width of the canvas). The default value is 0.
getter/setter pair
-
locationY
↔ int
-
@valid since 3.57
@detail api
@brief Sets the Y-coordinate in pixels of the upper-left corner of the user's frame in the entire canvas coordinate system, where the origin is at the upper-left corner of the canvas. It represents the vertical displacement of the upper-left corner of the user's frame relative to the origin.
@param locationY The Y-coordinate of the upper-left corner of the user's frame. The value range is [0, the height of the canvas). The default value is 0.
getter/setter pair
-
mediaType
↔ MixedStreamMediaType
-
@detail api
@brief (Only server-side stream mixing can set this parameter.) Sets the stream mixing content type.
@param mediaType The stream mixing content type. The default value is
MIXED_STREAM_MEDIA_TYPE_AUDIO_AND_VIDEO(0). See MixedStreamMediaType{@link #MixedStreamMediaType}.
getter/setter pair
-
regionContentType
↔ MixedStreamLayoutRegionType
-
@detail api
@brief Sets the stream mixing region type.
@param regionContentType Stream mixing region type. See MixedStreamLayoutRegionType{@link #MixedStreamLayoutRegionType}.
getter/setter pair
-
renderMode
↔ MixedStreamRenderMode
-
@detail api
@brief Sets the render mode.
@param renderMode The render mode. See MixedStreamRenderMode{@link #MixedStreamRenderMode}. The default value is 1.
getter/setter pair
-
roomId
↔ String
-
@detail api
@brief Sets the room ID of the user who publishes the video stream.
@param roomID The room ID to be set. Required.
@note
This parameters cannot be updated during.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceCrop
↔ SourceCrop
-
@brief Configurations on how to crop the WTN stream.
@param sourceCrop Refer to SourceCrop{@link #SourceCrop} for more details.
@note
This parameter is not supported for mixing-stream tasks.
getter/setter pair
-
spatialPosition
↔ Position
-
@detail api
@brief Sets spatial audio position of the current region.
@param spatialPosition Spatial position of current region. See Position{@link #Position}.
@note
This parameter is not supported for WTN stream tasks.
getter/setter pair
-
streamType
↔ MixedStreamVideoType
-
@detail api
@brief Sets the stream type in the region.
@param streamType Stream type, see MixedStreamVideoType{@link #MixedStreamVideoType}. Only server-side stream mixing can set this parameter to "MIXED_STREAM_VIDEO_TYPE_SCREEN".
getter/setter pair
-
userId
↔ String
-
@detail api
@brief Sets the user ID of the user who publishes the video stream.
@param userID The user ID to be set.
@note
This parameters cannot be updated during.
getter/setter pair
-
width
↔ int
-
@valid since 3.57
@detail api
@brief Sets the width of the user's frame in pixels.
@param width The width of the user's frame. The value range is
0, the width of the canvas. The default value is 360.
getter/setter pair
-
zOrder
↔ int
-
@detail api
@brief Sets the layer on which the video is rendered.
@param zOrder The layer to be set. The range is
0, 100. 0 for the bottom layer, and 100 for the top layer. The default value is 0.
getter/setter pair
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