@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MediaKeys")
public class MediaKeys
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
MediaKeys() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull MediaKeySession |
createSession()
The MediaKeys.createSession() method returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).
|
@JsNonNull MediaKeySession |
createSession(java.lang.String sessionType)
The MediaKeys.createSession() method returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).
|
@JsNonNull Promise<java.lang.Boolean> |
setServerCertificate(BufferSource serverCertificate)
The MediaKeys.setServerCertificate() method provides a server certificate to be used to encrypt messages to the license server.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull MediaKeySession createSession(@MediaKeySessionType @Nonnull java.lang.String sessionType)
public @JsNonNull MediaKeySession createSession()
public @JsNonNull Promise<java.lang.Boolean> setServerCertificate(@Nonnull BufferSource serverCertificate)