- URL:
- https://<root>/services/serviceName/VideoServer/layerId/frameset
- Methods:
POST- Version Introduced:
- 12.0
Description
The frameset operation creates screenshots based upon specific times, or ranges of time, in a video layer.
Request parameters
| Parameter | Details |
|---|---|
(Required if not using | A list of comma-separated integers that represent the times, in seconds, that will be output into screenshots. |
(Required if not using | A JSON object that specifies the time range, in seconds, from which screenshots are collected. The JSON object requires a Example |
(required) | The length of time, in minutes, the screenshots are retained in file storage after creation. |
(Required) | Determines whether the operation is run synchronously or asynchronously. Values: |
(Required) | The output format for this operation. The default value is Values: |
(Required) | Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation. |
Example usage
The following is a sample POST request for the frameset operation:
POST /arcgis/rest/services/sampleService/VideoServer/01/frameset HTTP/1.1
Host: organization.example.com:21443
Content-Type: application/x-www-form-urlencoded
Content-Length: []
timeRange={
"start": "12000",
"end": "20000",
"interval": "1000"
}&expiry=120&async=false&f=pjsonJSON Response syntax
{
"expires": expiration_time,
"framesetId": "<frameset_ID>",
"created": creation_time,
"serviceName": "{serviceName}",
"results": {
"total": 1,
"frames": [{
"corners": {
"bottomLeft": {
"x": x_coordinate,
"y": y_coordinate,
"z": z_coordinate,
"spatialReference": {"wkid": 4326}
},
"bottomRight": {
"x": x_coordinate,
"y": y_coordinate,
"z": z_coordinate,
"spatialReference": {"wkid": 4326}
},
"topLeft": {
"x": x_coordinate,
"y": y_coordinate,
"z": z_coordinate,
"spatialReference": {"wkid": 4326}
},
"topRight": {
"x": x_coordinate,
"y": y_coordinate,
"z": z_coordinate,
"spatialReference": {"wkid": 4326}
}
},
"rotation": rotation_value,
"name": "frame.jpg",
"url": "<frame URL>",
"timestamp": 12012
}],
"num": 1,
"start": 1,
"nextStart": -1
},
"url": "<URL for frameset location>"
}JSON Response example
{
"expires": 1761165496,
"framesetId": "78794f8a-384c-4a11-98d7-d47a90989225",
"created": 1761154696,
"serviceName": "{serviceName}",
"results": {
"total": 1,
"frames": [{
"corners": {
"bottomLeft": {
"x": -104.789620778,
"y": 41.138731434,
"z": 1853.5368,
"spatialReference": {"wkid": 4326}
},
"bottomRight": {
"x": -104.789630257,
"y": 41.1332045410001,
"z": 1853.5368,
"spatialReference": {"wkid": 4326}
},
"topLeft": {
"x": -104.780451935,
"y": 41.1390975480001,
"z": 1853.5368,
"spatialReference": {"wkid": 4326}
},
"topRight": {
"x": -104.780019418,
"y": 41.131515465,
"z": 1853.5368,
"spatialReference": {"wkid": 4326}
}
},
"rotation": 93.860389044010162,
"name": "78794f8a-384c-4a11-98d7-d47a90989225_12012.jpg",
"url": "https://organization.example.com/arcgis/rest/services/TestOD01/VideoServer/0/content/frameset/78794f8a-384c-4a11-98d7-d47a90989225/78794f8a-384c-4a11-98d7-d47a90989225_12012.jpg",
"timestamp": 12012
}],
"num": 1,
"start": 1,
"nextStart": -1
},
"url": "https://organization.example.com/arcgis/rest/services/TestOD01/VideoServer/0/frameset/78794f8a-384c-4a11-98d7-d47a90989225"
}