createSession method
Initiates a new session with the key system.
Important This method is not supported in Internet Explorer 11 on Windows 7.
Syntax
var mediaKeySession = MediaKeys.createSession(sessionType);Parameters
- sessionType
-
Type: MediaKeySessionType = "temporary"
Optional. The type of session to create.
Return value
Type: MediaKeySession
The new media key session.
Standards information
Remarks
As of Microsoft Edge, this method's parameter has changed to sessionType. For more information on EME implementation updates in Microsoft Edge, see Encrypted Media Extensions updates.
MeidaKeySessionType Enumeration:
| Name | Description |
|---|---|
| temporary | A session for which a record of or data related to the session must not be persisted. |
| persistent-release-message | A session for which a proof of license release and other data related to the session may be persisted. The license and any key(s) it contains must not be persisted. |
See also
Show: