File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Streamyx" ,
3
3
"description" : " Intercept DRM requests, view logs from EME session and copy ready commands for Streamyx CLI" ,
4
- "version" : " 0.2 .0" ,
4
+ "version" : " 0.3 .0" ,
5
5
"manifest_version" : 2 ,
6
6
"background" : {
7
7
"scripts" : [" src/worker.js" ]
Original file line number Diff line number Diff line change 30
30
_this . initDataType = initDataType ;
31
31
_this . initData = pssh ;
32
32
if ( pssh ) window . postMessage ( { type : POST_MESSAGE_TYPE , log : { pssh } } , '*' ) ;
33
+ _this . addEventListener ( 'message' , ( event ) => {
34
+ console . groupCollapsed ( `[STREAMYX] Session ${ _this . sessionId } has new "${ event . messageType } " message` ) ;
35
+ console . log ( `Initialization Data Type: ${ _this . initDataType } ` ) ;
36
+ console . log ( `Initialization Data (PSSH): ${ _this . initData } ` ) ;
37
+ if ( _this . keyIds ) console . log ( `Key IDs: ${ _this . keyIds } ` ) ;
38
+ console . log ( `Message Type: ${ event . messageType } ` ) ;
39
+ console . log ( `Message: ${ b64 . encode ( event . message ) } ` ) ;
40
+ console . groupEnd ( ) ;
41
+ } ) ;
33
42
return _target . apply ( _this , _args ) ;
34
43
} ) ;
35
44
You can’t perform that action at this time.
0 commit comments