Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface VTTCue

Hierarchy

Index

Properties

TextTrackCue

TextTrackCue: { constructor: any; prototype: TextTrackCue }

Type declaration

align

endTime

endTime: number

Returns the text track cue end time, in seconds.

Can be set.

id

id: string

Returns the text track cue identifier.

Can be set.

line

lineAlign

lineAlign: LineAlignSetting

onenter

onenter: ((this: TextTrackCue, ev: Event) => any) | null

onexit

onexit: ((this: TextTrackCue, ev: Event) => any) | null

pauseOnExit

pauseOnExit: boolean

Returns true if the text track cue pause-on-exit flag is set, false otherwise.

Can be set.

position

positionAlign

positionAlign: PositionAlignSetting

region

region: VTTRegion | null

size

size: number

snapToLines

snapToLines: boolean

startTime

startTime: number

Returns the text track cue start time, in seconds.

Can be set.

text

text: string

Readonly track

track: TextTrack | null

Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.

vertical

Methods

addEventListener

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

getCueAsHTML

  • Returns DocumentFragment

removeEventListener

Generated using TypeDoc