MediaKeys class

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

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MediaKeys()
factory

Properties

createSession MediaKeySession Function([MediaKeySessionType?])

Available on MediaKeys, provided by the MediaKeys$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setServerCertificate Future<bool> Function(Object)

Available on MediaKeys, provided by the MediaKeys$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