MediaKeySession class
This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). Available only in secure contexts.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- MediaKeySession()
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(MediaKeySessionEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
Overload accessor: $1, $2no setter -
close
↔ Future<
void> Function() -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
getter/setter pair -
closed
→ Future<
MediaKeySessionClosedReason> -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referenceno setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - expiration → num
-
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referenceno setter -
generateRequest
↔ Future<
void> Function(String, Object) -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- keyStatuses → MediaKeyStatusMap
-
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referenceno setter -
load
↔ Future<
bool> Function(String) -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
getter/setter pair - onkeystatuseschange ↔ dynamic Function(Event)?
-
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referencegetter/setter pair - onmessage ↔ dynamic Function(MediaKeyMessageEvent)?
-
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referencegetter/setter pair -
remove
↔ Future<
void> Function() -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
getter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(MediaKeySessionEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
MDN Referenceno setter -
update
↔ Future<
void> Function(Object) -
Available on MediaKeySession, provided by the MediaKeySession$Typings extension
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited