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);
Comments
Post a Comment