public class McuLayout extends AbstractModel
Constructor and Description |
---|
McuLayout() |
McuLayout(McuLayout source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getBackGroundColor()
Get The background color of the video.
|
String |
getBackgroundImageUrl()
Get The URL of the background image for the video.
|
McuCustomCrop |
getCustomCrop()
Get Custom cropping.
|
Long |
getImageHeight()
Get The video height (pixels).
|
Long |
getImageWidth()
Get The video width (pixels).
|
Long |
getLocationX()
Get The horizontal offset (pixels) of the video.
|
Long |
getLocationY()
Get The vertical offset of the video.
|
Long |
getRenderMode()
Get The rendering mode of the video.
|
UserMediaStream |
getUserMediaStream()
Get The information of the stream that is displayed.
|
Long |
getZOrder()
Get The image layer of the video.
|
void |
setBackGroundColor(String BackGroundColor)
Set The background color of the video.
|
void |
setBackgroundImageUrl(String BackgroundImageUrl)
Set The URL of the background image for the video.
|
void |
setCustomCrop(McuCustomCrop CustomCrop)
Set Custom cropping.
|
void |
setImageHeight(Long ImageHeight)
Set The video height (pixels).
|
void |
setImageWidth(Long ImageWidth)
Set The video width (pixels).
|
void |
setLocationX(Long LocationX)
Set The horizontal offset (pixels) of the video.
|
void |
setLocationY(Long LocationY)
Set The vertical offset of the video.
|
void |
setRenderMode(Long RenderMode)
Set The rendering mode of the video.
|
void |
setUserMediaStream(UserMediaStream UserMediaStream)
Set The information of the stream that is displayed.
|
void |
setZOrder(Long ZOrder)
Set The image layer of the video.
|
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 McuLayout()
public McuLayout(McuLayout source)
public UserMediaStream getUserMediaStream()
public void setUserMediaStream(UserMediaStream UserMediaStream)
UserMediaStream
- The information of the stream that is displayed. If you do not pass this parameter, TRTC will display the videos of anchors in the room according to their room entry sequence.public Long getImageWidth()
public void setImageWidth(Long ImageWidth)
ImageWidth
- The video width (pixels). If you do not pass this parameter, 0 will be used.public Long getImageHeight()
public void setImageHeight(Long ImageHeight)
ImageHeight
- The video height (pixels). If you do not pass this parameter, 0 will be used.public Long getLocationX()
public void setLocationX(Long LocationX)
LocationX
- The horizontal offset (pixels) of the video. The sum of `LocationX` and `ImageWidth` cannot exceed the width of the canvas. If you do not pass this parameter, 0 will be used.public Long getLocationY()
public void setLocationY(Long LocationY)
LocationY
- The vertical offset of the video. The sum of `LocationY` and `ImageHeight` cannot exceed the height of the canvas. If you do not pass this parameter, 0 will be used.public Long getZOrder()
public void setZOrder(Long ZOrder)
ZOrder
- The image layer of the video. If you do not pass this parameter, 0 will be used.public Long getRenderMode()
public void setRenderMode(Long RenderMode)
RenderMode
- The rendering mode of the video. 0 (the video is scaled and the excess parts are cropped), 1 (the video is scaled), 2 (the video is scaled and the blank spaces are filled with black bars). If you do not pass this parameter, 0 will be used.public String getBackGroundColor()
public void setBackGroundColor(String BackGroundColor)
BackGroundColor
- The background color of the video. Below are the values for some common colors:
Red: 0xcc0033
Yellow: 0xcc9900
Green: 0xcccc33
Blue: 0x99CCFF
Black: 0x000000
White: 0xFFFFFF
Grey: 0x999999public String getBackgroundImageUrl()
public void setBackgroundImageUrl(String BackgroundImageUrl)
BackgroundImageUrl
- The URL of the background image for the video. This parameter allows you to specify an image to display when the user’s camera is turned off or before the user enters the room. If the dimensions of the image specified are different from those of the video window, the image will be stretched to fit the space. This parameter has a higher priority than `BackGroundColor`.public McuCustomCrop getCustomCrop()
public void setCustomCrop(McuCustomCrop CustomCrop)
CustomCrop
- Custom cropping.Copyright © 2023. All rights reserved.