EMEController
Controller to deal with encrypted media extensions (EME)
Static Member Summary
Static Public Members | ||
public static |
|
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
config: EMEControllerConfig |
|
public |
debug: * |
|
public |
error: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
log: * |
|
public |
media: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
warn: * |
Private Members | ||
private |
|
Method Summary
Public Methods | ||
public |
attemptKeySystemAccess(keySystemsToAttempt: undefined): Promise |
|
public |
attemptSetMediaKeys(keySystem: KeySystems, mediaKeys: MediaKeys): Promise |
|
public |
createMediaKeySessionContext(undefined: undefined): MediaKeySessionContext |
|
public |
destroy() |
|
public |
fetchServerCertificate(keySystem: KeySystems): Promise |
|
public |
generateRequestWithPreferredKeySession(context: MediaKeySessionContext, initDataType: string, initData: undefined, reason: undefined): * |
|
public |
getKeyFormatPromise(keyFormats: undefined): Promise |
|
public |
getKeyIdString(decryptdata: undefined): * |
|
public |
getKeySystemForKeyPromise(decryptdata: LevelKey): Promise |
|
public |
getKeySystemSelectionPromise(keySystemsToAttempt: undefined): * |
|
public |
getLicenseServerUrl(keySystem: KeySystems): * |
|
public |
getMediaKeysPromise(keySystem: KeySystems, audioCodecs: undefined, videoCodecs: undefined): Promise |
|
public |
getServerCertificateUrl(keySystem: KeySystems): * |
|
public |
handleError(error: undefined) |
|
public |
|
|
public |
onKeyStatusChange(mediaKeySessionContext: MediaKeySessionContext) |
|
public |
onManifestLoaded(event: undefined, undefined: ManifestLoadedData) |
|
public |
onMediaAttached(event: undefined, data: MediaAttachedData) |
|
public |
|
|
public |
|
|
public |
removeSession(mediaKeySessionContext: MediaKeySessionContext): * |
|
public |
renewKeySession(mediaKeySessionContext: MediaKeySessionContext) |
|
public |
renewLicense(context: MediaKeySessionContext, keyMessage: ArrayBuffer): Promise |
|
public |
requestLicense(keySessionContext: MediaKeySessionContext, licenseChallenge: Uint8Array): Promise |
|
public |
requestMediaKeySystemAccess(keySystem: KeySystems, supportedConfigurations: undefined): Promise |
|
public |
selectKeySystemFormat(frag: Fragment): Promise |
|
public |
setMediaKeysServerCertificate(mediaKeys: MediaKeys, keySystem: KeySystems, cert: BufferSource): Promise |
|
public |
setupLicenseXHR(xhr: XMLHttpRequest, url: string, keysListItem: MediaKeySessionContext, licenseChallenge: Uint8Array): Promise |
|
public |
throwIfDestroyed(message: undefined) |
|
public |
|
|
public |
updateKeySession(mediaKeySessionContext: MediaKeySessionContext, data: Uint8Array): Promise |
Private Methods | ||
private |
_onMediaEncrypted(event: MediaEncryptedEvent) |
|
private |
_onWaitingForKey(event: Event) |
Static Public Members
public static CDMCleanupPromise: * source
Public Constructors
public constructor() source
Public Members
public config: EMEControllerConfig source
public debug: * source
public error: * source
public keyFormatPromise: * source
public keyIdToKeySessionPromise: * source
public keySystemAccessPromises: * source
public log: * source
public media: * source
public mediaKeySessions: * source
public onMediaEncrypted: * source
public onWaitingForKey: * source
public setMediaKeysQueue: * source
public warn: * source
Private Members
Public Methods
public attemptKeySystemAccess(keySystemsToAttempt: undefined): Promise source
Params:
Name | Type | Attribute | Description |
keySystemsToAttempt | undefined |
public attemptSetMediaKeys(keySystem: KeySystems, mediaKeys: MediaKeys): Promise source
Params:
Name | Type | Attribute | Description |
keySystem | KeySystems | ||
mediaKeys | MediaKeys |
public createMediaKeySessionContext(undefined: undefined): MediaKeySessionContext source
Params:
Name | Type | Attribute | Description |
undefined | undefined |
Return:
MediaKeySessionContext |
public destroy() source
public fetchServerCertificate(keySystem: KeySystems): Promise source
Params:
Name | Type | Attribute | Description |
keySystem | KeySystems |
public generateRequestWithPreferredKeySession(context: MediaKeySessionContext, initDataType: string, initData: undefined, reason: undefined): * source
Return:
* |
public getKeyFormatPromise(keyFormats: undefined): Promise source
Params:
Name | Type | Attribute | Description |
keyFormats | undefined |
public getKeyIdString(decryptdata: undefined): * source
Params:
Name | Type | Attribute | Description |
decryptdata | undefined |
Return:
* |
public getKeySystemForKeyPromise(decryptdata: LevelKey): Promise source
Params:
Name | Type | Attribute | Description |
decryptdata | LevelKey |
public getKeySystemSelectionPromise(keySystemsToAttempt: undefined): * source
Params:
Name | Type | Attribute | Description |
keySystemsToAttempt | undefined |
Return:
* |
public getLicenseServerUrl(keySystem: KeySystems): * source
Params:
Name | Type | Attribute | Description |
keySystem | KeySystems |
Return:
* |
public getMediaKeysPromise(keySystem: KeySystems, audioCodecs: undefined, videoCodecs: undefined): Promise source
public getServerCertificateUrl(keySystem: KeySystems): * source
Params:
Name | Type | Attribute | Description |
keySystem | KeySystems |
Return:
* |
public loadKey(data: KeyLoadedData): Promise source
Params:
Name | Type | Attribute | Description |
data | KeyLoadedData |
public onKeyStatusChange(mediaKeySessionContext: MediaKeySessionContext) source
Params:
Name | Type | Attribute | Description |
mediaKeySessionContext | MediaKeySessionContext |
public onManifestLoaded(event: undefined, undefined: ManifestLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | ManifestLoadedData |
public onMediaAttached(event: undefined, data: MediaAttachedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | MediaAttachedData |
public onMediaDetached() source
public registerListeners() source
public removeSession(mediaKeySessionContext: MediaKeySessionContext): * source
Params:
Name | Type | Attribute | Description |
mediaKeySessionContext | MediaKeySessionContext |
Return:
* |
public renewKeySession(mediaKeySessionContext: MediaKeySessionContext) source
Params:
Name | Type | Attribute | Description |
mediaKeySessionContext | MediaKeySessionContext |
public renewLicense(context: MediaKeySessionContext, keyMessage: ArrayBuffer): Promise source
Params:
Name | Type | Attribute | Description |
context | MediaKeySessionContext | ||
keyMessage | ArrayBuffer |
public requestLicense(keySessionContext: MediaKeySessionContext, licenseChallenge: Uint8Array): Promise source
Params:
Name | Type | Attribute | Description |
keySessionContext | MediaKeySessionContext | ||
licenseChallenge | Uint8Array |
public requestMediaKeySystemAccess(keySystem: KeySystems, supportedConfigurations: undefined): Promise source
Params:
Name | Type | Attribute | Description |
keySystem | KeySystems | ||
supportedConfigurations | undefined |
public selectKeySystemFormat(frag: Fragment): Promise source
Params:
Name | Type | Attribute | Description |
frag | Fragment |
public setMediaKeysServerCertificate(mediaKeys: MediaKeys, keySystem: KeySystems, cert: BufferSource): Promise source
Params:
Name | Type | Attribute | Description |
mediaKeys | MediaKeys | ||
keySystem | KeySystems | ||
cert | BufferSource |
public setupLicenseXHR(xhr: XMLHttpRequest, url: string, keysListItem: MediaKeySessionContext, licenseChallenge: Uint8Array): Promise source
Params:
Name | Type | Attribute | Description |
xhr | XMLHttpRequest | ||
url | string | ||
keysListItem | MediaKeySessionContext | ||
licenseChallenge | Uint8Array |
public throwIfDestroyed(message: undefined) source
Params:
Name | Type | Attribute | Description |
message | undefined |
public unregisterListeners() source
public updateKeySession(mediaKeySessionContext: MediaKeySessionContext, data: Uint8Array): Promise source
Params:
Name | Type | Attribute | Description |
mediaKeySessionContext | MediaKeySessionContext | ||
data | Uint8Array |
Private Methods
private _onMediaEncrypted(event: MediaEncryptedEvent) source
Params:
Name | Type | Attribute | Description |
event | MediaEncryptedEvent |
private _onWaitingForKey(event: Event) source
Params:
Name | Type | Attribute | Description |
event | Event |