setMediaKeys

setMediaKeys method

Provides the MediaKeys to use when decrypting media during playback.

Syntax

var retVal = HTMLMediaElement.setMediaKeys(mediaKeys);

Parameters

mediaKeys

Type: MediaKeys

A MediaKeys object.

Return value

Type: Promise<void>

Returns a promise.

Standards information

Remarks

As of Microsoft Edge this method is unprefixed and returns a promise. The prefixed legacy implementation is still supported in Internet Explorer 11. For more information on EME implementation updates in Microsoft Edge, see Encrypted Media Extensions updates.

See also

HTMLMediaElement

 

 

Show:
© 2016 Microsoft