Interface AVContentKeyRecipient

  • All Known Implementing Classes:
    AVFragmentedAsset, AVURLAsset

    public interface AVContentKeyRecipient
    [@protocol] AVContentKeyRecipient Classes of objects that may require decryption keys for media data in order to enable processing, such as parsing or playback, conform to this protocol. API-Since: 10.3
    • Method Detail

      • mayRequireContentKeysForMediaDataProcessing

        boolean mayRequireContentKeysForMediaDataProcessing()
        [@property] mayRequireContentKeysForMediaDataProcessing Indicates whether the receiver may require decryption keys for media data in order to enable processing. When the value of mayRequireContentKeysForMediaDataProcessing is YES, adding the receiver to an AVContentKeySession allows it to employ the session's already existing keys and also enables the handling of new key requests by the AVContentKeySession's delegate.
      • contentKeySessionDidProvideContentKey

        default void contentKeySessionDidProvideContentKey​(@NotNull
                                                           @NotNull AVContentKeySession contentKeySession,
                                                           @NotNull
                                                           @NotNull AVContentKey contentKey)
        contentKeySession:didProvideContentKey: Informs the receiver that an AVContentKey has been obtained as the result of an invocation of -[AVContentKeyRequest processContentKeyResponse:]. The recipient may employ the AVContentKey for use with objects that support manual attachment of keys, such as CMSampleBuffer via an invocation of AVSampleBufferAttachContentKey. API-Since: 14.5