import type { VideoState, SensorOrientationSource, SensorOrientationInfo, VideoMetadataEntry, LivestreamStatus } from "@arcgis/core/layers/video/types.js";Type definitions
VideoState
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines the possible states of a video layer.
- Type
- "can-play" | "not-ready" | "paused" | "playing" | "ready" | "waiting" | "data-loaded"
SensorOrientationSource
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines the possible sources for the sensor orientation.
- Type
- "platformHeading" | "cameraAzimuth"
SensorOrientationInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines the orientation source and symbol offset for the sensor symbol.
symbolOffset
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines the offset angle in degrees to apply to the sensor symbol.
VideoMetadataEntry
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines an object that represents a metadata entry for the video layer.
tagId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The tag id of the metadata entry.
LivestreamStatus
- Since
- ArcGIS Maps SDK for JavaScript 4.34
Defines an object that represents the livestream status of a video layer.
Coverage
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Defines an object that represents the available coverage data of the layer.
PreviewsInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Defines an object that contains metadata defining layer previews information.
count
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The number of preview thumbnails in the sprite sheet.
height
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The height in pixels of each preview thumbnail in the sprite sheet.
interval
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The time in milliseconds between each preview thumbnail in the sprite sheet.
numCols
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The number of columns of preview thumbnails in the sprite sheet.
numRows
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The number of rows of preview thumbnails in the sprite sheet.
thumbnailInfo
- Type
- { offset: number; }[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects containing metadata for each preview thumbnail in the sprite sheet, including the time offset of each thumbnail in milliseconds.
urlFragment
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The URL fragment for fetching the sprite sheet containing the thumbnails. This URL is relative to the video source URL and can be used to construct the full URL to the sprite sheet.
width
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The width in pixels of each preview thumbnail in the sprite sheet.