new KeySystemConfiguration(audioCapabilities, videoCapabilities, distinctiveIdentifier, persistentState, sessionTypes)
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
audioCapabilities |
Array.<MediaCapability> | array of desired audio capabilities. Higher preference capabilities should be placed earlier in the array. |
||
videoCapabilities |
Array.<MediaCapability> | array of desired video capabilities. Higher preference capabilities should be placed earlier in the array. |
||
distinctiveIdentifier |
string |
<optional> |
"optional" | desired use of distinctive identifiers. One of "required", "optional", or "not-allowed" |
persistentState |
string |
<optional> |
"optional" | desired support for persistent storage of key systems. One of "required", "optional", or "not-allowed" |
sessionTypes |
Array.<string> |
<optional> |
["temporary"] | List of session types that must be supported by the key system |