@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MediaKeys")
public class MediaKeys
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MediaKeys() |
| Modifier and Type | Method and Description |
|---|---|
MediaKeySession |
createSession()
The MediaKeys.createSession() method returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).
|
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).
|
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.
|
@Nonnull public MediaKeySession createSession(@MediaKeySessionType @Nonnull java.lang.String sessionType)
@Nonnull public MediaKeySession createSession()
@Nonnull public Promise<java.lang.Boolean> setServerCertificate(@Nonnull BufferSource serverCertificate)