WebIDLpedia

[DEPRECATED] VTTCue interface

As of March 14, 2026, this name is no longer defined by a Web Platform specification

Definition

WebVTT: The Web Video Text Tracks Format defines VTTCue


[Exposed=Window]
interface VTTCue : TextTrackCue {
  constructor(double startTime, unrestricted double endTime, DOMString text);
  attribute VTTRegion? region;
  attribute DirectionSetting vertical;
  attribute boolean snapToLines;
  attribute LineAndPositionSetting line;
  attribute LineAlignSetting lineAlign;
  attribute LineAndPositionSetting position;
  attribute PositionAlignSetting positionAlign;
  attribute double size;
  attribute AlignSetting align;
  attribute DOMString text;
  DocumentFragment getCueAsHTML();
};

Methods and attributes that return objects implementing VTTCue