Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SubtitleCueEvent

Event which is fired when a subtitle cue

Hierarchy

Index

Properties

end

end: number

The playback time when the subtitle should be hidden

see

PlayerAPI.getCurrentTime

Optional html

html: undefined | string

The textual content prepared to be put into a html element

Optional image

image: undefined | string

Data-URL containing the image data.

Optional position

Only relevant for CEA-captions, provides information about where the cue should be positioned on a grid of 15 character rows times 32 columns. See https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-608 for detailed explanation.

Optional region

region: undefined | string

The region in which the subtitle should be displayed. Will be filled with information of the region attribute in TTML subtitle cues

Optional regionStyle

regionStyle: undefined | string

The style information of the region in which this subtitle should be displayed. Will be filled with the style information provided in the head of the TTML document if it matches the current cue's region attribute.

start

start: number

The playback time when the subtitle should be rendered

see

PlayerAPI.getCurrentTime

subtitleId

subtitleId: string

The id of the associated subtitle track defined in SubtitleTrack.id

text

text: string

The textual content of this subtitle

timestamp

timestamp: number

The time at which this event was fired

type

Event type, e.g. 'play'

Optional vtt

Options for WebVTT subtitle styling and positioning, including region settings.

Generated using TypeDoc