MixedStreamLayoutRegionConfig class
单个图片或视频流在合流中的布局信息。(新)
开启转推直播功能后,在多路图片或视频流合流时,你可以设置其中一路流在合流中的预设布局信息。
注意:
- 视频流对应区域左上角的实际坐标是通过画面尺寸和归一化比例相乘,并四舍五入取整得到的。假如:Canvas.Width = 1920, Region.LocationX = 0.33,那么该画布左上角的横坐标为 634(1920×0.33=633.6,四舍五入取整)。
- 视频流对应区域宽度和高度的像素值是通过画面尺寸和归一化比例相乘,四舍五入取整,并向上转换为偶数得到的。假如:Canvas.Width = 1920, Region.WidthProportion = 0.21,那么该画布横向宽度为 404px(1920x0.21=403.2,四舍五入取整后,再向上转换为偶数)。
Properties
- alpha → double
-
透明度,可选范围为 (0.0, 1.0],0.0 为全透明。默认值为 1.0。
final
- applySpatialAudio → bool
-
设置某用户是否应用空间音频效果。
final
- cornerRadius → double
-
圆角半径相对画布宽度的比例。默认值为
0.0。final - hashCode → int
-
The hash code for this object.
read-onlyinherited
- heightProportion → double
-
视频流对应区域高度相对整体画面的归一化比例,取值的范围为
0.0, 1.0。默认值为 1.0。final - imageWaterMark → Uint8List?
-
图片合流布局区域类型对应的数据。类型为图片时传入图片 RGBA 数据,当类型为视频流时传空。
final
- imageWaterMarkConfig → MixedStreamLayoutRegionImageWaterMarkConfig?
-
合流布局区域数据的对应参数。当类型为视频流时传空,类型为图片时传入对应图片的参数。
final
- isLocalUser → bool
-
是否为本地用户。
final
- locationX → double
-
视频流对应区域左上角的横坐标相对整体画面的归一化比例,取值的范围为 [0.0, 1.0)。默认值为 0.0。
final
- locationY → double
-
视频流对应区域左上角的纵坐标相对整体画面的归一化比例,取值的范围为 [0.0, 1.0)。默认值为 0.0。
final
- mediaType → MixedStreamMediaType
-
合流内容控制。默认值为
audioAndVideo。final - regionContentType → MixedStreamLayoutRegionType
-
合流布局区域类型。
final
- renderMode → MixedStreamRenderMode
-
图片或视频流的缩放模式。默认值为 1。
final
- roomId → String
-
图片或视频流所在房间的房间 ID。必填。
如果此图片或视频流是通过 RTCRoom.startForwardStreamToRooms 转发到你所在房间的媒体流时,你应将房间 ID 设置为你所在的房间 ID。final - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- spatialPosition → Position
-
空间位置。
final
- streamType → MixedStreamVideoType
-
流类型,默认为主流。
final
- uid → String
-
视频流发布用户的用户 ID。必填。
final
- widthProportion → double
-
视频流对应区域宽度相对整体画面的归一化比例,取值的范围为
0.0, 1.0。默认值为 1.0。final - zOrder → int
-
用户视频布局在画布中的层级。取值范围为
0 - 100,0 为底层,值越大越上层。默认值为 0。final
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