THEOplayer > WebVTTRegion
Represents a WebVTT region.
Signature:
export interface WebVTTRegion
Property |
Type |
Description |
---|---|---|
|
The identifier of the region. |
|
|
The identifier of the region. |
|
|
The number of lines in the region. |
|
|
The horizontal coordinate of the anchor point of the region to the viewport, as a percentage of the video width. |
|
|
The vertical coordinate of the anchor point of the region to the viewport, as a percentage of the video height. |
|
The scroll setting of the region. |
||
|
The horizontal coordinate of the point of the viewport the anchor point of the region is anchored to, as a percentage of the video width. |
|
|
The veritcal coordinate of the point of the viewport the anchor point of the region is anchored to, as a percentage of the video height. |
|
|
The width of the region, as a percentage of the video width. |
The identifier of the region.
Signature:
readonly id: string;
Warning: This API is deprecated.
Superseded by WebVTTRegion.id.
The identifier of the region.
Signature:
readonly identifier: string;
The number of lines in the region.
Signature:
readonly lines: number;
The horizontal coordinate of the anchor point of the region to the viewport, as a percentage of the video width.
Signature:
readonly regionAnchorX: number;
The vertical coordinate of the anchor point of the region to the viewport, as a percentage of the video height.
Signature:
readonly regionAnchorY: number;
The scroll setting of the region.
Signature:
readonly scrollValue: VTTScrollSetting;
The horizontal coordinate of the point of the viewport the anchor point of the region is anchored to, as a percentage of the video width.
Signature:
readonly viewportAnchorX: number;
The veritcal coordinate of the point of the viewport the anchor point of the region is anchored to, as a percentage of the video height.
Signature:
readonly viewportAnchorY: number;
The width of the region, as a percentage of the video width.
Signature:
readonly width: number;