Skip to content

DescribeFlowSourceMetadata

Source: src/AWS/MediaConnect/DescribeFlowSourceMetadata.ts

Runtime binding for mediaconnect:DescribeFlowSourceMetadata.

Reads the bound Flow’s ingest transport-stream metadata — the programs and their video/audio/data streams — plus status messages about the source. Useful for confidence monitoring of what is actually arriving at the flow. A flow whose source is not currently receiving content answers with Messages instead of media info. The flow ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaConnect.DescribeFlowSourceMetadataHttp).

// init — bind the operation to the flow
const sourceMetadata = yield* AWS.MediaConnect.DescribeFlowSourceMetadata(flow);
// runtime
const { TransportMediaInfo, Messages } = yield* sourceMetadata();
const programs = TransportMediaInfo?.Programs ?? [];