Class SubtitleTemplate
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.mps.v20190612.models.SubtitleTemplate
-
public class SubtitleTemplate extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SubtitleTemplate()SubtitleTemplate(SubtitleTemplate 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatgetFontAlpha()Get 文字透明度,取值范围:(0, 1] 0:完全透明 1:完全不透明 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。StringgetFontColor()Get 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。StringgetFontSize()Get 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。StringgetFontType()Get 字体类型, hei.ttf:黑体 song.ttf:宋体 simkai.ttf:楷体 arial.ttf:仅支持英文 默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。StringgetPath()Get 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。LonggetStreamIndex()Get 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。voidsetFontAlpha(Float FontAlpha)Set 文字透明度,取值范围:(0, 1] 0:完全透明 1:完全不透明 默认值:1。 注意:此字段可能返回 null,表示取不到有效值。voidsetFontColor(String FontColor)Set 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。voidsetFontSize(String FontSize)Set 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。voidsetFontType(String FontType)Set 字体类型, hei.ttf:黑体 song.ttf:宋体 simkai.ttf:楷体 arial.ttf:仅支持英文 默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。voidsetPath(String Path)Set 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。voidsetStreamIndex(Long StreamIndex)Set 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SubtitleTemplate
public SubtitleTemplate()
-
SubtitleTemplate
public SubtitleTemplate(SubtitleTemplate 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.
-
-
Method Detail
-
getPath
public String getPath()
Get 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Path 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。
-
setPath
public void setPath(String Path)
Set 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Path- 要压制到视频中的字幕文件地址。 注意:此字段可能返回 null,表示取不到有效值。
-
getStreamIndex
public Long getStreamIndex()
Get 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- StreamIndex 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。
-
setStreamIndex
public void setStreamIndex(Long StreamIndex)
Set 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
StreamIndex- 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。 注意:此字段可能返回 null,表示取不到有效值。
-
getFontType
public String getFontType()
Get 字体类型,- hei.ttf:黑体
- song.ttf:宋体
- simkai.ttf:楷体
- arial.ttf:仅支持英文
默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FontType 字体类型,
- hei.ttf:黑体
- song.ttf:宋体
- simkai.ttf:楷体
- arial.ttf:仅支持英文
默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。
-
setFontType
public void setFontType(String FontType)
Set 字体类型,- hei.ttf:黑体
- song.ttf:宋体
- simkai.ttf:楷体
- arial.ttf:仅支持英文
默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FontType- 字体类型,- hei.ttf:黑体
- song.ttf:宋体
- simkai.ttf:楷体
- arial.ttf:仅支持英文
默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。
-
getFontSize
public String getFontSize()
Get 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FontSize 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。
-
setFontSize
public void setFontSize(String FontSize)
Set 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FontSize- 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。 注意:此字段可能返回 null,表示取不到有效值。
-
getFontColor
public String getFontColor()
Get 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FontColor 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。
-
setFontColor
public void setFontColor(String FontColor)
Set 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FontColor- 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色) 注意:此字段可能返回 null,表示取不到有效值。
-
getFontAlpha
public Float getFontAlpha()
Get 文字透明度,取值范围:(0, 1]- 0:完全透明
- 1:完全不透明
默认值:1。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FontAlpha 文字透明度,取值范围:(0, 1]
- 0:完全透明
- 1:完全不透明
默认值:1。 注意:此字段可能返回 null,表示取不到有效值。
-
setFontAlpha
public void setFontAlpha(Float FontAlpha)
Set 文字透明度,取值范围:(0, 1]- 0:完全透明
- 1:完全不透明
默认值:1。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FontAlpha- 文字透明度,取值范围:(0, 1]- 0:完全透明
- 1:完全不透明
默认值:1。 注意:此字段可能返回 null,表示取不到有效值。
-
-