com.tencentcloudapi.tiw.v20190919.models.StreamLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.tiw.v20190919.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class StreamLayout extends AbstractModel {
/**
* Stream layout configuration
*/
@SerializedName("LayoutParams")
@Expose
private LayoutParams LayoutParams;
/**
* Video stream ID
Description of the possible video stream ID values:
1. tic_record_user: the current picture is used to display the whiteboard video stream.
2. tic_substream: the current picture is used to display the auxiliary video stream.
3. Specific user ID: the current picture is used to display the video stream of a specific user.
4.Left empty: the current picture is vacant for new video stream.
*/
@SerializedName("InputStreamId")
@Expose
private String InputStreamId;
/**
* Background color in RGB format, such as "#FF0000" for red. The default color is black.
*/
@SerializedName("BackgroundColor")
@Expose
private String BackgroundColor;
/**
* Video filling mode.
0: self-adaption mode. Scales the video proportionally to completely display it in the specified area. In this mode, there may be black bars.
1: full-screen mode. Scales the video to make it fill the entire specified area. In this mode, no black bars will appear, but the video may not be displayed fully.
*/
@SerializedName("FillMode")
@Expose
private Long FillMode;
/**
* Get Stream layout configuration
* @return LayoutParams Stream layout configuration
*/
public LayoutParams getLayoutParams() {
return this.LayoutParams;
}
/**
* Set Stream layout configuration
* @param LayoutParams Stream layout configuration
*/
public void setLayoutParams(LayoutParams LayoutParams) {
this.LayoutParams = LayoutParams;
}
/**
* Get Video stream ID
Description of the possible video stream ID values:
1. tic_record_user: the current picture is used to display the whiteboard video stream.
2. tic_substream: the current picture is used to display the auxiliary video stream.
3. Specific user ID: the current picture is used to display the video stream of a specific user.
4.Left empty: the current picture is vacant for new video stream.
* @return InputStreamId Video stream ID
Description of the possible video stream ID values:
1. tic_record_user: the current picture is used to display the whiteboard video stream.
2. tic_substream: the current picture is used to display the auxiliary video stream.
3. Specific user ID: the current picture is used to display the video stream of a specific user.
4.Left empty: the current picture is vacant for new video stream.
*/
public String getInputStreamId() {
return this.InputStreamId;
}
/**
* Set Video stream ID
Description of the possible video stream ID values:
1. tic_record_user: the current picture is used to display the whiteboard video stream.
2. tic_substream: the current picture is used to display the auxiliary video stream.
3. Specific user ID: the current picture is used to display the video stream of a specific user.
4.Left empty: the current picture is vacant for new video stream.
* @param InputStreamId Video stream ID
Description of the possible video stream ID values:
1. tic_record_user: the current picture is used to display the whiteboard video stream.
2. tic_substream: the current picture is used to display the auxiliary video stream.
3. Specific user ID: the current picture is used to display the video stream of a specific user.
4.Left empty: the current picture is vacant for new video stream.
*/
public void setInputStreamId(String InputStreamId) {
this.InputStreamId = InputStreamId;
}
/**
* Get Background color in RGB format, such as "#FF0000" for red. The default color is black.
* @return BackgroundColor Background color in RGB format, such as "#FF0000" for red. The default color is black.
*/
public String getBackgroundColor() {
return this.BackgroundColor;
}
/**
* Set Background color in RGB format, such as "#FF0000" for red. The default color is black.
* @param BackgroundColor Background color in RGB format, such as "#FF0000" for red. The default color is black.
*/
public void setBackgroundColor(String BackgroundColor) {
this.BackgroundColor = BackgroundColor;
}
/**
* Get Video filling mode.
0: self-adaption mode. Scales the video proportionally to completely display it in the specified area. In this mode, there may be black bars.
1: full-screen mode. Scales the video to make it fill the entire specified area. In this mode, no black bars will appear, but the video may not be displayed fully.
* @return FillMode Video filling mode.
0: self-adaption mode. Scales the video proportionally to completely display it in the specified area. In this mode, there may be black bars.
1: full-screen mode. Scales the video to make it fill the entire specified area. In this mode, no black bars will appear, but the video may not be displayed fully.
*/
public Long getFillMode() {
return this.FillMode;
}
/**
* Set Video filling mode.
0: self-adaption mode. Scales the video proportionally to completely display it in the specified area. In this mode, there may be black bars.
1: full-screen mode. Scales the video to make it fill the entire specified area. In this mode, no black bars will appear, but the video may not be displayed fully.
* @param FillMode Video filling mode.
0: self-adaption mode. Scales the video proportionally to completely display it in the specified area. In this mode, there may be black bars.
1: full-screen mode. Scales the video to make it fill the entire specified area. In this mode, no black bars will appear, but the video may not be displayed fully.
*/
public void setFillMode(Long FillMode) {
this.FillMode = FillMode;
}
public StreamLayout() {
}
/**
* 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.
*/
public StreamLayout(StreamLayout source) {
if (source.LayoutParams != null) {
this.LayoutParams = new LayoutParams(source.LayoutParams);
}
if (source.InputStreamId != null) {
this.InputStreamId = new String(source.InputStreamId);
}
if (source.BackgroundColor != null) {
this.BackgroundColor = new String(source.BackgroundColor);
}
if (source.FillMode != null) {
this.FillMode = new Long(source.FillMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "LayoutParams.", this.LayoutParams);
this.setParamSimple(map, prefix + "InputStreamId", this.InputStreamId);
this.setParamSimple(map, prefix + "BackgroundColor", this.BackgroundColor);
this.setParamSimple(map, prefix + "FillMode", this.FillMode);
}
}