Class Caption.Builder

  • Enclosing class:
    Caption

    public static class Caption.Builder
    extends java.lang.Object
    Builder for Caption.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • file

        public Caption.Builder file​(java.lang.String file)
        Parameters:
        file - URL to the captions, chapters or thumbnails text track file.
      • label

        public Caption.Builder label​(java.lang.String label)
        Parameters:
        label - Label of the text track. Is only used in setups with multiple captions, where the label is displayed in the CC selection menu.
      • isdefault

        public Caption.Builder isdefault​(boolean _default)
        Parameters:
        _default - Only for captions. Set this to true if you want a captions track to display by default