Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The setMediaKeys()
property of the HTMLMediaElement
interface returns a Promise
that resolves to the passed MediaKeys
, which are those used to decrypt media during playback.