VTTCue
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
lineAlign: LineAlignSetting;
position: LineAndPositionSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
addEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;getCueAsHTML(): DocumentFragment;
removeEventListener<K extends keyof TextTrackCueEventMap>(
type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;§Extends
§Properties
§
align: AlignSetting
[src]§
lineAlign: LineAlignSetting
[src]§
position: LineAndPositionSetting
[src]§
positionAlign: PositionAlignSetting
[src]§
vertical: DirectionSetting
[src]§Methods
§
addEventListener<K extends keyof TextTrackCueEventMap>(
[src]type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
getCueAsHTML(): DocumentFragment
[src]§
removeEventListener<K extends keyof TextTrackCueEventMap>(
[src]type: K,
listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void