Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MediaKeys

This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. Available only in secure contexts.

interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
var MediaKeys: {
prototype: MediaKeys;
new (): MediaKeys;
}
;

§Methods

§
createSession(sessionType?: MediaKeySessionType): MediaKeySession
[src]
§
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>
[src]