public class LayoutParams extends AbstractModel
Constructor and Description |
---|
LayoutParams() |
Modifier and Type | Method and Description |
---|---|
Long |
getMainVideoRightAlign()
Get 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
|
Long |
getMainVideoStreamType()
Get 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
|
String |
getMainVideoUserId()
Get 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
|
String[] |
getMixVideoUids()
Get 悬浮模板、九宫格、屏幕分享模板有效。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。最多可设置16个用户。
|
SmallVideoLayoutParams |
getSmallVideoLayoutParams()
Get 画中画模板中有效,代表小画面的布局参数。
|
Long |
getTemplate()
Get 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板。
|
void |
setMainVideoRightAlign(Long MainVideoRightAlign)
Set 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
|
void |
setMainVideoStreamType(Long MainVideoStreamType)
Set 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
|
void |
setMainVideoUserId(String MainVideoUserId)
Set 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
|
void |
setMixVideoUids(String[] MixVideoUids)
Set 悬浮模板、九宫格、屏幕分享模板有效。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。最多可设置16个用户。
|
void |
setSmallVideoLayoutParams(SmallVideoLayoutParams SmallVideoLayoutParams)
Set 画中画模板中有效,代表小画面的布局参数。
|
void |
setTemplate(Long Template)
Set 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Long getTemplate()
public void setTemplate(Long Template)
Template
- 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板。public String getMainVideoUserId()
public void setMainVideoUserId(String MainVideoUserId)
MainVideoUserId
- 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。public Long getMainVideoStreamType()
public void setMainVideoStreamType(Long MainVideoStreamType)
MainVideoStreamType
- 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。public SmallVideoLayoutParams getSmallVideoLayoutParams()
public void setSmallVideoLayoutParams(SmallVideoLayoutParams SmallVideoLayoutParams)
SmallVideoLayoutParams
- 画中画模板中有效,代表小画面的布局参数。public Long getMainVideoRightAlign()
public void setMainVideoRightAlign(Long MainVideoRightAlign)
MainVideoRightAlign
- 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。public String[] getMixVideoUids()
public void setMixVideoUids(String[] MixVideoUids)
MixVideoUids
- 悬浮模板、九宫格、屏幕分享模板有效。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。最多可设置16个用户。Copyright © 2020. All rights reserved.