setMediaKeys method
Provides the MediaKeys to use when decrypting media during playback.
Syntax
var retVal = HTMLMediaElement.setMediaKeys(mediaKeys);Parameters
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
Show: