segmentationForVideo
Query
Segment a video at the specified timestamp
Response
Returns SegmentationResponse
Arguments
| Name | Type | Description |
|---|---|---|
videoId | ID! | The ID of the video |
timestamp | DateTimeOffset! | The time at which the video will be segmented |
options | SegmentationOptionsInput | Optional segmentation parameters. |
Example
query segmentationForVideo( $videoId: ID!, $timestamp: DateTimeOffset!, $options: SegmentationOptionsInput) { segmentationForVideo( videoId: $videoId, timestamp: $timestamp, options: $options ) { results { segment { __typename } regionIndex } }}{ "videoId": "b585279c-8182-882f-849b-7afad4518003", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "segmentationForVideo": { "results": [ { "segment": { "__typename": "Segment" }, "regionIndex": 919 } ] } }}