MixedStreamLayoutRegionConfig class

@brief 单个图片或视频流在合流中的布局信息。 开启转推直播功能后,在多路视频流合流时,你可以设置其中一路视频流在合流中的预设布局信息。

Constructors

MixedStreamLayoutRegionConfig({String userId = '', String roomId = '', int locationX = 0, int locationY = 0, int width = 360, int height = 640, int zOrder = 0, double alpha = 1.0, double cornerRadius = 0.0, MixedStreamMediaType mediaType = $p.MixedStreamMediaType.audioAndVideo, MixedStreamRenderMode renderMode = $p.MixedStreamRenderMode.hidden, bool isLocalUser = false, MixedStreamVideoType streamType = $p.MixedStreamVideoType.main, MixedStreamLayoutRegionType regionContentType = $p.MixedStreamLayoutRegionType.videoStream, Uint8List? imageWaterMark, MixedStreamAlternateImageFillMode alternateImageFillMode = $p.MixedStreamAlternateImageFillMode.fit, SourceCrop? sourceCrop, String alternateImageUrl = '', Position? spatialPosition, MixedStreamLayoutRegionImageWaterMarkConfig? imageWaterMarkConfig, bool applySpatialAudio = true})

Properties

alpha double
@brief 布局区域透明度
final
alternateImageFillMode MixedStreamAlternateImageFillMode
@brief 图片水印填充模式
final
alternateImageUrl String
@brief 占位图片 URL
final
applySpatialAudio bool
@brief 应用空间音频
final
cornerRadius double
@brief 布局区域圆角
final
hashCode int
The hash code for this object.
no setterinherited
height int
@brief 布局区域高度
final
imageWaterMark Uint8List?
@brief 图片水印
final
imageWaterMarkConfig MixedStreamLayoutRegionImageWaterMarkConfig?
@brief 图片水印配置
final
isLocalUser bool
@brief 是否为本地用户
final
locationX int
@brief 布局区域左上角 x 坐标
final
locationY int
@brief 布局区域左上角 y 坐标
final
mediaType MixedStreamMediaType
@brief 布局区域媒体类型
final
regionContentType MixedStreamLayoutRegionType
@brief 布局区域内容类型
final
renderMode MixedStreamRenderMode
@brief 布局区域渲染模式
final
roomId String
@brief 房间 ID
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceCrop SourceCrop?
@brief 视频源裁剪
final
spatialPosition Position?
@brief 空间音频位置
final
streamType MixedStreamVideoType
@brief 视频流类型
final
userId String
@brief 用户 ID
final
width int
@brief 布局区域宽度
final
zOrder int
@brief 布局区域层级
final

Methods

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

Operators

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