WidevineConfig class
Provides configuration options for Widevine DRM. Only supported on Android.
- Inheritance
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
httpHeaders
→ Map<
String, String> ? -
An optional map containing the HTTP request headers.
final
- licenseUrl → String?
-
The DRM license acquisition URL.
final
- preferredSecurityLevel → String?
-
The preferred security level as a String. If set to
null
, the player will choose a fitting security level. The default value isnull
.final - prepareLicense → String Function(String licenseResponse)?
-
Is called with the response returned by the DRM license server for the DRM
license request. Can be used to process the response of the Widevine
servers. The returned String is treated as the new license response.
final
- prepareMessage → String Function(String keyMessage)?
-
Is called with the key message as provided by the content decryption
module (CDM). This function can be used to customize the license
acquisition message which will be sent to the license acquisition server.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldKeepDrmSessionsAlive → bool
-
Indicates if the DRM sessions should be kept alive after a source is
unloaded. This allows DRM sessions to be reused over several different
sources with the same DRM configuration as well as the same DRM scheme
information. The default value is
false
.final - stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this WidevineConfig into JSON friendly Map<String, dynamic>
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited