Skip to content

segmentationForVideo

Query

Segment a video at the specified timestamp

Response

Returns SegmentationResponse

Arguments

NameTypeDescription
videoIdID!

The ID of the video

timestampDateTimeOffset!

The time at which the video will be segmented

optionsSegmentationOptionsInput

Optional segmentation parameters.

Example

query segmentationForVideo(
$videoId: ID!,
$timestamp: DateTimeOffset!,
$options: SegmentationOptionsInput
) {
segmentationForVideo(
videoId: $videoId,
timestamp: $timestamp,
options: $options
) {
results {
segment {
__typename
}
regionIndex
}
}
}