Do you use Encrypted Media Extensions?
If so, you may be interested in EME Logger: a Chrome extension from Google that logs EME events and calls to the DevTools console along with debugging information.
You can install EME Logger extension from the Chrome Web Store..
The code for EME Logger is available at github.com/google/eme_logger. Patches, bug reports and feature requests welcome.
More information about EME is available from the HTML5 Rocks article EME WTF?
As an alternative to ‘roll your own’ EME, we recommend Shaka Player: an easy-to-use JavaScript library developed by Google that enables adaptive delivery of protected (and unprotected) media. Shaka Player implements Dynamic Adaptive Streaming over HTTP with Media Source Extensions to deliver the best possible video performance at any bandwidth. Shaka also supports multilingual content for audio tracks and subtitles. Find out more about Shaka Player at g.co/shakainfo.