WebIDLpedia

MediaKeys interface

Definition

Encrypted Media Extensions defines MediaKeys



[Exposed=Window, SecureContext] interface MediaKeys {
    MediaKeySession createSession (optional MediaKeySessionType sessionType = "temporary");
    Promise<MediaKeyStatus> getStatusForPolicy (optional MediaKeysPolicy policy = {});
    Promise<boolean> setServerCertificate (BufferSource serverCertificate);
};

Methods and attributes that return objects implementing MediaKeys

Referring IDL interfaces/dictionaries