public class SubtitleTemplate extends AbstractModel
| 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 The text transparency. | 
| String | getFontColor()Get The font color in 0xRRGGBB format. | 
| String | getFontSize()Get The font size (pixels). | 
| String | getFontType()Get The font. | 
| String | getPath()Get The URL of the subtitles to add to the video. | 
| Long | getStreamIndex()Get The subtitle track to add to the video. | 
| void | setFontAlpha(Float FontAlpha)Set The text transparency. | 
| void | setFontColor(String FontColor)Set The font color in 0xRRGGBB format. | 
| void | setFontSize(String FontSize)Set The font size (pixels). | 
| void | setFontType(String FontType)Set The font. | 
| void | setPath(String Path)Set The URL of the subtitles to add to the video. | 
| void | setStreamIndex(Long StreamIndex)Set The subtitle track to add to 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, toJsonStringpublic SubtitleTemplate()
public SubtitleTemplate(SubtitleTemplate source)
public String getPath()
public void setPath(String Path)
Path - The URL of the subtitles to add to the video.public Long getStreamIndex()
public void setStreamIndex(Long StreamIndex)
StreamIndex - The subtitle track to add to the video. If both `Path` and `StreamIndex` are specified, `Path` will be used. You need to specify at least one of the two parameters.public String getFontType()
public void setFontType(String FontType)
FontType - The font. Valid values:
public String getFontSize()
public void setFontSize(String FontSize)
FontSize - The font size (pixels). If this is not specified, the font size in the subtitle file will be used.public String getFontColor()
public void setFontColor(String FontColor)
FontColor - The font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).public Float getFontAlpha()
public void setFontAlpha(Float FontAlpha)
FontAlpha - The text transparency. Value range: 0-1.
Copyright © 2022. All rights reserved.