Interface: shakaExtern.Cue

Implementations:
Source:

Members

(non-null) backgroundColor :string

Text background color represented by any string that would be accepted in CSS. E. g. '#FFFFFF' or 'white'.
Type:
  • string
Implementations:
Source:

(non-null) color :string

Text color represented by any string that would be accepted in CSS. E. g. '#FFFFFF' or 'white'.
Type:
  • string
Implementations:
Source:

displayAlign :shaka.text.Cue.displayAlign

Vertical alignments of the cues within their extents.
Type:
Implementations:
Source:

endTime :number

The end time of the cue in seconds and fractions of a second.
Type:
  • number
Implementations:
Source:

(non-null) fontFamily :string

Text font family.
Type:
  • string
Implementations:
Source:

fontSize :string

Text font size in px or em (e.g. '100px'/'100em').
Type:
  • string
Implementations:
Source:

fontStyle :shaka.text.Cue.fontStyle

Text font style. Normal, italic or oblique.
Type:
Implementations:
Source:

fontWeight :shaka.text.Cue.fontWeight

Text font weight. Either normal or bold.
Type:
Implementations:
Source:

(non-null) id :string

Id of the cue.
Type:
  • string
Implementations:
Source:

(nullable) line :number

The offset from the display box in either number of lines or percentage depending on the value of lineInterpretation.
Type:
  • number
Implementations:
Source:

lineAlign :shaka.text.Cue.lineAlign

Line alignment of the cue box.
Type:
Implementations:
Source:

lineHeight :string

Separation between line areas inside the cue box in px or em (e.g. '100px'/'100em'). If not specified, should be no less than the largest font size applied to the text in the cue.
Type:
  • string
Implementations:
Source:

lineInterpretation :shaka.text.Cue.lineInterpretation

The way to interpret line field. (Either as an integer line number or percentage from the display box).
Type:
Implementations:
Source:

(non-null) payload :string

The text payload of the cue.
Type:
  • string
Implementations:
Source:

(nullable) position :number

The indent (in percent) of the cue box in the direction defined by the writing direction.
Type:
  • number
Implementations:
Source:

positionAlign :shaka.text.Cue.positionAlign

Position alignment of the cue.
Type:
Implementations:
Source:

region :shakaExtern.CueRegion

The region to render the cue into.
Type:
Implementations:
Source:

size :number

Size of the cue box (in percents).
Type:
  • number
Implementations:
Source:

startTime :number

The start time of the cue in seconds and fractions of a second.
Type:
  • number
Implementations:
Source:

textAlign :shaka.text.Cue.textAlign

Alignment of the text inside the cue box.
Type:
Implementations:
Source:

(non-null) textDecoration :Array.<!shaka.text.Cue.textDecoration>

Text decoration. A combination of underline, overline and line through. Empty array means no decoration.
Type:
Implementations:
Source:

wrapLine :boolean

Whether or not line wrapping should be applied to the cue.
Type:
  • boolean
Implementations:
Source:

writingDirection :shaka.text.Cue.writingDirection

Text writing direction of the cue.
Type:
Implementations:
Source: