Package com.amazonaws.ivs.player
Class TextCue
java.lang.Object
com.amazonaws.ivs.player.Cue
com.amazonaws.ivs.player.TextCue
Contains information for the display of subtitles and captions including styling and positioning.
Note: currently IVS streams do not contain positioning or styling information for TextCues.
TextCues should be rendered in accordance with user preferences for captions/subtitles and should
be cleared/reset when switching streams in the player or after a preset timeout period.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal float
The line on which the text belongs.final float
The position of the text.final float
The size of the cue as a percentage of the video.final String
cue textfinal TextCue.TextAlignment
alignment of text -
Method Summary
-
Field Details
-
line
public final float lineThe line on which the text belongs. -
size
public final float sizeThe size of the cue as a percentage of the video. -
position
public final float positionThe position of the text. -
textAlign
alignment of text -
text
cue text
-
-
Method Details