The setMediaKeys() method of the HTMLMediaElement interface sets the MediaKeys that will be used to decrypt media during playback. Available only in secure contexts.
setMediaKeys()
MDN Reference
The
setMediaKeys()method of the HTMLMediaElement interface sets the MediaKeys that will be used to decrypt media during playback. Available only in secure contexts.MDN Reference