Closes the media key session and release any resources associated with it.
Syntaxvar close = MediaKeySession.close();
This method has no parameters.
Returns a promise. The promise is resolved when the session is closed.
As of Microsoft Edge, this method's return type has changed to Promise<void>. For more information on EME implementation updates in Microsoft Edge, see Encrypted Media Extensions updates.