Class TextCue

java.lang.Object
com.amazonaws.ivs.player.Cue
com.amazonaws.ivs.player.TextCue

public class TextCue extends Cue
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.
  • Field Details

    • line

      public final float line
      The line on which the text belongs.
    • size

      public final float size
      The size of the cue as a percentage of the video.
    • position

      public final float position
      The position of the text.
    • textAlign

      @NonNull public final TextCue.TextAlignment textAlign
      alignment of text
    • text

      @NonNull public final String text
      cue text
  • Method Details