Interface MediaKeys
interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
Index
Methods
createSession
- create
Session (sessionType?): MediaKeySession Parameters
Optional
sessionType: MediaKeySessionType
Returns MediaKeySession
getStatusForPolicy
- get
Status (policy?): Promise<MediaKeyStatus>For Policy Parameters
Optional
policy: MediaKeysPolicy
Returns Promise<MediaKeyStatus>
setServerCertificate
- set
Server (serverCertificate): Promise<boolean>Certificate Parameters
- serverCertificate: BufferSource
Returns Promise<boolean>
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.
MDN Reference