Class SubtitleTemplate

    • 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
      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.
    • 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,表示取不到有效值。
    Parameters:
    FontType - 字体类型,
  • hei.ttf:黑体
  • song.ttf:宋体
  • simkai.ttf:楷体
  • arial.ttf:仅支持英文
  • 默认hei.ttf 注意:此字段可能返回 null,表示取不到有效值。