Class Caption.Builder
java.lang.Object
com.jwplayer.pub.api.media.captions.Caption.Builder
- Enclosing class:
- Caption
Builder for
Caption
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
isDefault
(boolean isDefault) isIncludedInManifest
(boolean isIncludedInManifest) kind
(CaptionType kind)
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
file
- Parameters:
file
- URL to the captions, chapters or thumbnails text track file. All paths must have their protocol definedhttps://
,file:///
,asset:///
-
kind
- Parameters:
kind
- The kind of text track.
-
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
- Parameters:
isDefault
- Only for captions. Set this to true if you want a captions track to display by default
-
isIncludedInManifest
- Parameters:
isIncludedInManifest
- Only for captions. Set this to true you have identical caption tracks in your HLS manifest to avoid duplicate caption options
-
build
-