public class SubtitleTemplate extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Float |
getFontAlpha()
Get 文字透明度,取值范围:(0, 1]
0:完全透明
1:完全不透明
默认值:1。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFontColor()
Get 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFontSize()
Get 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getFontType()
Get 字体类型,
hei.ttf:黑体
song.ttf:宋体
simkai.ttf:楷体
arial.ttf:仅支持英文
默认hei.ttf
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getPath()
Get 要压制到视频中的字幕文件地址。
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getStreamIndex()
Get 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFontAlpha(Float FontAlpha)
Set 文字透明度,取值范围:(0, 1]
0:完全透明
1:完全不透明
默认值:1。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFontColor(String FontColor)
Set 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFontSize(String FontSize)
Set 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFontType(String FontType)
Set 字体类型,
hei.ttf:黑体
song.ttf:宋体
simkai.ttf:楷体
arial.ttf:仅支持英文
默认hei.ttf
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPath(String Path)
Set 要压制到视频中的字幕文件地址。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setStreamIndex(Long StreamIndex)
Set 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SubtitleTemplate()
public SubtitleTemplate(SubtitleTemplate source)
public String getPath()
public void setPath(String Path)
Path
- 要压制到视频中的字幕文件地址。
注意:此字段可能返回 null,表示取不到有效值。public Long getStreamIndex()
public void setStreamIndex(Long StreamIndex)
StreamIndex
- 指定要压制到视频中的字幕轨道,如果有指定Path,则Path 优先级更高。Path 和 StreamIndex 至少指定一个。
注意:此字段可能返回 null,表示取不到有效值。public String getFontType()
public void setFontType(String FontType)
FontType
- 字体类型,
public String getFontSize()
public void setFontSize(String FontSize)
FontSize
- 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
注意:此字段可能返回 null,表示取不到有效值。public String getFontColor()
public void setFontColor(String FontColor)
FontColor
- 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)
注意:此字段可能返回 null,表示取不到有效值。public Float getFontAlpha()
public void setFontAlpha(Float FontAlpha)
FontAlpha
- 文字透明度,取值范围:(0, 1]
Copyright © 2024. All rights reserved.