IMediaCDMClient

CDM client This interfaces the application with the CDM system.

Windows
MacOS
Linux

References

Module

ElectraCDM

Header

/Engine/Plugins/Media/ElectraCDM/Source/ElectraCDM/Public/ElectraCDMClient.h

Include

#include "ElectraCDMClient.h"

Syntax

class IMediaCDMClient

Remarks

CDM client This interfaces the application with the CDM system. An application can use multiple clients if necessary.

Destructors

Name Description

Public function Virtual

~IMediaCDMClient()

Functions

Name Description

Public function

ECDMError

 

CreateDecrypter

(
    TSharedPtr< IMediaCDMDecrypter, ESP...,
    const FString& InMimeType
)

Decrypter

Creates a decrypter for the specified MIME type.

Public function

FString

 

GetLastErrorMessage()

Public function

void

 

GetLicenseKeyRequestData

(
    TArray< uint8 >& OutKeyRequestData,
    FString& OutHttpMethod,
    TArray< FString >& OutHttpHeaders,
    uint32& OutFlags
)

Returns the data to send to the license server as well as the HTTP method and additional HTTP headers.

Public function

void

 

GetLicenseKeyURL

(
    FString& OutLicenseURL
)

Returns the URL to the license server, either from configuration data or the overrride.

Public function

ECDMState

 

GetState()

State

Public function

void

 

PrepareLicenses()

License acquisition

Public function

void

 

RegisterEventListener

Application event listener methods.

Public function

ECDMError

 

SetLicenseKeyResponseData

(
    void* InEventId,
    int32 HttpResponseCode,
    const TArray< uint8 >& InKeyRespon...
)

Sets the license server's response data.

Public function

void

 

SetLicenseServerURL

(
    const FString& InLicenseServerURL
)

Overrides the URL to the license server that may have been set in the initial configuration data.

Public function

void

 

UnregisterEventListener

Unregisters a previously registered event listener.

Enums

Name

Description

Public enum

EDRMClientFlags

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss