Contents

AVSampleBufferAttachContentKey(_:_:_:)

Attaches a content key to a sample buffer for the purpose of content decryption.

Declaration

func AVSampleBufferAttachContentKey(_ sbuf: CMSampleBuffer, _ contentKey: AVContentKey, _ outError: NSErrorPointer) -> Bool

Parameters

  • sbuf:

    The sample buffer to which to attach the content key.

  • contentKey:

    The content key to attach.

  • outError:

    An error pointer. If a failure occurs, the system sets the pointer to an error object that describes the details of the failure.

Return Value

A Boolean value that indicates whether the attachment is successful.

See Also

FairPlay streaming