Contents

attach(contentKey:)

Attaches an AVContentKey to a CMReadySampleBuffer for the purpose of content decryption. The client is expected to attach AVContentKeys to CMReadySampleBuffers that have been created by the client for enqueueing with AVSampleBufferDisplayLayer or AVSampleBufferAudioRenderer, for which the AVContentKeySpecifier matches indications of suitability that are available to the client according to the content key system that’s in use.

Declaration

mutating func attach(contentKey: AVContentKey) throws

Parameters

  • contentKey:

    The content key to be attached.

Discussion