Contents

analyze(_:for:)

Analyzes a video asset using the specified requests.

Declaration

final nonisolated(nonsending) func analyze<each T>(_ asset: MediaIntelligenceVideoAsset, for request: repeat each T) async throws -> (repeat Result<(each T).Result, any Error>) where repeat each T : VideoAnalyzer.Request

Parameters

  • asset:

    The video asset to analyze.

  • request:

    One or more analysis requests to perform.

Mentioned in

Return Value

A tuple of Result values, one per request.

Discussion

Pass one or more values of type VideoAnalyzer.Request. The method returns a tuple containing one Result per request, in the same order you provided them. Check each element individually because a failure in one request doesn’t affect the others.

See Also

Analyzing a video asset