public class MixLayoutPane extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MixLayoutPane.CropModeEnum
裁剪模式,自定义布局场景下填写本字段,支持两种模式: - KEEP_RATIO_PADDING :保持比例留边。 - KEEP_RATIO_CROP :保持比例裁剪。
|
static class |
MixLayoutPane.VideoTypeEnum
标识视频流的类型,可选摄像头流或者屏幕分享流。 - CAMERASTREAM:摄像头视频流 - SCREENSTREAM:屏幕分享视频流 默认为CAMERASTREAM。
|
| Constructor and Description |
|---|
MixLayoutPane() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
MixLayoutPane.CropModeEnum |
getCropMode()
裁剪模式,自定义布局场景下填写本字段,支持两种模式: - KEEP_RATIO_PADDING :保持比例留边。 - KEEP_RATIO_CROP :保持比例裁剪。
|
Float |
getHeight()
窗格宽,归一化百分比,小数取值范围在float内,自定义布局场景下填写本字段。 minimum: 0 maximum: 1
|
Integer |
getId()
窗口id,从1开始编号 minimum: 1 maximum: 25
|
String |
getUserId()
加入房间的用户id
|
MixLayoutPane.VideoTypeEnum |
getVideoType()
标识视频流的类型,可选摄像头流或者屏幕分享流。 - CAMERASTREAM:摄像头视频流 - SCREENSTREAM:屏幕分享视频流 默认为CAMERASTREAM。
|
Float |
getWidth()
窗格宽,归一化百分比,小数取值范围在float内,自定义布局场景下填写本字段。 minimum: 0 maximum: 1
|
Float |
getX()
坐标x,归一化百分比,画布上该画面左上角的横坐标的相对值,范围是 [0.0,1.0]。从左到右布局,0.0在最左端,1.0在最右端,小数取值范围在float内,自定义布局场景下填写本字段。 minimum: 0
maximum: 1
|
Float |
getY()
坐标y,归一化百分比,画布上该画面左上角的纵坐标的相对值,范围是 [0.0,1.0]。从上到下布局,0.0在最上端,1.0在最下端,小数取值范围在float内,自定义布局场景下填写本字段。 minimum: 0
maximum: 1
|
Integer |
getZorder()
叠放顺序,0为最底层,1层在0层之上,以此类推,最大支持25层,自定义布局场景下填写本字段。 minimum: 0 maximum: 24
|
int |
hashCode() |
void |
setCropMode(MixLayoutPane.CropModeEnum cropMode) |
void |
setHeight(Float height) |
void |
setId(Integer id) |
void |
setUserId(String userId) |
void |
setVideoType(MixLayoutPane.VideoTypeEnum videoType) |
void |
setWidth(Float width) |
void |
setX(Float x) |
void |
setY(Float y) |
void |
setZorder(Integer zorder) |
String |
toString() |
MixLayoutPane |
withCropMode(MixLayoutPane.CropModeEnum cropMode) |
MixLayoutPane |
withHeight(Float height) |
MixLayoutPane |
withId(Integer id) |
MixLayoutPane |
withUserId(String userId) |
MixLayoutPane |
withVideoType(MixLayoutPane.VideoTypeEnum videoType) |
MixLayoutPane |
withWidth(Float width) |
MixLayoutPane |
withX(Float x) |
MixLayoutPane |
withY(Float y) |
MixLayoutPane |
withZorder(Integer zorder) |
public MixLayoutPane withId(Integer id)
public Integer getId()
public void setId(Integer id)
public MixLayoutPane withUserId(String userId)
public String getUserId()
public void setUserId(String userId)
public MixLayoutPane withVideoType(MixLayoutPane.VideoTypeEnum videoType)
public MixLayoutPane.VideoTypeEnum getVideoType()
public void setVideoType(MixLayoutPane.VideoTypeEnum videoType)
public MixLayoutPane withX(Float x)
public Float getX()
public void setX(Float x)
public MixLayoutPane withY(Float y)
public Float getY()
public void setY(Float y)
public MixLayoutPane withWidth(Float width)
public Float getWidth()
public void setWidth(Float width)
public MixLayoutPane withHeight(Float height)
public Float getHeight()
public void setHeight(Float height)
public MixLayoutPane withZorder(Integer zorder)
public Integer getZorder()
public void setZorder(Integer zorder)
public MixLayoutPane withCropMode(MixLayoutPane.CropModeEnum cropMode)
public MixLayoutPane.CropModeEnum getCropMode()
public void setCropMode(MixLayoutPane.CropModeEnum cropMode)
Copyright © 2021. All rights reserved.