Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Logs Encrypted Media Extension (EME) events and calls to help investigate issues in premium media sites.

License

NotificationsYou must be signed in to change notification settings

shaka-project/eme_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The EME Logger extension logs all Encrypted Media Extension (EME) calls andEvents. The log can be viewed in the javascript console, a separate browser pageor a downloaded file.

EME Specification

Just want to try it out? Install the EME Logger fromChrome Web Store.

EME Formatters

Formatters can be used with the EME Logger extension. Formatters are separateextensions that provide a class for key-system-specific custom formatting ofdata from the calls and events. Formatters should return objects with rich dataso that the EME Logger extension can incorporate them into its own formatting.

For backward compatibility with the v2 extension's format, they can also returnstrings.

To register a message formatter:

  1. Write a class that implements the formatting methods below.
  2. Append an instance of the class to document.emeFormatters.

For example:

classSomeFormatter{// Return objects with rich data (preferred), or a string with a pre-formatted// summary of the contents.  Throw an exception if the data is not formatted// correctly for your key system.formatInitData(initDataType,initData){returnMyParser.parseInitDataIntoObject(initDataType,initData);}formatRequest(request){returnMyParser.parseRequestIntoObject(request);}formatResponse(response){returnMyParser.parseResponseIntoObject(response);}formatServerCertificate(certificate){returnMyParser.parseCertificateIntoObject(certificate);}}if(!document.emeFormatters)document.emeFormatters=[];document.emeFormatters.push(newSomeFormatter);

[8]ページ先頭

©2009-2025 Movatter.jp