shaka-project / eme_logger

Logs Encrypted Media Extension (EME) events and calls to help investigate issues in premium media sites.
https://chrome.google.com/webstore/detail/eme-call-and-event-logger/cniohcjecdcdhgmlofniddfoeokbpbpb
Apache License 2.0
104 stars 24 forks source link

keystatuseschange Event should show expiration time in same format as event time. #42

Closed jrummell-chromium closed 2 years ago

jrummell-chromium commented 2 years ago

Currently the keystatuseschange Event shows expiration as a Unix epoch time, for example:

MediaKeySession keystatuseschange Event instance {}
Associated value: {
  expiration: 1648595361000,
  ...
}

It would be nice if it was displayed in a human readable form, e.g. Tue Mar 29 2022 16:09:21 GMT-0700 (Pacific Daylight Time), the same format used to display the event timestamp.