public static final class AliyunMixTrackLayoutParam.Builder
extends java.lang.Object
AliyunMixTrackLayoutParam
builder static inner class.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AliyunMixTrackLayoutParam.Builder |
borderParam(AliyunMixBorderParam param)
Set mixed video border parameter
Added in v3.21.0
|
AliyunMixTrackLayoutParam |
build()
Returns a
AliyunMixTrackLayoutParam built from the parameters previously set. |
AliyunMixTrackLayoutParam.Builder |
centerX(float val)
Sets the
mCenterX and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixTrackLayoutParam.Builder |
centerY(float val)
Sets the
mCenterY and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixTrackLayoutParam.Builder |
heightRatio(float val)
Sets the
mHeightRatio and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixTrackLayoutParam.Builder |
widthRatio(float val)
Sets the
mWidthRatio and returns a reference to this Builder so that the methods can be chained together. |
public AliyunMixTrackLayoutParam.Builder centerX(float val)
mCenterX
and returns a reference to this Builder so that the methods can be chained together.
Sets the x coordinate of the track centroid relative to the origin.val
- The mCenterX
must be within the range of [0,1]. If an invalid value is specified, the nearest threshold value is used.public AliyunMixTrackLayoutParam.Builder centerY(float val)
mCenterY
and returns a reference to this Builder so that the methods can be chained together.
Sets the y coordinate of the track centroid relative to the origin.val
- The mCenterY
must be within the range of [0,1]. If an invalid value is specified, the nearest threshold value is used.public AliyunMixTrackLayoutParam.Builder widthRatio(float val)
mWidthRatio
and returns a reference to this Builder so that the methods can be chained together.
Sets the width of the track relative to the video output width.val
- The mWidthRatio
must be within the range of [0,1]. If an invalid value is specified, the nearest threshold value is used.public AliyunMixTrackLayoutParam.Builder heightRatio(float val)
mHeightRatio
and returns a reference to this Builder so that the methods can be chained together.
Sets the height of the track relative to the video output height.val
- The mHeightRatio
must be within the range of [0,1]. If an invalid value is specified, the nearest threshold value is used.public AliyunMixTrackLayoutParam.Builder borderParam(AliyunMixBorderParam param)
param
- mix video border parameter AliyunMixBorderParam
public AliyunMixTrackLayoutParam build()
AliyunMixTrackLayoutParam
built from the parameters previously set.AliyunMixTrackLayoutParam
built with parameters of AliyunMixTrackLayoutParam.Builder
.