The onkeystatuseschange property of the MediaKeySession is an event handler, fired whenever a keystatuschange event ocurrs, denoting there has been a change in the keys or their statuses within a session.

This interface inherits from the ExtendableEvent interface.


MediaKeySession.onkeystatuseschange = function(keystatuschange) { ... }


Specification Status Comment
Encrypted Media Extensions
The definition of 'onkeystatuseschange' in that specification.
Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser