Documentation
    Preparing search index...

    Module @svta/cml-drmBeta

    A collection of tools for working with DRM.

    @svta/cml-drm

    Digital Rights Management (DRM) functionality.

    npm i @svta/cml-drm
    
    
    

    Type Aliases

    ContentProtection
    EncryptionScheme
    InitializationDataType
    LicenseRequest
    MediaKeyMessageType
    MediaKeyStatus
    MediaKeySystemAccessRequest
    WidevineRobustness

    Variables

    CBCS
    CENC
    CHALLENGE
    CLEAR_KEY_SYSTEM
    CLEAR_KEY_UUID
    CONTENT_TYPE
    EncryptionScheme
    EXPIRED
    FAIRPLAY_KEY_SYSTEM
    FAIRPLAY_UUID
    HTTP_HEADERS
    HW_SECURE_ALL
    HW_SECURE_CRYPTO
    HW_SECURE_DECODE
    INDIVIDUALIZATION_REQUEST
    InitializationDataType
    INTERNAL_ERROR
    KEYIDS
    LICENSE_ACQUISITION
    LICENSE_RELEASE
    LICENSE_RENEWAL
    LICENSE_REQUEST
    MediaKeyMessageType
    MediaKeyStatus
    MP4_PROTECTION_SCHEME
    OUTPUT_DOWNSCALED
    OUTPUT_RESTRICTED
    PLAYREADY_KEY_MESSAGE
    PLAYREADY_KEY_SYSTEM
    PLAYREADY_RECOMMENDATION_KEY_SYSTEM
    PLAYREADY_UUID
    RELEASED
    STATUS_PENDING
    SW_SECURE_CRYPTO
    SW_SECURE_DECODE
    TEXT_XML_UTF8
    USABLE
    W3C_CLEAR_KEY_UUID
    WEBM
    WIDEVINE_KEY_SYSTEM
    WIDEVINE_UUID
    WidevineRobustness

    Functions

    concatInitDataIdAndCertificate
    createMediaKeySystemConfiguration
    decodeFairPlayLicense
    extractContentId
    findCencContentProtection
    getId
    getKeySystemAccess
    getLegacyKeySystemAccess
    getLicenseRequestFromMessage
    getLicenseServerUrl
    getLicenseServerUrlFromContentProtection
    getPsshData
    getPsshForKeySystem
    getRequestHeadersFromMessage
    getSupportedKeySystemConfiguration
    parseInitDataFromContentProtection
    parsePsshList
    toBigEndianKeyId