javascript - VideoJS Dash Widevine modular DRM return function -


how catch , manipulate "second license" license 1?

i don't understand tutorial in github.

var player = videojs('video', options, function onplayerready() {     player.src({         src: 'ggg.com/asd.mpd',         type: 'application/dash+xml',         keysystemoptions: [{             name: 'com.widevine.alpha',             options: {                 serverurl: 'http://example.com/lisence1.php'             }         }]     });      setinterval(function(toisto) {         player.play();     },2000); }); 

so need add code below above how? code above works fine need manipulate drm key license server.

var updatesourcedata = function(source) {     source.keysystemoptions = [{         name: 'com.widevine.alpha',         options: {             serverurl:'https://example.com/anotherlicense'         }     }];     return source; };  videojs.html5dashjs.hook('updatesource', updatesourcedata); 

https://github.com/videojs/videojs-contrib-dash


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -