setMediaKeys

inline suspend fun HTMLMediaElement.setMediaKeys(mediaKeys: MediaKeys?)(source)

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