Skip to content

DescribeFlowSourceThumbnail

Source: src/AWS/MediaConnect/DescribeFlowSourceThumbnail.ts

Runtime binding for mediaconnect:DescribeFlowSourceThumbnail.

Fetches a thumbnail of the content currently arriving at the bound Flow’s source (base64-encoded, refreshed every few seconds) — the building block for visual confidence monitoring. Thumbnails are only generated while the flow is running and sourceMonitoringConfig has thumbnails enabled; otherwise the response carries ThumbnailMessages explaining why no image is available. The flow ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaConnect.DescribeFlowSourceThumbnailHttp).

// init — bind the operation to the flow
const sourceThumbnail = yield* AWS.MediaConnect.DescribeFlowSourceThumbnail(flow);
// runtime
const { ThumbnailDetails } = yield* sourceThumbnail();
const image = ThumbnailDetails?.Thumbnail; // base64-encoded JPEG